@angular/compiler-cli 14.2.0-next.1 → 14.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/{chunk-TXUURHQE.js → chunk-2HAEAY5C.js} +40 -40
- package/bundles/{chunk-TXUURHQE.js.map → chunk-2HAEAY5C.js.map} +0 -0
- package/bundles/{chunk-CTEVZGOM.js → chunk-2HPI44CB.js} +5 -5
- package/bundles/{chunk-CTEVZGOM.js.map → chunk-2HPI44CB.js.map} +0 -0
- package/bundles/{chunk-ZSQCUET7.js → chunk-2VBPNPMZ.js} +152 -119
- package/bundles/chunk-2VBPNPMZ.js.map +6 -0
- package/bundles/{chunk-WJ34B4FT.js → chunk-3ATQVS47.js} +75 -71
- package/bundles/chunk-3ATQVS47.js.map +6 -0
- package/bundles/{chunk-HZ5F54TQ.js → chunk-3RBYZF6O.js} +5 -5
- package/bundles/{chunk-HZ5F54TQ.js.map → chunk-3RBYZF6O.js.map} +0 -0
- package/bundles/chunk-7YHMCUJT.js +96 -0
- package/bundles/chunk-7YHMCUJT.js.map +6 -0
- package/bundles/{chunk-Z57D3OKU.js → chunk-CYVTLM4Z.js} +7 -7
- package/bundles/{chunk-Z57D3OKU.js.map → chunk-CYVTLM4Z.js.map} +0 -0
- package/bundles/{chunk-4SINIALN.js → chunk-E7NQQTT7.js} +3 -3
- package/bundles/{chunk-4SINIALN.js.map → chunk-E7NQQTT7.js.map} +0 -0
- package/bundles/{chunk-N2MCMY3J.js → chunk-FM6NPN5V.js} +4 -4
- package/bundles/{chunk-N2MCMY3J.js.map → chunk-FM6NPN5V.js.map} +0 -0
- package/bundles/{chunk-I34YWN6W.js → chunk-GG7BM2LH.js} +185 -121
- package/bundles/chunk-GG7BM2LH.js.map +6 -0
- package/bundles/{chunk-GQHLKW4T.js → chunk-L2QFSPXM.js} +31 -31
- package/bundles/{chunk-GQHLKW4T.js.map → chunk-L2QFSPXM.js.map} +0 -0
- package/bundles/{chunk-SJL5HBUW.js → chunk-R3C7RFJ4.js} +2 -2
- package/bundles/{chunk-SJL5HBUW.js.map → chunk-R3C7RFJ4.js.map} +0 -0
- package/bundles/{chunk-S4JINNFN.js → chunk-TOKOIIBI.js} +7 -7
- package/bundles/{chunk-S4JINNFN.js.map → chunk-TOKOIIBI.js.map} +0 -0
- package/bundles/{chunk-IJA2BQQH.js → chunk-UZLFREET.js} +44 -20
- package/bundles/chunk-UZLFREET.js.map +6 -0
- package/bundles/{chunk-AHYRDQYO.js → chunk-WAZH2LJQ.js} +26 -26
- package/bundles/{chunk-AHYRDQYO.js.map → chunk-WAZH2LJQ.js.map} +1 -1
- package/bundles/{chunk-AMYIDAXN.js → chunk-XDX5RDY5.js} +20 -13
- package/bundles/chunk-XDX5RDY5.js.map +6 -0
- package/bundles/index.js +13 -12
- package/bundles/index.js.map +1 -1
- package/bundles/linker/babel/index.js +13 -12
- package/bundles/linker/babel/index.js.map +1 -1
- package/bundles/linker/index.js +5 -4
- package/bundles/ngcc/index.js +13 -12
- package/bundles/ngcc/index.js.map +1 -1
- package/bundles/ngcc/main-ngcc.js +14 -13
- package/bundles/ngcc/main-ngcc.js.map +1 -1
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +14 -13
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js.map +1 -1
- package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +4 -4
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +6 -5
- package/bundles/private/migrations.js.map +1 -1
- package/bundles/private/tooling.js +3 -2
- package/bundles/src/bin/ng_xi18n.js +11 -10
- package/bundles/src/bin/ng_xi18n.js.map +1 -1
- package/bundles/src/bin/ngc.js +9 -8
- package/bundles/src/bin/ngc.js.map +1 -1
- package/bundles_metadata.json +1 -1
- package/ngcc/src/packages/build_marker.d.ts +1 -1
- package/package.json +3 -3
- package/src/ngtsc/annotations/component/src/metadata.d.ts +1 -0
- package/src/ngtsc/annotations/directive/src/handler.d.ts +2 -0
- package/src/ngtsc/annotations/ng_module/src/handler.d.ts +1 -0
- package/src/ngtsc/annotations/src/pipe.d.ts +1 -0
- package/src/ngtsc/core/api/src/options.d.ts +4 -0
- package/src/ngtsc/core/src/compiler.d.ts +1 -1
- package/src/ngtsc/metadata/src/api.d.ts +13 -0
- package/src/ngtsc/ts_compatibility/index.d.ts +9 -0
- package/src/ngtsc/ts_compatibility/src/ts_cross_version_utils.d.ts +161 -0
- package/src/ngtsc/typecheck/api/checker.d.ts +14 -4
- package/src/ngtsc/typecheck/src/checker.d.ts +5 -1
- package/src/ngtsc/typecheck/src/ts_util.d.ts +0 -7
- package/src/ngtsc/typecheck/src/type_check_block.d.ts +1 -1
- package/bundles/chunk-AMYIDAXN.js.map +0 -6
- package/bundles/chunk-I34YWN6W.js.map +0 -6
- package/bundles/chunk-IJA2BQQH.js.map +0 -6
- package/bundles/chunk-WJ34B4FT.js.map +0 -6
- package/bundles/chunk-ZSQCUET7.js.map +0 -6
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
reflectObjectLiteral,
|
|
14
14
|
reflectTypeEntityToDeclaration,
|
|
15
15
|
typeNodeToValueExpr
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XDX5RDY5.js";
|
|
17
17
|
import {
|
|
18
18
|
ErrorCode,
|
|
19
19
|
FatalDiagnosticError,
|
|
@@ -33,18 +33,31 @@ import {
|
|
|
33
33
|
translateExpression,
|
|
34
34
|
translateStatement,
|
|
35
35
|
translateType
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-WAZH2LJQ.js";
|
|
37
|
+
import {
|
|
38
|
+
combineModifiers,
|
|
39
|
+
createPropertyDeclaration,
|
|
40
|
+
getDecorators,
|
|
41
|
+
getModifiers,
|
|
42
|
+
updateClassDeclaration,
|
|
43
|
+
updateConstructorDeclaration,
|
|
44
|
+
updateGetAccessorDeclaration,
|
|
45
|
+
updateMethodDeclaration,
|
|
46
|
+
updateParameterDeclaration,
|
|
47
|
+
updatePropertyDeclaration,
|
|
48
|
+
updateSetAccessorDeclaration
|
|
49
|
+
} from "./chunk-7YHMCUJT.js";
|
|
37
50
|
import {
|
|
38
51
|
absoluteFrom,
|
|
39
52
|
absoluteFromSourceFile,
|
|
40
53
|
relative
|
|
41
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-TOKOIIBI.js";
|
|
42
55
|
import {
|
|
43
56
|
PerfEvent,
|
|
44
57
|
PerfPhase
|
|
45
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-2HPI44CB.js";
|
|
46
59
|
|
|
47
|
-
// bazel-out/
|
|
60
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
48
61
|
import { ExternalExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr } from "@angular/compiler";
|
|
49
62
|
import ts from "typescript";
|
|
50
63
|
function valueReferenceToExpression(valueRef) {
|
|
@@ -280,7 +293,7 @@ function getOriginNodeForDiagnostics(expr, container) {
|
|
|
280
293
|
}
|
|
281
294
|
}
|
|
282
295
|
|
|
283
|
-
// bazel-out/
|
|
296
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
284
297
|
var DynamicValue = class {
|
|
285
298
|
constructor(node, reason, code) {
|
|
286
299
|
this.node = node;
|
|
@@ -370,10 +383,10 @@ var DynamicValue = class {
|
|
|
370
383
|
}
|
|
371
384
|
};
|
|
372
385
|
|
|
373
|
-
// bazel-out/
|
|
386
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
374
387
|
import ts2 from "typescript";
|
|
375
388
|
|
|
376
|
-
// bazel-out/
|
|
389
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
377
390
|
var ResolvedModule = class {
|
|
378
391
|
constructor(exports, evaluate) {
|
|
379
392
|
this.exports = exports;
|
|
@@ -403,7 +416,7 @@ var EnumValue = class {
|
|
|
403
416
|
var KnownFn = class {
|
|
404
417
|
};
|
|
405
418
|
|
|
406
|
-
// bazel-out/
|
|
419
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
407
420
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
408
421
|
constructor(lhs) {
|
|
409
422
|
super();
|
|
@@ -474,7 +487,7 @@ var ObjectAssignBuiltinFn = class extends KnownFn {
|
|
|
474
487
|
}
|
|
475
488
|
};
|
|
476
489
|
|
|
477
|
-
// bazel-out/
|
|
490
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/ts_helpers.mjs
|
|
478
491
|
var AssignHelperFn = class extends ObjectAssignBuiltinFn {
|
|
479
492
|
};
|
|
480
493
|
var SpreadHelperFn = class extends KnownFn {
|
|
@@ -527,7 +540,7 @@ var ReadHelperFn = class extends KnownFn {
|
|
|
527
540
|
}
|
|
528
541
|
};
|
|
529
542
|
|
|
530
|
-
// bazel-out/
|
|
543
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/known_declaration.mjs
|
|
531
544
|
var jsGlobalObjectValue = /* @__PURE__ */ new Map([["assign", new ObjectAssignBuiltinFn()]]);
|
|
532
545
|
var assignTsHelperFn = new AssignHelperFn();
|
|
533
546
|
var spreadTsHelperFn = new SpreadHelperFn();
|
|
@@ -551,14 +564,14 @@ function resolveKnownDeclaration(decl) {
|
|
|
551
564
|
}
|
|
552
565
|
}
|
|
553
566
|
|
|
554
|
-
// bazel-out/
|
|
567
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
555
568
|
var SyntheticValue = class {
|
|
556
569
|
constructor(value) {
|
|
557
570
|
this.value = value;
|
|
558
571
|
}
|
|
559
572
|
};
|
|
560
573
|
|
|
561
|
-
// bazel-out/
|
|
574
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
562
575
|
function literalBinaryOp(op) {
|
|
563
576
|
return { op, literal: true };
|
|
564
577
|
}
|
|
@@ -1115,7 +1128,8 @@ function isVariableDeclarationDeclared(node) {
|
|
|
1115
1128
|
return false;
|
|
1116
1129
|
}
|
|
1117
1130
|
const varStmt = declList.parent;
|
|
1118
|
-
|
|
1131
|
+
const modifiers = getModifiers(varStmt);
|
|
1132
|
+
return modifiers !== void 0 && modifiers.some((mod) => mod.kind === ts2.SyntaxKind.DeclareKeyword);
|
|
1119
1133
|
}
|
|
1120
1134
|
var EMPTY = {};
|
|
1121
1135
|
function joinModuleContext(existing, node, decl) {
|
|
@@ -1143,7 +1157,7 @@ function owningModule(context, override = null) {
|
|
|
1143
1157
|
}
|
|
1144
1158
|
}
|
|
1145
1159
|
|
|
1146
|
-
// bazel-out/
|
|
1160
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
1147
1161
|
var PartialEvaluator = class {
|
|
1148
1162
|
constructor(host, checker, dependencyTracker) {
|
|
1149
1163
|
this.host = host;
|
|
@@ -1163,7 +1177,7 @@ var PartialEvaluator = class {
|
|
|
1163
1177
|
}
|
|
1164
1178
|
};
|
|
1165
1179
|
|
|
1166
|
-
// bazel-out/
|
|
1180
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
1167
1181
|
import ts3 from "typescript";
|
|
1168
1182
|
function describeResolvedType(value, maxDepth = 1) {
|
|
1169
1183
|
var _a, _b;
|
|
@@ -1293,7 +1307,7 @@ function getContainerNode(node) {
|
|
|
1293
1307
|
return node.getSourceFile();
|
|
1294
1308
|
}
|
|
1295
1309
|
|
|
1296
|
-
// bazel-out/
|
|
1310
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
1297
1311
|
import { LiteralExpr, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
|
|
1298
1312
|
import ts4 from "typescript";
|
|
1299
1313
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
@@ -1437,7 +1451,7 @@ function createUnsuitableInjectionTokenError(clazz, error) {
|
|
|
1437
1451
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
1438
1452
|
}
|
|
1439
1453
|
|
|
1440
|
-
// bazel-out/
|
|
1454
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
1441
1455
|
import ts5 from "typescript";
|
|
1442
1456
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
1443
1457
|
const context = [];
|
|
@@ -1545,7 +1559,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, reader) {
|
|
|
1545
1559
|
return makeDiagnostic(ErrorCode.DIRECTIVE_INHERITS_UNDECORATED_CTOR, node.name, `The ${dirOrComp.toLowerCase()} ${node.name.text} inherits its constructor from ${baseClassName}, but the latter does not have an Angular decorator of its own. Dependency injection will not be able to resolve the parameters of ${baseClassName}'s constructor. Either add a @Directive decorator to ${baseClassName}, or add an explicit constructor to ${node.name.text}.`);
|
|
1546
1560
|
}
|
|
1547
1561
|
|
|
1548
|
-
// bazel-out/
|
|
1562
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
1549
1563
|
import ts6 from "typescript";
|
|
1550
1564
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
1551
1565
|
let resolved = null;
|
|
@@ -1578,7 +1592,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
1578
1592
|
return meta;
|
|
1579
1593
|
}
|
|
1580
1594
|
|
|
1581
|
-
// bazel-out/
|
|
1595
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
1582
1596
|
import { compileDeclareFactoryFunction, compileFactoryFunction } from "@angular/compiler";
|
|
1583
1597
|
function compileNgFactoryDefField(metadata) {
|
|
1584
1598
|
const res = compileFactoryFunction(metadata);
|
|
@@ -1589,7 +1603,7 @@ function compileDeclareFactory(metadata) {
|
|
|
1589
1603
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
1590
1604
|
}
|
|
1591
1605
|
|
|
1592
|
-
// bazel-out/
|
|
1606
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
1593
1607
|
import { FunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, ReturnStatement, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
|
|
1594
1608
|
import ts7 from "typescript";
|
|
1595
1609
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
@@ -1656,12 +1670,11 @@ function decoratorToMetadata(decorator, wrapFunctionsInParens) {
|
|
|
1656
1670
|
throw new Error("Illegal state: synthesized decorator cannot be emitted in class metadata.");
|
|
1657
1671
|
}
|
|
1658
1672
|
const properties = [
|
|
1659
|
-
ts7.factory.createPropertyAssignment("type",
|
|
1673
|
+
ts7.factory.createPropertyAssignment("type", decorator.identifier)
|
|
1660
1674
|
];
|
|
1661
1675
|
if (decorator.args !== null && decorator.args.length > 0) {
|
|
1662
1676
|
const args = decorator.args.map((arg) => {
|
|
1663
|
-
|
|
1664
|
-
return wrapFunctionsInParens ? wrapFunctionExpressionsInParens(expr) : expr;
|
|
1677
|
+
return wrapFunctionsInParens ? wrapFunctionExpressionsInParens(arg) : arg;
|
|
1665
1678
|
});
|
|
1666
1679
|
properties.push(ts7.factory.createPropertyAssignment("args", ts7.factory.createArrayLiteralExpression(args)));
|
|
1667
1680
|
}
|
|
@@ -1677,13 +1690,13 @@ function removeIdentifierReferences(node, name) {
|
|
|
1677
1690
|
return result.transformed[0];
|
|
1678
1691
|
}
|
|
1679
1692
|
|
|
1680
|
-
// bazel-out/
|
|
1693
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
1681
1694
|
var NoopReferencesRegistry = class {
|
|
1682
1695
|
add(source, ...references) {
|
|
1683
1696
|
}
|
|
1684
1697
|
};
|
|
1685
1698
|
|
|
1686
|
-
// bazel-out/
|
|
1699
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
1687
1700
|
import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from "@angular/compiler";
|
|
1688
1701
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
1689
1702
|
const schemas = [];
|
|
@@ -1713,11 +1726,11 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
1713
1726
|
return schemas;
|
|
1714
1727
|
}
|
|
1715
1728
|
|
|
1716
|
-
// bazel-out/
|
|
1729
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
1717
1730
|
import { compileClassMetadata as compileClassMetadata3, compileComponentFromMetadata, compileDeclareClassMetadata as compileDeclareClassMetadata3, compileDeclareComponentFromMetadata, CssSelector as CssSelector2, DEFAULT_INTERPOLATION_CONFIG as DEFAULT_INTERPOLATION_CONFIG2, DomElementSchemaRegistry, FactoryTarget as FactoryTarget3, makeBindingParser as makeBindingParser2, R3TargetBinder, R3TemplateDependencyKind, SelectorMatcher as SelectorMatcher2, ViewEncapsulation, WrappedNodeExpr as WrappedNodeExpr7 } from "@angular/compiler";
|
|
1718
1731
|
import ts24 from "typescript";
|
|
1719
1732
|
|
|
1720
|
-
// bazel-out/
|
|
1733
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
1721
1734
|
import ts8 from "typescript";
|
|
1722
1735
|
var SemanticSymbol = class {
|
|
1723
1736
|
constructor(decl) {
|
|
@@ -1733,7 +1746,7 @@ function getSymbolIdentifier(decl) {
|
|
|
1733
1746
|
return decl.name.text;
|
|
1734
1747
|
}
|
|
1735
1748
|
|
|
1736
|
-
// bazel-out/
|
|
1749
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
1737
1750
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
1738
1751
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
1739
1752
|
isPublicApiAffected() {
|
|
@@ -1876,10 +1889,10 @@ function getImportPath(expr) {
|
|
|
1876
1889
|
}
|
|
1877
1890
|
}
|
|
1878
1891
|
|
|
1879
|
-
// bazel-out/
|
|
1892
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
1880
1893
|
import ts9 from "typescript";
|
|
1881
1894
|
|
|
1882
|
-
// bazel-out/
|
|
1895
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
1883
1896
|
function isSymbolEqual(a, b) {
|
|
1884
1897
|
if (a.decl === b.decl) {
|
|
1885
1898
|
return true;
|
|
@@ -1929,7 +1942,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
1929
1942
|
return true;
|
|
1930
1943
|
}
|
|
1931
1944
|
|
|
1932
|
-
// bazel-out/
|
|
1945
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
1933
1946
|
function extractSemanticTypeParameters(node) {
|
|
1934
1947
|
if (!ts9.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
1935
1948
|
return null;
|
|
@@ -1949,7 +1962,7 @@ function isTypeParameterEqual(a, b) {
|
|
|
1949
1962
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
1950
1963
|
}
|
|
1951
1964
|
|
|
1952
|
-
// bazel-out/
|
|
1965
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
1953
1966
|
var MetaKind;
|
|
1954
1967
|
(function(MetaKind2) {
|
|
1955
1968
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -1957,10 +1970,10 @@ var MetaKind;
|
|
|
1957
1970
|
MetaKind2[MetaKind2["NgModule"] = 2] = "NgModule";
|
|
1958
1971
|
})(MetaKind || (MetaKind = {}));
|
|
1959
1972
|
|
|
1960
|
-
// bazel-out/
|
|
1973
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
1961
1974
|
import ts11 from "typescript";
|
|
1962
1975
|
|
|
1963
|
-
// bazel-out/
|
|
1976
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
1964
1977
|
var ClassPropertyMapping = class {
|
|
1965
1978
|
constructor(forwardMap) {
|
|
1966
1979
|
this.forwardMap = forwardMap;
|
|
@@ -2036,7 +2049,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
2036
2049
|
return reverseMap;
|
|
2037
2050
|
}
|
|
2038
2051
|
|
|
2039
|
-
// bazel-out/
|
|
2052
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
2040
2053
|
import ts10 from "typescript";
|
|
2041
2054
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
2042
2055
|
if (!ts10.isTupleTypeNode(def)) {
|
|
@@ -2141,10 +2154,10 @@ function extractDirectiveTypeCheckMeta(node, inputs, reflector) {
|
|
|
2141
2154
|
};
|
|
2142
2155
|
}
|
|
2143
2156
|
function isRestricted(node) {
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2157
|
+
const modifiers = getModifiers(node);
|
|
2158
|
+
return modifiers !== void 0 && modifiers.some(({ kind }) => {
|
|
2159
|
+
return kind === ts10.SyntaxKind.PrivateKeyword || kind === ts10.SyntaxKind.ProtectedKeyword || kind === ts10.SyntaxKind.ReadonlyKeyword;
|
|
2160
|
+
});
|
|
2148
2161
|
}
|
|
2149
2162
|
function extractTemplateGuard(member) {
|
|
2150
2163
|
if (!member.name.startsWith("ngTemplateGuard_")) {
|
|
@@ -2216,7 +2229,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
2216
2229
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
2217
2230
|
}
|
|
2218
2231
|
|
|
2219
|
-
// bazel-out/
|
|
2232
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
2220
2233
|
var DtsMetadataReader = class {
|
|
2221
2234
|
constructor(checker, reflector) {
|
|
2222
2235
|
this.checker = checker;
|
|
@@ -2240,7 +2253,8 @@ var DtsMetadataReader = class {
|
|
|
2240
2253
|
schemas: [],
|
|
2241
2254
|
rawDeclarations: null,
|
|
2242
2255
|
rawImports: null,
|
|
2243
|
-
rawExports: null
|
|
2256
|
+
rawExports: null,
|
|
2257
|
+
decorator: null
|
|
2244
2258
|
};
|
|
2245
2259
|
}
|
|
2246
2260
|
getDirectiveMetadata(ref) {
|
|
@@ -2277,7 +2291,8 @@ var DtsMetadataReader = class {
|
|
|
2277
2291
|
animationTriggerNames: null,
|
|
2278
2292
|
isStandalone,
|
|
2279
2293
|
imports: null,
|
|
2280
|
-
schemas: null
|
|
2294
|
+
schemas: null,
|
|
2295
|
+
decorator: null
|
|
2281
2296
|
};
|
|
2282
2297
|
}
|
|
2283
2298
|
getPipeMetadata(ref) {
|
|
@@ -2299,7 +2314,8 @@ var DtsMetadataReader = class {
|
|
|
2299
2314
|
ref,
|
|
2300
2315
|
name,
|
|
2301
2316
|
nameExpr: null,
|
|
2302
|
-
isStandalone
|
|
2317
|
+
isStandalone,
|
|
2318
|
+
decorator: null
|
|
2303
2319
|
};
|
|
2304
2320
|
}
|
|
2305
2321
|
};
|
|
@@ -2328,7 +2344,7 @@ function readBaseClass2(clazz, checker, reflector) {
|
|
|
2328
2344
|
return null;
|
|
2329
2345
|
}
|
|
2330
2346
|
|
|
2331
|
-
// bazel-out/
|
|
2347
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
2332
2348
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
2333
2349
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
2334
2350
|
if (topMeta === null) {
|
|
@@ -2386,7 +2402,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
2386
2402
|
};
|
|
2387
2403
|
}
|
|
2388
2404
|
|
|
2389
|
-
// bazel-out/
|
|
2405
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
2390
2406
|
var LocalMetadataRegistry = class {
|
|
2391
2407
|
constructor() {
|
|
2392
2408
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -2445,7 +2461,7 @@ var InjectableClassRegistry = class {
|
|
|
2445
2461
|
}
|
|
2446
2462
|
};
|
|
2447
2463
|
|
|
2448
|
-
// bazel-out/
|
|
2464
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
2449
2465
|
var ResourceRegistry = class {
|
|
2450
2466
|
constructor() {
|
|
2451
2467
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -2510,14 +2526,14 @@ var ResourceRegistry = class {
|
|
|
2510
2526
|
}
|
|
2511
2527
|
};
|
|
2512
2528
|
|
|
2513
|
-
// bazel-out/
|
|
2529
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
2514
2530
|
var ComponentScopeKind;
|
|
2515
2531
|
(function(ComponentScopeKind2) {
|
|
2516
2532
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
2517
2533
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
2518
2534
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
2519
2535
|
|
|
2520
|
-
// bazel-out/
|
|
2536
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
2521
2537
|
var CompoundComponentScopeReader = class {
|
|
2522
2538
|
constructor(readers) {
|
|
2523
2539
|
this.readers = readers;
|
|
@@ -2542,7 +2558,7 @@ var CompoundComponentScopeReader = class {
|
|
|
2542
2558
|
}
|
|
2543
2559
|
};
|
|
2544
2560
|
|
|
2545
|
-
// bazel-out/
|
|
2561
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
2546
2562
|
var MetadataDtsModuleScopeResolver = class {
|
|
2547
2563
|
constructor(dtsMetaReader, aliasingHost) {
|
|
2548
2564
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -2618,11 +2634,11 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
2618
2634
|
}
|
|
2619
2635
|
};
|
|
2620
2636
|
|
|
2621
|
-
// bazel-out/
|
|
2637
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
2622
2638
|
import { ExternalExpr as ExternalExpr3 } from "@angular/compiler";
|
|
2623
2639
|
import ts12 from "typescript";
|
|
2624
2640
|
|
|
2625
|
-
// bazel-out/
|
|
2641
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
2626
2642
|
function getDiagnosticNode(ref, rawExpr) {
|
|
2627
2643
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
2628
2644
|
}
|
|
@@ -2645,7 +2661,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
|
|
|
2645
2661
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
|
|
2646
2662
|
}
|
|
2647
2663
|
|
|
2648
|
-
// bazel-out/
|
|
2664
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
2649
2665
|
var LocalModuleScopeRegistry = class {
|
|
2650
2666
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
2651
2667
|
this.localReader = localReader;
|
|
@@ -2984,7 +3000,7 @@ function reexportCollision(module, refA, refB) {
|
|
|
2984
3000
|
]);
|
|
2985
3001
|
}
|
|
2986
3002
|
|
|
2987
|
-
// bazel-out/
|
|
3003
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
2988
3004
|
import { CssSelector, SelectorMatcher } from "@angular/compiler";
|
|
2989
3005
|
import ts13 from "typescript";
|
|
2990
3006
|
var TypeCheckScopeRegistry = class {
|
|
@@ -3046,7 +3062,7 @@ var TypeCheckScopeRegistry = class {
|
|
|
3046
3062
|
}
|
|
3047
3063
|
};
|
|
3048
3064
|
|
|
3049
|
-
// bazel-out/
|
|
3065
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
3050
3066
|
var CompilationMode;
|
|
3051
3067
|
(function(CompilationMode2) {
|
|
3052
3068
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -3064,7 +3080,7 @@ var HandlerFlags;
|
|
|
3064
3080
|
HandlerFlags2[HandlerFlags2["FULL_INHERITANCE"] = 1] = "FULL_INHERITANCE";
|
|
3065
3081
|
})(HandlerFlags || (HandlerFlags = {}));
|
|
3066
3082
|
|
|
3067
|
-
// bazel-out/
|
|
3083
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
3068
3084
|
import ts14 from "typescript";
|
|
3069
3085
|
function aliasTransformFactory(exportStatements) {
|
|
3070
3086
|
return (context) => {
|
|
@@ -3082,10 +3098,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
3082
3098
|
};
|
|
3083
3099
|
}
|
|
3084
3100
|
|
|
3085
|
-
// bazel-out/
|
|
3101
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
3086
3102
|
import ts15 from "typescript";
|
|
3087
3103
|
|
|
3088
|
-
// bazel-out/
|
|
3104
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
3089
3105
|
var TraitState;
|
|
3090
3106
|
(function(TraitState2) {
|
|
3091
3107
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -3140,7 +3156,7 @@ var TraitImpl = class {
|
|
|
3140
3156
|
}
|
|
3141
3157
|
};
|
|
3142
3158
|
|
|
3143
|
-
// bazel-out/
|
|
3159
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
3144
3160
|
var TraitCompiler = class {
|
|
3145
3161
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
3146
3162
|
this.handlers = handlers;
|
|
@@ -3584,10 +3600,10 @@ function containsErrors(diagnostics) {
|
|
|
3584
3600
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === ts15.DiagnosticCategory.Error);
|
|
3585
3601
|
}
|
|
3586
3602
|
|
|
3587
|
-
// bazel-out/
|
|
3603
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
3588
3604
|
import ts17 from "typescript";
|
|
3589
3605
|
|
|
3590
|
-
// bazel-out/
|
|
3606
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
3591
3607
|
import ts16 from "typescript";
|
|
3592
3608
|
function addImports(importManager, sf, extraStatements = []) {
|
|
3593
3609
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
@@ -3615,7 +3631,7 @@ function isImportStatement(stmt) {
|
|
|
3615
3631
|
return ts16.isImportDeclaration(stmt) || ts16.isImportEqualsDeclaration(stmt) || ts16.isNamespaceImport(stmt);
|
|
3616
3632
|
}
|
|
3617
3633
|
|
|
3618
|
-
// bazel-out/
|
|
3634
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
3619
3635
|
var DtsTransformRegistry = class {
|
|
3620
3636
|
constructor() {
|
|
3621
3637
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -3699,7 +3715,7 @@ var DtsTransformer = class {
|
|
|
3699
3715
|
}
|
|
3700
3716
|
}
|
|
3701
3717
|
if (elementsChanged && clazz === newClazz) {
|
|
3702
|
-
newClazz =
|
|
3718
|
+
newClazz = updateClassDeclaration(clazz, clazz.modifiers, clazz.name, clazz.typeParameters, clazz.heritageClauses, elements);
|
|
3703
3719
|
}
|
|
3704
3720
|
return newClazz;
|
|
3705
3721
|
}
|
|
@@ -3730,9 +3746,9 @@ var IvyDeclarationDtsTransform = class {
|
|
|
3730
3746
|
const modifiers = [ts17.factory.createModifier(ts17.SyntaxKind.StaticKeyword)];
|
|
3731
3747
|
const typeRef = translateType(decl.type, imports);
|
|
3732
3748
|
markForEmitAsSingleLine(typeRef);
|
|
3733
|
-
return
|
|
3749
|
+
return createPropertyDeclaration(modifiers, decl.name, void 0, typeRef, void 0);
|
|
3734
3750
|
});
|
|
3735
|
-
return
|
|
3751
|
+
return updateClassDeclaration(clazz, clazz.modifiers, clazz.name, clazz.typeParameters, clazz.heritageClauses, [...members, ...newMembers]);
|
|
3736
3752
|
}
|
|
3737
3753
|
};
|
|
3738
3754
|
function markForEmitAsSingleLine(node) {
|
|
@@ -3740,11 +3756,11 @@ function markForEmitAsSingleLine(node) {
|
|
|
3740
3756
|
ts17.forEachChild(node, markForEmitAsSingleLine);
|
|
3741
3757
|
}
|
|
3742
3758
|
|
|
3743
|
-
// bazel-out/
|
|
3759
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
3744
3760
|
import { ConstantPool } from "@angular/compiler";
|
|
3745
3761
|
import ts19 from "typescript";
|
|
3746
3762
|
|
|
3747
|
-
// bazel-out/
|
|
3763
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
3748
3764
|
import ts18 from "typescript";
|
|
3749
3765
|
function visit(node, visitor, context) {
|
|
3750
3766
|
return visitor._visit(node, context);
|
|
@@ -3775,7 +3791,7 @@ var Visitor = class {
|
|
|
3775
3791
|
} else {
|
|
3776
3792
|
visitedNode = this.visitOtherNode(node);
|
|
3777
3793
|
}
|
|
3778
|
-
if (
|
|
3794
|
+
if (ts18.isBlock(visitedNode) || ts18.isSourceFile(visitedNode)) {
|
|
3779
3795
|
visitedNode = this._maybeProcessStatements(visitedNode);
|
|
3780
3796
|
}
|
|
3781
3797
|
return visitedNode;
|
|
@@ -3784,9 +3800,8 @@ var Visitor = class {
|
|
|
3784
3800
|
if (node.statements.every((stmt) => !this._before.has(stmt) && !this._after.has(stmt))) {
|
|
3785
3801
|
return node;
|
|
3786
3802
|
}
|
|
3787
|
-
const clone = ts18.getMutableClone(node);
|
|
3788
3803
|
const newStatements = [];
|
|
3789
|
-
|
|
3804
|
+
node.statements.forEach((stmt) => {
|
|
3790
3805
|
if (this._before.has(stmt)) {
|
|
3791
3806
|
newStatements.push(...this._before.get(stmt));
|
|
3792
3807
|
this._before.delete(stmt);
|
|
@@ -3797,16 +3812,16 @@ var Visitor = class {
|
|
|
3797
3812
|
this._after.delete(stmt);
|
|
3798
3813
|
}
|
|
3799
3814
|
});
|
|
3800
|
-
|
|
3801
|
-
|
|
3815
|
+
const statementsArray = ts18.factory.createNodeArray(newStatements, node.statements.hasTrailingComma);
|
|
3816
|
+
if (ts18.isBlock(node)) {
|
|
3817
|
+
return ts18.factory.updateBlock(node, statementsArray);
|
|
3818
|
+
} else {
|
|
3819
|
+
return ts18.factory.updateSourceFile(node, statementsArray, node.isDeclarationFile, node.referencedFiles, node.typeReferenceDirectives, node.hasNoDefaultLib, node.libReferenceDirectives);
|
|
3820
|
+
}
|
|
3802
3821
|
}
|
|
3803
3822
|
};
|
|
3804
|
-
function hasStatements(node) {
|
|
3805
|
-
const block = node;
|
|
3806
|
-
return block.statements !== void 0 && Array.isArray(block.statements);
|
|
3807
|
-
}
|
|
3808
3823
|
|
|
3809
|
-
// bazel-out/
|
|
3824
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
3810
3825
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
3811
3826
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
3812
3827
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -3855,14 +3870,15 @@ var IvyTransformationVisitor = class extends Visitor {
|
|
|
3855
3870
|
const members = [...node.members];
|
|
3856
3871
|
for (const field of this.classCompilationMap.get(node)) {
|
|
3857
3872
|
const exprNode = translateExpression(field.initializer, this.importManager, translateOptions);
|
|
3858
|
-
const property =
|
|
3873
|
+
const property = createPropertyDeclaration([ts19.factory.createToken(ts19.SyntaxKind.StaticKeyword)], field.name, void 0, void 0, exprNode);
|
|
3859
3874
|
if (this.isClosureCompilerEnabled) {
|
|
3860
3875
|
ts19.addSyntheticLeadingComment(property, ts19.SyntaxKind.MultiLineCommentTrivia, "* @nocollapse ", false);
|
|
3861
3876
|
}
|
|
3862
3877
|
field.statements.map((stmt) => translateStatement(stmt, this.importManager, translateOptions)).forEach((stmt) => statements.push(stmt));
|
|
3863
3878
|
members.push(property);
|
|
3864
3879
|
}
|
|
3865
|
-
|
|
3880
|
+
const filteredDecorators = maybeFilterDecorator(getDecorators(node), this.compilation.decoratorsFor(node));
|
|
3881
|
+
node = updateClassDeclaration(node, combineModifiers(filteredDecorators, getModifiers(node)), node.name, node.typeParameters, node.heritageClauses || [], members.map((member) => this._stripAngularDecorators(member)));
|
|
3866
3882
|
return { node, after: statements };
|
|
3867
3883
|
}
|
|
3868
3884
|
_angularCoreDecorators(decl) {
|
|
@@ -3878,38 +3894,36 @@ var IvyTransformationVisitor = class extends Visitor {
|
|
|
3878
3894
|
}
|
|
3879
3895
|
}
|
|
3880
3896
|
_nonCoreDecoratorsOnly(node) {
|
|
3881
|
-
|
|
3897
|
+
const decorators = getDecorators(node);
|
|
3898
|
+
if (decorators === void 0) {
|
|
3882
3899
|
return void 0;
|
|
3883
3900
|
}
|
|
3884
3901
|
const coreDecorators = this._angularCoreDecorators(node);
|
|
3885
|
-
if (coreDecorators.size ===
|
|
3902
|
+
if (coreDecorators.size === decorators.length) {
|
|
3886
3903
|
return void 0;
|
|
3887
3904
|
} else if (coreDecorators.size === 0) {
|
|
3888
|
-
return
|
|
3905
|
+
return nodeArrayFromDecoratorsArray(decorators);
|
|
3889
3906
|
}
|
|
3890
|
-
const filtered =
|
|
3907
|
+
const filtered = decorators.filter((dec) => !coreDecorators.has(dec));
|
|
3891
3908
|
if (filtered.length === 0) {
|
|
3892
3909
|
return void 0;
|
|
3893
3910
|
}
|
|
3894
|
-
|
|
3895
|
-
array.pos = node.decorators.pos;
|
|
3896
|
-
array.end = node.decorators.end;
|
|
3897
|
-
return array;
|
|
3911
|
+
return nodeArrayFromDecoratorsArray(filtered);
|
|
3898
3912
|
}
|
|
3899
3913
|
_stripAngularDecorators(node) {
|
|
3900
3914
|
if (ts19.isParameter(node)) {
|
|
3901
|
-
node =
|
|
3902
|
-
} else if (ts19.isMethodDeclaration(node) && node
|
|
3903
|
-
node =
|
|
3904
|
-
} else if (ts19.isPropertyDeclaration(node) && node
|
|
3905
|
-
node =
|
|
3915
|
+
node = updateParameterDeclaration(node, combineModifiers(this._nonCoreDecoratorsOnly(node), getModifiers(node)), node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer);
|
|
3916
|
+
} else if (ts19.isMethodDeclaration(node) && getDecorators(node) !== void 0) {
|
|
3917
|
+
node = updateMethodDeclaration(node, combineModifiers(this._nonCoreDecoratorsOnly(node), getModifiers(node)), node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body);
|
|
3918
|
+
} else if (ts19.isPropertyDeclaration(node) && getDecorators(node) !== void 0) {
|
|
3919
|
+
node = updatePropertyDeclaration(node, combineModifiers(this._nonCoreDecoratorsOnly(node), getModifiers(node)), node.name, node.questionToken, node.type, node.initializer);
|
|
3906
3920
|
} else if (ts19.isGetAccessor(node)) {
|
|
3907
|
-
node =
|
|
3921
|
+
node = updateGetAccessorDeclaration(node, combineModifiers(this._nonCoreDecoratorsOnly(node), getModifiers(node)), node.name, node.parameters, node.type, node.body);
|
|
3908
3922
|
} else if (ts19.isSetAccessor(node)) {
|
|
3909
|
-
node =
|
|
3923
|
+
node = updateSetAccessorDeclaration(node, combineModifiers(this._nonCoreDecoratorsOnly(node), getModifiers(node)), node.name, node.parameters, node.body);
|
|
3910
3924
|
} else if (ts19.isConstructorDeclaration(node)) {
|
|
3911
3925
|
const parameters = node.parameters.map((param) => this._stripAngularDecorators(param));
|
|
3912
|
-
node =
|
|
3926
|
+
node = updateConstructorDeclaration(node, getModifiers(node), parameters, node.body);
|
|
3913
3927
|
}
|
|
3914
3928
|
return node;
|
|
3915
3929
|
}
|
|
@@ -3986,11 +4000,19 @@ function createRecorderFn(defaultImportTracker) {
|
|
|
3986
4000
|
}
|
|
3987
4001
|
};
|
|
3988
4002
|
}
|
|
4003
|
+
function nodeArrayFromDecoratorsArray(decorators) {
|
|
4004
|
+
const array = ts19.factory.createNodeArray(decorators);
|
|
4005
|
+
if (array.length > 0) {
|
|
4006
|
+
array.pos = decorators[0].pos;
|
|
4007
|
+
array.end = decorators[decorators.length - 1].end;
|
|
4008
|
+
}
|
|
4009
|
+
return array;
|
|
4010
|
+
}
|
|
3989
4011
|
|
|
3990
|
-
// bazel-out/
|
|
4012
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
3991
4013
|
import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
|
|
3992
4014
|
|
|
3993
|
-
// bazel-out/
|
|
4015
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
3994
4016
|
import { createMayBeForwardRefExpression, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
|
|
3995
4017
|
import ts20 from "typescript";
|
|
3996
4018
|
var EMPTY_OBJECT = {};
|
|
@@ -4354,7 +4376,7 @@ function evaluateHostExpressionBindings(hostExpr, evaluator) {
|
|
|
4354
4376
|
return bindings;
|
|
4355
4377
|
}
|
|
4356
4378
|
|
|
4357
|
-
// bazel-out/
|
|
4379
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
4358
4380
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
4359
4381
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
4360
4382
|
super(decl);
|
|
@@ -4431,7 +4453,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
4431
4453
|
return isSymbolEqual(current, previous);
|
|
4432
4454
|
}
|
|
4433
4455
|
|
|
4434
|
-
// bazel-out/
|
|
4456
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
4435
4457
|
var FIELD_DECORATORS = [
|
|
4436
4458
|
"Input",
|
|
4437
4459
|
"Output",
|
|
@@ -4478,6 +4500,7 @@ var DirectiveDecoratorHandler = class {
|
|
|
4478
4500
|
}
|
|
4479
4501
|
}
|
|
4480
4502
|
analyze(node, decorator, flags = HandlerFlags.NONE) {
|
|
4503
|
+
var _a;
|
|
4481
4504
|
if (this.compileUndecoratedClassesWithAngularFeatures === false && decorator === null) {
|
|
4482
4505
|
if (this.isCore) {
|
|
4483
4506
|
return {};
|
|
@@ -4504,7 +4527,8 @@ var DirectiveDecoratorHandler = class {
|
|
|
4504
4527
|
typeCheckMeta: extractDirectiveTypeCheckMeta(node, directiveResult.inputs, this.reflector),
|
|
4505
4528
|
providersRequiringFactory,
|
|
4506
4529
|
isPoisoned: false,
|
|
4507
|
-
isStructural: directiveResult.isStructural
|
|
4530
|
+
isStructural: directiveResult.isStructural,
|
|
4531
|
+
decorator: (_a = decorator == null ? void 0 : decorator.node) != null ? _a : null
|
|
4508
4532
|
}
|
|
4509
4533
|
};
|
|
4510
4534
|
}
|
|
@@ -4531,7 +4555,8 @@ var DirectiveDecoratorHandler = class {
|
|
|
4531
4555
|
animationTriggerNames: null,
|
|
4532
4556
|
isStandalone: analysis.meta.isStandalone,
|
|
4533
4557
|
imports: null,
|
|
4534
|
-
schemas: null
|
|
4558
|
+
schemas: null,
|
|
4559
|
+
decorator: analysis.decorator
|
|
4535
4560
|
});
|
|
4536
4561
|
this.injectableRegistry.registerInjectable(node);
|
|
4537
4562
|
}
|
|
@@ -4575,11 +4600,11 @@ var DirectiveDecoratorHandler = class {
|
|
|
4575
4600
|
}
|
|
4576
4601
|
};
|
|
4577
4602
|
|
|
4578
|
-
// bazel-out/
|
|
4603
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
4579
4604
|
import { compileClassMetadata as compileClassMetadata2, compileDeclareClassMetadata as compileDeclareClassMetadata2, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileInjector, compileNgModule, ExternalExpr as ExternalExpr5, FactoryTarget as FactoryTarget2, FunctionExpr as FunctionExpr2, InvokeFunctionExpr, LiteralArrayExpr as LiteralArrayExpr2, R3Identifiers, R3SelectorScopeMode, ReturnStatement as ReturnStatement2, WrappedNodeExpr as WrappedNodeExpr6 } from "@angular/compiler";
|
|
4580
4605
|
import ts22 from "typescript";
|
|
4581
4606
|
|
|
4582
|
-
// bazel-out/
|
|
4607
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
4583
4608
|
import ts21 from "typescript";
|
|
4584
4609
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
4585
4610
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -4646,7 +4671,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
4646
4671
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
4647
4672
|
}
|
|
4648
4673
|
|
|
4649
|
-
// bazel-out/
|
|
4674
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
4650
4675
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
4651
4676
|
constructor() {
|
|
4652
4677
|
super(...arguments);
|
|
@@ -4725,6 +4750,7 @@ var NgModuleDecoratorHandler = class {
|
|
|
4725
4750
|
}
|
|
4726
4751
|
}
|
|
4727
4752
|
analyze(node, decorator) {
|
|
4753
|
+
var _a;
|
|
4728
4754
|
this.perf.eventCount(PerfEvent.AnalyzeNgModule);
|
|
4729
4755
|
const name = node.name.text;
|
|
4730
4756
|
if (decorator.args === null || decorator.args.length > 1) {
|
|
@@ -4903,7 +4929,8 @@ var NgModuleDecoratorHandler = class {
|
|
|
4903
4929
|
providersRequiringFactory: rawProviders ? resolveProvidersRequiringFactory(rawProviders, this.reflector, this.evaluator) : null,
|
|
4904
4930
|
classMetadata: extractClassMetadata(node, this.reflector, this.isCore, this.annotateForClosureCompiler),
|
|
4905
4931
|
factorySymbolName: node.name.text,
|
|
4906
|
-
remoteScopesMayRequireCycleProtection
|
|
4932
|
+
remoteScopesMayRequireCycleProtection,
|
|
4933
|
+
decorator: (_a = decorator == null ? void 0 : decorator.node) != null ? _a : null
|
|
4907
4934
|
}
|
|
4908
4935
|
};
|
|
4909
4936
|
}
|
|
@@ -4920,7 +4947,8 @@ var NgModuleDecoratorHandler = class {
|
|
|
4920
4947
|
exports: analysis.exports,
|
|
4921
4948
|
rawDeclarations: analysis.rawDeclarations,
|
|
4922
4949
|
rawImports: analysis.rawImports,
|
|
4923
|
-
rawExports: analysis.rawExports
|
|
4950
|
+
rawExports: analysis.rawExports,
|
|
4951
|
+
decorator: analysis.decorator
|
|
4924
4952
|
});
|
|
4925
4953
|
if (this.factoryTracker !== null) {
|
|
4926
4954
|
this.factoryTracker.track(node.getSourceFile(), {
|
|
@@ -5145,7 +5173,7 @@ function isSyntheticReference(ref) {
|
|
|
5145
5173
|
return ref.synthetic;
|
|
5146
5174
|
}
|
|
5147
5175
|
|
|
5148
|
-
// bazel-out/
|
|
5176
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
5149
5177
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
5150
5178
|
const name = ref.debugName || "(unknown)";
|
|
5151
5179
|
const path = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -5168,7 +5196,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
5168
5196
|
return null;
|
|
5169
5197
|
}
|
|
5170
5198
|
|
|
5171
|
-
// bazel-out/
|
|
5199
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
5172
5200
|
import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
|
|
5173
5201
|
import ts23 from "typescript";
|
|
5174
5202
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
@@ -5474,7 +5502,7 @@ function _extractTemplateStyleUrls(template) {
|
|
|
5474
5502
|
return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
5475
5503
|
}
|
|
5476
5504
|
|
|
5477
|
-
// bazel-out/
|
|
5505
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
5478
5506
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
5479
5507
|
constructor() {
|
|
5480
5508
|
super(...arguments);
|
|
@@ -5509,7 +5537,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
5509
5537
|
}
|
|
5510
5538
|
};
|
|
5511
5539
|
|
|
5512
|
-
// bazel-out/
|
|
5540
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
5513
5541
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
5514
5542
|
if (value instanceof Map) {
|
|
5515
5543
|
const name = value.get("name");
|
|
@@ -5585,7 +5613,7 @@ function isLikelyModuleWithProviders(value) {
|
|
|
5585
5613
|
return false;
|
|
5586
5614
|
}
|
|
5587
5615
|
|
|
5588
|
-
// bazel-out/
|
|
5616
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
5589
5617
|
var EMPTY_ARRAY = [];
|
|
5590
5618
|
var ComponentDecoratorHandler = class {
|
|
5591
5619
|
constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf) {
|
|
@@ -5684,7 +5712,7 @@ var ComponentDecoratorHandler = class {
|
|
|
5684
5712
|
]).then(() => void 0);
|
|
5685
5713
|
}
|
|
5686
5714
|
analyze(node, decorator, flags = HandlerFlags.NONE) {
|
|
5687
|
-
var _a, _b;
|
|
5715
|
+
var _a, _b, _c;
|
|
5688
5716
|
this.perf.eventCount(PerfEvent.AnalyzeComponent);
|
|
5689
5717
|
const containingFile = node.getSourceFile().fileName;
|
|
5690
5718
|
this.literalCache.delete(decorator);
|
|
@@ -5866,7 +5894,8 @@ var ComponentDecoratorHandler = class {
|
|
|
5866
5894
|
animationTriggerNames,
|
|
5867
5895
|
rawImports,
|
|
5868
5896
|
resolvedImports,
|
|
5869
|
-
schemas
|
|
5897
|
+
schemas,
|
|
5898
|
+
decorator: (_c = decorator == null ? void 0 : decorator.node) != null ? _c : null
|
|
5870
5899
|
},
|
|
5871
5900
|
diagnostics
|
|
5872
5901
|
};
|
|
@@ -5898,7 +5927,8 @@ var ComponentDecoratorHandler = class {
|
|
|
5898
5927
|
isStandalone: analysis.meta.isStandalone,
|
|
5899
5928
|
imports: analysis.resolvedImports,
|
|
5900
5929
|
animationTriggerNames: analysis.animationTriggerNames,
|
|
5901
|
-
schemas: analysis.schemas
|
|
5930
|
+
schemas: analysis.schemas,
|
|
5931
|
+
decorator: analysis.decorator
|
|
5902
5932
|
});
|
|
5903
5933
|
this.resourceRegistry.registerResources(analysis.resources, node);
|
|
5904
5934
|
this.injectableRegistry.registerInjectable(node);
|
|
@@ -6215,7 +6245,7 @@ function validateStandaloneImports(importRefs, importExpr, metaReader, scopeRead
|
|
|
6215
6245
|
return diagnostics;
|
|
6216
6246
|
}
|
|
6217
6247
|
|
|
6218
|
-
// bazel-out/
|
|
6248
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
6219
6249
|
import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression2, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
|
|
6220
6250
|
import ts25 from "typescript";
|
|
6221
6251
|
var InjectableDecoratorHandler = class {
|
|
@@ -6415,7 +6445,7 @@ function getDep(dep, reflector) {
|
|
|
6415
6445
|
return meta;
|
|
6416
6446
|
}
|
|
6417
6447
|
|
|
6418
|
-
// bazel-out/
|
|
6448
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
6419
6449
|
import { compileClassMetadata as compileClassMetadata5, compileDeclareClassMetadata as compileDeclareClassMetadata5, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5, WrappedNodeExpr as WrappedNodeExpr9 } from "@angular/compiler";
|
|
6420
6450
|
import ts26 from "typescript";
|
|
6421
6451
|
var PipeSymbol = class extends SemanticSymbol {
|
|
@@ -6461,6 +6491,7 @@ var PipeDecoratorHandler = class {
|
|
|
6461
6491
|
}
|
|
6462
6492
|
}
|
|
6463
6493
|
analyze(clazz, decorator) {
|
|
6494
|
+
var _a;
|
|
6464
6495
|
this.perf.eventCount(PerfEvent.AnalyzePipe);
|
|
6465
6496
|
const name = clazz.name.text;
|
|
6466
6497
|
const type = wrapTypeReference(this.reflector, clazz);
|
|
@@ -6515,7 +6546,8 @@ var PipeDecoratorHandler = class {
|
|
|
6515
6546
|
isStandalone
|
|
6516
6547
|
},
|
|
6517
6548
|
classMetadata: extractClassMetadata(clazz, this.reflector, this.isCore),
|
|
6518
|
-
pipeNameExpr
|
|
6549
|
+
pipeNameExpr,
|
|
6550
|
+
decorator: (_a = decorator == null ? void 0 : decorator.node) != null ? _a : null
|
|
6519
6551
|
}
|
|
6520
6552
|
};
|
|
6521
6553
|
}
|
|
@@ -6529,7 +6561,8 @@ var PipeDecoratorHandler = class {
|
|
|
6529
6561
|
ref,
|
|
6530
6562
|
name: analysis.meta.pipeName,
|
|
6531
6563
|
nameExpr: analysis.pipeNameExpr,
|
|
6532
|
-
isStandalone: analysis.meta.isStandalone
|
|
6564
|
+
isStandalone: analysis.meta.isStandalone,
|
|
6565
|
+
decorator: analysis.decorator
|
|
6533
6566
|
});
|
|
6534
6567
|
this.injectableRegistry.registerInjectable(node);
|
|
6535
6568
|
}
|
|
@@ -6597,4 +6630,4 @@ export {
|
|
|
6597
6630
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6598
6631
|
* found in the LICENSE file at https://angular.io/license
|
|
6599
6632
|
*/
|
|
6600
|
-
//# sourceMappingURL=chunk-
|
|
6633
|
+
//# sourceMappingURL=chunk-2VBPNPMZ.js.map
|