@angular/compiler-cli 14.2.0-next.0 → 14.2.0
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-4JF5LVDW.js → chunk-3GWIAJ6N.js} +28 -14
- package/bundles/chunk-3GWIAJ6N.js.map +6 -0
- package/bundles/{chunk-TOKOIIBI.js → chunk-4NRCP3Y6.js} +7 -7
- package/bundles/{chunk-TOKOIIBI.js.map → chunk-4NRCP3Y6.js.map} +0 -0
- package/bundles/{chunk-CYVTLM4Z.js → chunk-56O2PTWU.js} +7 -7
- package/bundles/{chunk-CYVTLM4Z.js.map → chunk-56O2PTWU.js.map} +0 -0
- package/bundles/{chunk-E7NQQTT7.js → chunk-5FZBUSFV.js} +3 -3
- package/bundles/{chunk-E7NQQTT7.js.map → chunk-5FZBUSFV.js.map} +0 -0
- package/bundles/chunk-CLRZAXXE.js +89 -0
- package/bundles/chunk-CLRZAXXE.js.map +6 -0
- package/bundles/{chunk-3AXTYLAQ.js → chunk-DEPZI7L5.js} +31 -31
- package/bundles/{chunk-3AXTYLAQ.js.map → chunk-DEPZI7L5.js.map} +0 -0
- package/bundles/{chunk-4OLMNGX2.js → chunk-DGTSPJIN.js} +40 -40
- package/bundles/{chunk-4OLMNGX2.js.map → chunk-DGTSPJIN.js.map} +0 -0
- package/bundles/{chunk-R3C7RFJ4.js → chunk-HMWNYAAE.js} +2 -2
- package/bundles/{chunk-R3C7RFJ4.js.map → chunk-HMWNYAAE.js.map} +0 -0
- package/bundles/{chunk-DEKIANJX.js → chunk-I4BG3CAN.js} +75 -71
- package/bundles/chunk-I4BG3CAN.js.map +6 -0
- package/bundles/{chunk-FM6NPN5V.js → chunk-ICPLY7FO.js} +4 -4
- package/bundles/{chunk-FM6NPN5V.js.map → chunk-ICPLY7FO.js.map} +0 -0
- package/bundles/{chunk-3ALDQ2SE.js → chunk-J6AVV3MN.js} +142 -107
- package/bundles/chunk-J6AVV3MN.js.map +6 -0
- package/bundles/{chunk-WCXUQ743.js → chunk-NDIOQ2EH.js} +154 -113
- package/bundles/chunk-NDIOQ2EH.js.map +6 -0
- package/bundles/{chunk-NFCN3OZI.js → chunk-NJ2FQOJT.js} +17 -12
- package/bundles/chunk-NJ2FQOJT.js.map +6 -0
- package/bundles/{chunk-2HPI44CB.js → chunk-RCXOJZDO.js} +5 -5
- package/bundles/{chunk-2HPI44CB.js.map → chunk-RCXOJZDO.js.map} +0 -0
- package/bundles/{chunk-2EU3LGV7.js → chunk-TTIGAMYZ.js} +8 -6
- package/bundles/{chunk-2EU3LGV7.js.map → chunk-TTIGAMYZ.js.map} +1 -1
- package/bundles/{chunk-TSVR3WF5.js → chunk-XR6BVLNN.js} +26 -26
- package/bundles/{chunk-TSVR3WF5.js.map → chunk-XR6BVLNN.js.map} +1 -1
- 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 +127 -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/bundles/chunk-3ALDQ2SE.js.map +0 -6
- package/bundles/chunk-4JF5LVDW.js.map +0 -6
- package/bundles/chunk-DEKIANJX.js.map +0 -6
- package/bundles/chunk-NFCN3OZI.js.map +0 -6
- package/bundles/chunk-WCXUQ743.js.map +0 -6
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
reflectObjectLiteral,
|
|
14
14
|
reflectTypeEntityToDeclaration,
|
|
15
15
|
typeNodeToValueExpr
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NJ2FQOJT.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-XR6BVLNN.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-CLRZAXXE.js";
|
|
37
50
|
import {
|
|
38
51
|
absoluteFrom,
|
|
39
52
|
absoluteFromSourceFile,
|
|
40
53
|
relative
|
|
41
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-4NRCP3Y6.js";
|
|
42
55
|
import {
|
|
43
56
|
PerfEvent,
|
|
44
57
|
PerfPhase
|
|
45
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-RCXOJZDO.js";
|
|
46
59
|
|
|
47
|
-
// bazel-out/
|
|
60
|
+
// bazel-out/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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) {
|
|
@@ -1677,13 +1691,13 @@ function removeIdentifierReferences(node, name) {
|
|
|
1677
1691
|
return result.transformed[0];
|
|
1678
1692
|
}
|
|
1679
1693
|
|
|
1680
|
-
// bazel-out/
|
|
1694
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
1681
1695
|
var NoopReferencesRegistry = class {
|
|
1682
1696
|
add(source, ...references) {
|
|
1683
1697
|
}
|
|
1684
1698
|
};
|
|
1685
1699
|
|
|
1686
|
-
// bazel-out/
|
|
1700
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
1687
1701
|
import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from "@angular/compiler";
|
|
1688
1702
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
1689
1703
|
const schemas = [];
|
|
@@ -1713,11 +1727,11 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
1713
1727
|
return schemas;
|
|
1714
1728
|
}
|
|
1715
1729
|
|
|
1716
|
-
// bazel-out/
|
|
1730
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
1717
1731
|
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
1732
|
import ts24 from "typescript";
|
|
1719
1733
|
|
|
1720
|
-
// bazel-out/
|
|
1734
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
1721
1735
|
import ts8 from "typescript";
|
|
1722
1736
|
var SemanticSymbol = class {
|
|
1723
1737
|
constructor(decl) {
|
|
@@ -1733,7 +1747,7 @@ function getSymbolIdentifier(decl) {
|
|
|
1733
1747
|
return decl.name.text;
|
|
1734
1748
|
}
|
|
1735
1749
|
|
|
1736
|
-
// bazel-out/
|
|
1750
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
1737
1751
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
1738
1752
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
1739
1753
|
isPublicApiAffected() {
|
|
@@ -1876,10 +1890,10 @@ function getImportPath(expr) {
|
|
|
1876
1890
|
}
|
|
1877
1891
|
}
|
|
1878
1892
|
|
|
1879
|
-
// bazel-out/
|
|
1893
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
1880
1894
|
import ts9 from "typescript";
|
|
1881
1895
|
|
|
1882
|
-
// bazel-out/
|
|
1896
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
1883
1897
|
function isSymbolEqual(a, b) {
|
|
1884
1898
|
if (a.decl === b.decl) {
|
|
1885
1899
|
return true;
|
|
@@ -1929,7 +1943,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
1929
1943
|
return true;
|
|
1930
1944
|
}
|
|
1931
1945
|
|
|
1932
|
-
// bazel-out/
|
|
1946
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
1933
1947
|
function extractSemanticTypeParameters(node) {
|
|
1934
1948
|
if (!ts9.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
1935
1949
|
return null;
|
|
@@ -1949,7 +1963,7 @@ function isTypeParameterEqual(a, b) {
|
|
|
1949
1963
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
1950
1964
|
}
|
|
1951
1965
|
|
|
1952
|
-
// bazel-out/
|
|
1966
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
1953
1967
|
var MetaKind;
|
|
1954
1968
|
(function(MetaKind2) {
|
|
1955
1969
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -1957,10 +1971,10 @@ var MetaKind;
|
|
|
1957
1971
|
MetaKind2[MetaKind2["NgModule"] = 2] = "NgModule";
|
|
1958
1972
|
})(MetaKind || (MetaKind = {}));
|
|
1959
1973
|
|
|
1960
|
-
// bazel-out/
|
|
1974
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
1961
1975
|
import ts11 from "typescript";
|
|
1962
1976
|
|
|
1963
|
-
// bazel-out/
|
|
1977
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
1964
1978
|
var ClassPropertyMapping = class {
|
|
1965
1979
|
constructor(forwardMap) {
|
|
1966
1980
|
this.forwardMap = forwardMap;
|
|
@@ -2036,7 +2050,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
2036
2050
|
return reverseMap;
|
|
2037
2051
|
}
|
|
2038
2052
|
|
|
2039
|
-
// bazel-out/
|
|
2053
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
2040
2054
|
import ts10 from "typescript";
|
|
2041
2055
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
2042
2056
|
if (!ts10.isTupleTypeNode(def)) {
|
|
@@ -2141,10 +2155,10 @@ function extractDirectiveTypeCheckMeta(node, inputs, reflector) {
|
|
|
2141
2155
|
};
|
|
2142
2156
|
}
|
|
2143
2157
|
function isRestricted(node) {
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2158
|
+
const modifiers = getModifiers(node);
|
|
2159
|
+
return modifiers !== void 0 && modifiers.some(({ kind }) => {
|
|
2160
|
+
return kind === ts10.SyntaxKind.PrivateKeyword || kind === ts10.SyntaxKind.ProtectedKeyword || kind === ts10.SyntaxKind.ReadonlyKeyword;
|
|
2161
|
+
});
|
|
2148
2162
|
}
|
|
2149
2163
|
function extractTemplateGuard(member) {
|
|
2150
2164
|
if (!member.name.startsWith("ngTemplateGuard_")) {
|
|
@@ -2216,7 +2230,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
2216
2230
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
2217
2231
|
}
|
|
2218
2232
|
|
|
2219
|
-
// bazel-out/
|
|
2233
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
2220
2234
|
var DtsMetadataReader = class {
|
|
2221
2235
|
constructor(checker, reflector) {
|
|
2222
2236
|
this.checker = checker;
|
|
@@ -2240,7 +2254,8 @@ var DtsMetadataReader = class {
|
|
|
2240
2254
|
schemas: [],
|
|
2241
2255
|
rawDeclarations: null,
|
|
2242
2256
|
rawImports: null,
|
|
2243
|
-
rawExports: null
|
|
2257
|
+
rawExports: null,
|
|
2258
|
+
decorator: null
|
|
2244
2259
|
};
|
|
2245
2260
|
}
|
|
2246
2261
|
getDirectiveMetadata(ref) {
|
|
@@ -2277,7 +2292,8 @@ var DtsMetadataReader = class {
|
|
|
2277
2292
|
animationTriggerNames: null,
|
|
2278
2293
|
isStandalone,
|
|
2279
2294
|
imports: null,
|
|
2280
|
-
schemas: null
|
|
2295
|
+
schemas: null,
|
|
2296
|
+
decorator: null
|
|
2281
2297
|
};
|
|
2282
2298
|
}
|
|
2283
2299
|
getPipeMetadata(ref) {
|
|
@@ -2299,7 +2315,8 @@ var DtsMetadataReader = class {
|
|
|
2299
2315
|
ref,
|
|
2300
2316
|
name,
|
|
2301
2317
|
nameExpr: null,
|
|
2302
|
-
isStandalone
|
|
2318
|
+
isStandalone,
|
|
2319
|
+
decorator: null
|
|
2303
2320
|
};
|
|
2304
2321
|
}
|
|
2305
2322
|
};
|
|
@@ -2328,7 +2345,7 @@ function readBaseClass2(clazz, checker, reflector) {
|
|
|
2328
2345
|
return null;
|
|
2329
2346
|
}
|
|
2330
2347
|
|
|
2331
|
-
// bazel-out/
|
|
2348
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
2332
2349
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
2333
2350
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
2334
2351
|
if (topMeta === null) {
|
|
@@ -2386,7 +2403,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
2386
2403
|
};
|
|
2387
2404
|
}
|
|
2388
2405
|
|
|
2389
|
-
// bazel-out/
|
|
2406
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
2390
2407
|
var LocalMetadataRegistry = class {
|
|
2391
2408
|
constructor() {
|
|
2392
2409
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -2445,7 +2462,7 @@ var InjectableClassRegistry = class {
|
|
|
2445
2462
|
}
|
|
2446
2463
|
};
|
|
2447
2464
|
|
|
2448
|
-
// bazel-out/
|
|
2465
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
2449
2466
|
var ResourceRegistry = class {
|
|
2450
2467
|
constructor() {
|
|
2451
2468
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -2510,14 +2527,14 @@ var ResourceRegistry = class {
|
|
|
2510
2527
|
}
|
|
2511
2528
|
};
|
|
2512
2529
|
|
|
2513
|
-
// bazel-out/
|
|
2530
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
2514
2531
|
var ComponentScopeKind;
|
|
2515
2532
|
(function(ComponentScopeKind2) {
|
|
2516
2533
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
2517
2534
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
2518
2535
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
2519
2536
|
|
|
2520
|
-
// bazel-out/
|
|
2537
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
2521
2538
|
var CompoundComponentScopeReader = class {
|
|
2522
2539
|
constructor(readers) {
|
|
2523
2540
|
this.readers = readers;
|
|
@@ -2542,7 +2559,7 @@ var CompoundComponentScopeReader = class {
|
|
|
2542
2559
|
}
|
|
2543
2560
|
};
|
|
2544
2561
|
|
|
2545
|
-
// bazel-out/
|
|
2562
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
2546
2563
|
var MetadataDtsModuleScopeResolver = class {
|
|
2547
2564
|
constructor(dtsMetaReader, aliasingHost) {
|
|
2548
2565
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -2618,11 +2635,11 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
2618
2635
|
}
|
|
2619
2636
|
};
|
|
2620
2637
|
|
|
2621
|
-
// bazel-out/
|
|
2638
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
2622
2639
|
import { ExternalExpr as ExternalExpr3 } from "@angular/compiler";
|
|
2623
2640
|
import ts12 from "typescript";
|
|
2624
2641
|
|
|
2625
|
-
// bazel-out/
|
|
2642
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
2626
2643
|
function getDiagnosticNode(ref, rawExpr) {
|
|
2627
2644
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
2628
2645
|
}
|
|
@@ -2645,7 +2662,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
|
|
|
2645
2662
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
|
|
2646
2663
|
}
|
|
2647
2664
|
|
|
2648
|
-
// bazel-out/
|
|
2665
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
2649
2666
|
var LocalModuleScopeRegistry = class {
|
|
2650
2667
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
2651
2668
|
this.localReader = localReader;
|
|
@@ -2984,7 +3001,7 @@ function reexportCollision(module, refA, refB) {
|
|
|
2984
3001
|
]);
|
|
2985
3002
|
}
|
|
2986
3003
|
|
|
2987
|
-
// bazel-out/
|
|
3004
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
2988
3005
|
import { CssSelector, SelectorMatcher } from "@angular/compiler";
|
|
2989
3006
|
import ts13 from "typescript";
|
|
2990
3007
|
var TypeCheckScopeRegistry = class {
|
|
@@ -3046,7 +3063,7 @@ var TypeCheckScopeRegistry = class {
|
|
|
3046
3063
|
}
|
|
3047
3064
|
};
|
|
3048
3065
|
|
|
3049
|
-
// bazel-out/
|
|
3066
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
3050
3067
|
var CompilationMode;
|
|
3051
3068
|
(function(CompilationMode2) {
|
|
3052
3069
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -3064,7 +3081,7 @@ var HandlerFlags;
|
|
|
3064
3081
|
HandlerFlags2[HandlerFlags2["FULL_INHERITANCE"] = 1] = "FULL_INHERITANCE";
|
|
3065
3082
|
})(HandlerFlags || (HandlerFlags = {}));
|
|
3066
3083
|
|
|
3067
|
-
// bazel-out/
|
|
3084
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
3068
3085
|
import ts14 from "typescript";
|
|
3069
3086
|
function aliasTransformFactory(exportStatements) {
|
|
3070
3087
|
return (context) => {
|
|
@@ -3082,10 +3099,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
3082
3099
|
};
|
|
3083
3100
|
}
|
|
3084
3101
|
|
|
3085
|
-
// bazel-out/
|
|
3102
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
3086
3103
|
import ts15 from "typescript";
|
|
3087
3104
|
|
|
3088
|
-
// bazel-out/
|
|
3105
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
3089
3106
|
var TraitState;
|
|
3090
3107
|
(function(TraitState2) {
|
|
3091
3108
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -3140,7 +3157,7 @@ var TraitImpl = class {
|
|
|
3140
3157
|
}
|
|
3141
3158
|
};
|
|
3142
3159
|
|
|
3143
|
-
// bazel-out/
|
|
3160
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
3144
3161
|
var TraitCompiler = class {
|
|
3145
3162
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
3146
3163
|
this.handlers = handlers;
|
|
@@ -3584,10 +3601,10 @@ function containsErrors(diagnostics) {
|
|
|
3584
3601
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === ts15.DiagnosticCategory.Error);
|
|
3585
3602
|
}
|
|
3586
3603
|
|
|
3587
|
-
// bazel-out/
|
|
3604
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
3588
3605
|
import ts17 from "typescript";
|
|
3589
3606
|
|
|
3590
|
-
// bazel-out/
|
|
3607
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
3591
3608
|
import ts16 from "typescript";
|
|
3592
3609
|
function addImports(importManager, sf, extraStatements = []) {
|
|
3593
3610
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
@@ -3615,7 +3632,7 @@ function isImportStatement(stmt) {
|
|
|
3615
3632
|
return ts16.isImportDeclaration(stmt) || ts16.isImportEqualsDeclaration(stmt) || ts16.isNamespaceImport(stmt);
|
|
3616
3633
|
}
|
|
3617
3634
|
|
|
3618
|
-
// bazel-out/
|
|
3635
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
3619
3636
|
var DtsTransformRegistry = class {
|
|
3620
3637
|
constructor() {
|
|
3621
3638
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -3699,7 +3716,7 @@ var DtsTransformer = class {
|
|
|
3699
3716
|
}
|
|
3700
3717
|
}
|
|
3701
3718
|
if (elementsChanged && clazz === newClazz) {
|
|
3702
|
-
newClazz =
|
|
3719
|
+
newClazz = updateClassDeclaration(clazz, clazz.modifiers, clazz.name, clazz.typeParameters, clazz.heritageClauses, elements);
|
|
3703
3720
|
}
|
|
3704
3721
|
return newClazz;
|
|
3705
3722
|
}
|
|
@@ -3730,9 +3747,9 @@ var IvyDeclarationDtsTransform = class {
|
|
|
3730
3747
|
const modifiers = [ts17.factory.createModifier(ts17.SyntaxKind.StaticKeyword)];
|
|
3731
3748
|
const typeRef = translateType(decl.type, imports);
|
|
3732
3749
|
markForEmitAsSingleLine(typeRef);
|
|
3733
|
-
return
|
|
3750
|
+
return createPropertyDeclaration(modifiers, decl.name, void 0, typeRef, void 0);
|
|
3734
3751
|
});
|
|
3735
|
-
return
|
|
3752
|
+
return updateClassDeclaration(clazz, clazz.modifiers, clazz.name, clazz.typeParameters, clazz.heritageClauses, [...members, ...newMembers]);
|
|
3736
3753
|
}
|
|
3737
3754
|
};
|
|
3738
3755
|
function markForEmitAsSingleLine(node) {
|
|
@@ -3740,11 +3757,11 @@ function markForEmitAsSingleLine(node) {
|
|
|
3740
3757
|
ts17.forEachChild(node, markForEmitAsSingleLine);
|
|
3741
3758
|
}
|
|
3742
3759
|
|
|
3743
|
-
// bazel-out/
|
|
3760
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
3744
3761
|
import { ConstantPool } from "@angular/compiler";
|
|
3745
3762
|
import ts19 from "typescript";
|
|
3746
3763
|
|
|
3747
|
-
// bazel-out/
|
|
3764
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
3748
3765
|
import ts18 from "typescript";
|
|
3749
3766
|
function visit(node, visitor, context) {
|
|
3750
3767
|
return visitor._visit(node, context);
|
|
@@ -3806,7 +3823,7 @@ function hasStatements(node) {
|
|
|
3806
3823
|
return block.statements !== void 0 && Array.isArray(block.statements);
|
|
3807
3824
|
}
|
|
3808
3825
|
|
|
3809
|
-
// bazel-out/
|
|
3826
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
3810
3827
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
3811
3828
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
3812
3829
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -3855,14 +3872,15 @@ var IvyTransformationVisitor = class extends Visitor {
|
|
|
3855
3872
|
const members = [...node.members];
|
|
3856
3873
|
for (const field of this.classCompilationMap.get(node)) {
|
|
3857
3874
|
const exprNode = translateExpression(field.initializer, this.importManager, translateOptions);
|
|
3858
|
-
const property =
|
|
3875
|
+
const property = createPropertyDeclaration([ts19.factory.createToken(ts19.SyntaxKind.StaticKeyword)], field.name, void 0, void 0, exprNode);
|
|
3859
3876
|
if (this.isClosureCompilerEnabled) {
|
|
3860
3877
|
ts19.addSyntheticLeadingComment(property, ts19.SyntaxKind.MultiLineCommentTrivia, "* @nocollapse ", false);
|
|
3861
3878
|
}
|
|
3862
3879
|
field.statements.map((stmt) => translateStatement(stmt, this.importManager, translateOptions)).forEach((stmt) => statements.push(stmt));
|
|
3863
3880
|
members.push(property);
|
|
3864
3881
|
}
|
|
3865
|
-
|
|
3882
|
+
const filteredDecorators = maybeFilterDecorator(getDecorators(node), this.compilation.decoratorsFor(node));
|
|
3883
|
+
node = updateClassDeclaration(node, combineModifiers(filteredDecorators, getModifiers(node)), node.name, node.typeParameters, node.heritageClauses || [], members.map((member) => this._stripAngularDecorators(member)));
|
|
3866
3884
|
return { node, after: statements };
|
|
3867
3885
|
}
|
|
3868
3886
|
_angularCoreDecorators(decl) {
|
|
@@ -3878,38 +3896,36 @@ var IvyTransformationVisitor = class extends Visitor {
|
|
|
3878
3896
|
}
|
|
3879
3897
|
}
|
|
3880
3898
|
_nonCoreDecoratorsOnly(node) {
|
|
3881
|
-
|
|
3899
|
+
const decorators = getDecorators(node);
|
|
3900
|
+
if (decorators === void 0) {
|
|
3882
3901
|
return void 0;
|
|
3883
3902
|
}
|
|
3884
3903
|
const coreDecorators = this._angularCoreDecorators(node);
|
|
3885
|
-
if (coreDecorators.size ===
|
|
3904
|
+
if (coreDecorators.size === decorators.length) {
|
|
3886
3905
|
return void 0;
|
|
3887
3906
|
} else if (coreDecorators.size === 0) {
|
|
3888
|
-
return
|
|
3907
|
+
return nodeArrayFromDecoratorsArray(decorators);
|
|
3889
3908
|
}
|
|
3890
|
-
const filtered =
|
|
3909
|
+
const filtered = decorators.filter((dec) => !coreDecorators.has(dec));
|
|
3891
3910
|
if (filtered.length === 0) {
|
|
3892
3911
|
return void 0;
|
|
3893
3912
|
}
|
|
3894
|
-
|
|
3895
|
-
array.pos = node.decorators.pos;
|
|
3896
|
-
array.end = node.decorators.end;
|
|
3897
|
-
return array;
|
|
3913
|
+
return nodeArrayFromDecoratorsArray(filtered);
|
|
3898
3914
|
}
|
|
3899
3915
|
_stripAngularDecorators(node) {
|
|
3900
3916
|
if (ts19.isParameter(node)) {
|
|
3901
|
-
node =
|
|
3902
|
-
} else if (ts19.isMethodDeclaration(node) && node
|
|
3903
|
-
node =
|
|
3904
|
-
} else if (ts19.isPropertyDeclaration(node) && node
|
|
3905
|
-
node =
|
|
3917
|
+
node = updateParameterDeclaration(node, combineModifiers(this._nonCoreDecoratorsOnly(node), getModifiers(node)), node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer);
|
|
3918
|
+
} else if (ts19.isMethodDeclaration(node) && getDecorators(node) !== void 0) {
|
|
3919
|
+
node = updateMethodDeclaration(node, combineModifiers(this._nonCoreDecoratorsOnly(node), getModifiers(node)), node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body);
|
|
3920
|
+
} else if (ts19.isPropertyDeclaration(node) && getDecorators(node) !== void 0) {
|
|
3921
|
+
node = updatePropertyDeclaration(node, combineModifiers(this._nonCoreDecoratorsOnly(node), getModifiers(node)), node.name, node.questionToken, node.type, node.initializer);
|
|
3906
3922
|
} else if (ts19.isGetAccessor(node)) {
|
|
3907
|
-
node =
|
|
3923
|
+
node = updateGetAccessorDeclaration(node, combineModifiers(this._nonCoreDecoratorsOnly(node), getModifiers(node)), node.name, node.parameters, node.type, node.body);
|
|
3908
3924
|
} else if (ts19.isSetAccessor(node)) {
|
|
3909
|
-
node =
|
|
3925
|
+
node = updateSetAccessorDeclaration(node, combineModifiers(this._nonCoreDecoratorsOnly(node), getModifiers(node)), node.name, node.parameters, node.body);
|
|
3910
3926
|
} else if (ts19.isConstructorDeclaration(node)) {
|
|
3911
3927
|
const parameters = node.parameters.map((param) => this._stripAngularDecorators(param));
|
|
3912
|
-
node =
|
|
3928
|
+
node = updateConstructorDeclaration(node, getModifiers(node), parameters, node.body);
|
|
3913
3929
|
}
|
|
3914
3930
|
return node;
|
|
3915
3931
|
}
|
|
@@ -3986,11 +4002,19 @@ function createRecorderFn(defaultImportTracker) {
|
|
|
3986
4002
|
}
|
|
3987
4003
|
};
|
|
3988
4004
|
}
|
|
4005
|
+
function nodeArrayFromDecoratorsArray(decorators) {
|
|
4006
|
+
const array = ts19.factory.createNodeArray(decorators);
|
|
4007
|
+
if (array.length > 0) {
|
|
4008
|
+
array.pos = decorators[0].pos;
|
|
4009
|
+
array.end = decorators[decorators.length - 1].end;
|
|
4010
|
+
}
|
|
4011
|
+
return array;
|
|
4012
|
+
}
|
|
3989
4013
|
|
|
3990
|
-
// bazel-out/
|
|
4014
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
3991
4015
|
import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
|
|
3992
4016
|
|
|
3993
|
-
// bazel-out/
|
|
4017
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
3994
4018
|
import { createMayBeForwardRefExpression, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
|
|
3995
4019
|
import ts20 from "typescript";
|
|
3996
4020
|
var EMPTY_OBJECT = {};
|
|
@@ -4354,7 +4378,7 @@ function evaluateHostExpressionBindings(hostExpr, evaluator) {
|
|
|
4354
4378
|
return bindings;
|
|
4355
4379
|
}
|
|
4356
4380
|
|
|
4357
|
-
// bazel-out/
|
|
4381
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
4358
4382
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
4359
4383
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
4360
4384
|
super(decl);
|
|
@@ -4431,7 +4455,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
4431
4455
|
return isSymbolEqual(current, previous);
|
|
4432
4456
|
}
|
|
4433
4457
|
|
|
4434
|
-
// bazel-out/
|
|
4458
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
4435
4459
|
var FIELD_DECORATORS = [
|
|
4436
4460
|
"Input",
|
|
4437
4461
|
"Output",
|
|
@@ -4478,6 +4502,7 @@ var DirectiveDecoratorHandler = class {
|
|
|
4478
4502
|
}
|
|
4479
4503
|
}
|
|
4480
4504
|
analyze(node, decorator, flags = HandlerFlags.NONE) {
|
|
4505
|
+
var _a;
|
|
4481
4506
|
if (this.compileUndecoratedClassesWithAngularFeatures === false && decorator === null) {
|
|
4482
4507
|
if (this.isCore) {
|
|
4483
4508
|
return {};
|
|
@@ -4504,7 +4529,8 @@ var DirectiveDecoratorHandler = class {
|
|
|
4504
4529
|
typeCheckMeta: extractDirectiveTypeCheckMeta(node, directiveResult.inputs, this.reflector),
|
|
4505
4530
|
providersRequiringFactory,
|
|
4506
4531
|
isPoisoned: false,
|
|
4507
|
-
isStructural: directiveResult.isStructural
|
|
4532
|
+
isStructural: directiveResult.isStructural,
|
|
4533
|
+
decorator: (_a = decorator == null ? void 0 : decorator.node) != null ? _a : null
|
|
4508
4534
|
}
|
|
4509
4535
|
};
|
|
4510
4536
|
}
|
|
@@ -4531,7 +4557,8 @@ var DirectiveDecoratorHandler = class {
|
|
|
4531
4557
|
animationTriggerNames: null,
|
|
4532
4558
|
isStandalone: analysis.meta.isStandalone,
|
|
4533
4559
|
imports: null,
|
|
4534
|
-
schemas: null
|
|
4560
|
+
schemas: null,
|
|
4561
|
+
decorator: analysis.decorator
|
|
4535
4562
|
});
|
|
4536
4563
|
this.injectableRegistry.registerInjectable(node);
|
|
4537
4564
|
}
|
|
@@ -4575,11 +4602,11 @@ var DirectiveDecoratorHandler = class {
|
|
|
4575
4602
|
}
|
|
4576
4603
|
};
|
|
4577
4604
|
|
|
4578
|
-
// bazel-out/
|
|
4605
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
4579
4606
|
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
4607
|
import ts22 from "typescript";
|
|
4581
4608
|
|
|
4582
|
-
// bazel-out/
|
|
4609
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
4583
4610
|
import ts21 from "typescript";
|
|
4584
4611
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
4585
4612
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -4646,7 +4673,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
4646
4673
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
4647
4674
|
}
|
|
4648
4675
|
|
|
4649
|
-
// bazel-out/
|
|
4676
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
4650
4677
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
4651
4678
|
constructor() {
|
|
4652
4679
|
super(...arguments);
|
|
@@ -4725,6 +4752,7 @@ var NgModuleDecoratorHandler = class {
|
|
|
4725
4752
|
}
|
|
4726
4753
|
}
|
|
4727
4754
|
analyze(node, decorator) {
|
|
4755
|
+
var _a;
|
|
4728
4756
|
this.perf.eventCount(PerfEvent.AnalyzeNgModule);
|
|
4729
4757
|
const name = node.name.text;
|
|
4730
4758
|
if (decorator.args === null || decorator.args.length > 1) {
|
|
@@ -4903,7 +4931,8 @@ var NgModuleDecoratorHandler = class {
|
|
|
4903
4931
|
providersRequiringFactory: rawProviders ? resolveProvidersRequiringFactory(rawProviders, this.reflector, this.evaluator) : null,
|
|
4904
4932
|
classMetadata: extractClassMetadata(node, this.reflector, this.isCore, this.annotateForClosureCompiler),
|
|
4905
4933
|
factorySymbolName: node.name.text,
|
|
4906
|
-
remoteScopesMayRequireCycleProtection
|
|
4934
|
+
remoteScopesMayRequireCycleProtection,
|
|
4935
|
+
decorator: (_a = decorator == null ? void 0 : decorator.node) != null ? _a : null
|
|
4907
4936
|
}
|
|
4908
4937
|
};
|
|
4909
4938
|
}
|
|
@@ -4920,7 +4949,8 @@ var NgModuleDecoratorHandler = class {
|
|
|
4920
4949
|
exports: analysis.exports,
|
|
4921
4950
|
rawDeclarations: analysis.rawDeclarations,
|
|
4922
4951
|
rawImports: analysis.rawImports,
|
|
4923
|
-
rawExports: analysis.rawExports
|
|
4952
|
+
rawExports: analysis.rawExports,
|
|
4953
|
+
decorator: analysis.decorator
|
|
4924
4954
|
});
|
|
4925
4955
|
if (this.factoryTracker !== null) {
|
|
4926
4956
|
this.factoryTracker.track(node.getSourceFile(), {
|
|
@@ -5145,7 +5175,7 @@ function isSyntheticReference(ref) {
|
|
|
5145
5175
|
return ref.synthetic;
|
|
5146
5176
|
}
|
|
5147
5177
|
|
|
5148
|
-
// bazel-out/
|
|
5178
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
5149
5179
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
5150
5180
|
const name = ref.debugName || "(unknown)";
|
|
5151
5181
|
const path = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -5168,7 +5198,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
5168
5198
|
return null;
|
|
5169
5199
|
}
|
|
5170
5200
|
|
|
5171
|
-
// bazel-out/
|
|
5201
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
5172
5202
|
import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
|
|
5173
5203
|
import ts23 from "typescript";
|
|
5174
5204
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
@@ -5474,7 +5504,7 @@ function _extractTemplateStyleUrls(template) {
|
|
|
5474
5504
|
return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
5475
5505
|
}
|
|
5476
5506
|
|
|
5477
|
-
// bazel-out/
|
|
5507
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
5478
5508
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
5479
5509
|
constructor() {
|
|
5480
5510
|
super(...arguments);
|
|
@@ -5509,7 +5539,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
5509
5539
|
}
|
|
5510
5540
|
};
|
|
5511
5541
|
|
|
5512
|
-
// bazel-out/
|
|
5542
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
5513
5543
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
5514
5544
|
if (value instanceof Map) {
|
|
5515
5545
|
const name = value.get("name");
|
|
@@ -5585,7 +5615,7 @@ function isLikelyModuleWithProviders(value) {
|
|
|
5585
5615
|
return false;
|
|
5586
5616
|
}
|
|
5587
5617
|
|
|
5588
|
-
// bazel-out/
|
|
5618
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
5589
5619
|
var EMPTY_ARRAY = [];
|
|
5590
5620
|
var ComponentDecoratorHandler = class {
|
|
5591
5621
|
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 +5714,7 @@ var ComponentDecoratorHandler = class {
|
|
|
5684
5714
|
]).then(() => void 0);
|
|
5685
5715
|
}
|
|
5686
5716
|
analyze(node, decorator, flags = HandlerFlags.NONE) {
|
|
5687
|
-
var _a, _b;
|
|
5717
|
+
var _a, _b, _c;
|
|
5688
5718
|
this.perf.eventCount(PerfEvent.AnalyzeComponent);
|
|
5689
5719
|
const containingFile = node.getSourceFile().fileName;
|
|
5690
5720
|
this.literalCache.delete(decorator);
|
|
@@ -5866,7 +5896,8 @@ var ComponentDecoratorHandler = class {
|
|
|
5866
5896
|
animationTriggerNames,
|
|
5867
5897
|
rawImports,
|
|
5868
5898
|
resolvedImports,
|
|
5869
|
-
schemas
|
|
5899
|
+
schemas,
|
|
5900
|
+
decorator: (_c = decorator == null ? void 0 : decorator.node) != null ? _c : null
|
|
5870
5901
|
},
|
|
5871
5902
|
diagnostics
|
|
5872
5903
|
};
|
|
@@ -5898,7 +5929,8 @@ var ComponentDecoratorHandler = class {
|
|
|
5898
5929
|
isStandalone: analysis.meta.isStandalone,
|
|
5899
5930
|
imports: analysis.resolvedImports,
|
|
5900
5931
|
animationTriggerNames: analysis.animationTriggerNames,
|
|
5901
|
-
schemas: analysis.schemas
|
|
5932
|
+
schemas: analysis.schemas,
|
|
5933
|
+
decorator: analysis.decorator
|
|
5902
5934
|
});
|
|
5903
5935
|
this.resourceRegistry.registerResources(analysis.resources, node);
|
|
5904
5936
|
this.injectableRegistry.registerInjectable(node);
|
|
@@ -6215,7 +6247,7 @@ function validateStandaloneImports(importRefs, importExpr, metaReader, scopeRead
|
|
|
6215
6247
|
return diagnostics;
|
|
6216
6248
|
}
|
|
6217
6249
|
|
|
6218
|
-
// bazel-out/
|
|
6250
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
6219
6251
|
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
6252
|
import ts25 from "typescript";
|
|
6221
6253
|
var InjectableDecoratorHandler = class {
|
|
@@ -6415,7 +6447,7 @@ function getDep(dep, reflector) {
|
|
|
6415
6447
|
return meta;
|
|
6416
6448
|
}
|
|
6417
6449
|
|
|
6418
|
-
// bazel-out/
|
|
6450
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
6419
6451
|
import { compileClassMetadata as compileClassMetadata5, compileDeclareClassMetadata as compileDeclareClassMetadata5, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5, WrappedNodeExpr as WrappedNodeExpr9 } from "@angular/compiler";
|
|
6420
6452
|
import ts26 from "typescript";
|
|
6421
6453
|
var PipeSymbol = class extends SemanticSymbol {
|
|
@@ -6461,6 +6493,7 @@ var PipeDecoratorHandler = class {
|
|
|
6461
6493
|
}
|
|
6462
6494
|
}
|
|
6463
6495
|
analyze(clazz, decorator) {
|
|
6496
|
+
var _a;
|
|
6464
6497
|
this.perf.eventCount(PerfEvent.AnalyzePipe);
|
|
6465
6498
|
const name = clazz.name.text;
|
|
6466
6499
|
const type = wrapTypeReference(this.reflector, clazz);
|
|
@@ -6515,7 +6548,8 @@ var PipeDecoratorHandler = class {
|
|
|
6515
6548
|
isStandalone
|
|
6516
6549
|
},
|
|
6517
6550
|
classMetadata: extractClassMetadata(clazz, this.reflector, this.isCore),
|
|
6518
|
-
pipeNameExpr
|
|
6551
|
+
pipeNameExpr,
|
|
6552
|
+
decorator: (_a = decorator == null ? void 0 : decorator.node) != null ? _a : null
|
|
6519
6553
|
}
|
|
6520
6554
|
};
|
|
6521
6555
|
}
|
|
@@ -6529,7 +6563,8 @@ var PipeDecoratorHandler = class {
|
|
|
6529
6563
|
ref,
|
|
6530
6564
|
name: analysis.meta.pipeName,
|
|
6531
6565
|
nameExpr: analysis.pipeNameExpr,
|
|
6532
|
-
isStandalone: analysis.meta.isStandalone
|
|
6566
|
+
isStandalone: analysis.meta.isStandalone,
|
|
6567
|
+
decorator: analysis.decorator
|
|
6533
6568
|
});
|
|
6534
6569
|
this.injectableRegistry.registerInjectable(node);
|
|
6535
6570
|
}
|
|
@@ -6597,4 +6632,4 @@ export {
|
|
|
6597
6632
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6598
6633
|
* found in the LICENSE file at https://angular.io/license
|
|
6599
6634
|
*/
|
|
6600
|
-
//# sourceMappingURL=chunk-
|
|
6635
|
+
//# sourceMappingURL=chunk-J6AVV3MN.js.map
|