@angular/compiler-cli 14.0.0-next.2 → 14.0.0-next.5
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-N4EP6MZR.js → chunk-26T3CJIJ.js} +143 -124
- package/bundles/chunk-26T3CJIJ.js.map +6 -0
- package/bundles/{chunk-RNVIUKDY.js → chunk-3MNDX4LL.js} +35 -35
- package/bundles/chunk-3MNDX4LL.js.map +6 -0
- package/bundles/{chunk-2XJJHADR.js → chunk-5RC6M6GX.js} +92 -86
- package/bundles/chunk-5RC6M6GX.js.map +6 -0
- package/bundles/{chunk-XXMNTCYN.js → chunk-AR265E4B.js} +7 -7
- package/bundles/chunk-AR265E4B.js.map +6 -0
- package/bundles/{chunk-JR2JHPEZ.js → chunk-EKTXEYNU.js} +40 -40
- package/bundles/{chunk-JR2JHPEZ.js.map → chunk-EKTXEYNU.js.map} +0 -0
- package/bundles/{chunk-QZBA4KSX.js → chunk-FXU7FMZC.js} +7 -7
- package/bundles/{chunk-QZBA4KSX.js.map → chunk-FXU7FMZC.js.map} +0 -0
- package/bundles/{chunk-J6CW3T62.js → chunk-GLCRIILX.js} +5 -5
- package/bundles/{chunk-J6CW3T62.js.map → chunk-GLCRIILX.js.map} +0 -0
- package/bundles/{chunk-3WNAIXKA.js → chunk-K2Z44JHH.js} +7 -7
- package/bundles/{chunk-3WNAIXKA.js.map → chunk-K2Z44JHH.js.map} +0 -0
- package/bundles/{chunk-4EUDG74G.js → chunk-NOHUA2VC.js} +73 -73
- package/bundles/{chunk-4EUDG74G.js.map → chunk-NOHUA2VC.js.map} +1 -1
- package/bundles/{chunk-JL6TC6CB.js → chunk-O6MYVXDE.js} +225 -219
- package/bundles/chunk-O6MYVXDE.js.map +6 -0
- package/bundles/{chunk-4N4Y5TPT.js → chunk-OOJDZK5W.js} +31 -31
- package/bundles/{chunk-4N4Y5TPT.js.map → chunk-OOJDZK5W.js.map} +0 -0
- package/bundles/{chunk-BPCUCINV.js → chunk-QDWL7SZJ.js} +2 -2
- package/bundles/{chunk-BPCUCINV.js.map → chunk-QDWL7SZJ.js.map} +0 -0
- package/bundles/{chunk-JTYUTYS2.js → chunk-SKBLJA43.js} +3 -3
- package/bundles/{chunk-JTYUTYS2.js.map → chunk-SKBLJA43.js.map} +0 -0
- package/bundles/{chunk-VOXD467J.js → chunk-SPJK7BKR.js} +5 -5
- package/bundles/{chunk-VOXD467J.js.map → chunk-SPJK7BKR.js.map} +0 -0
- package/bundles/{chunk-LL4S3DRM.js → chunk-Z2HS4HDG.js} +4 -4
- package/bundles/{chunk-LL4S3DRM.js.map → chunk-Z2HS4HDG.js.map} +0 -0
- package/bundles/index.js +12 -12
- package/bundles/linker/babel/index.js +18 -18
- package/bundles/linker/babel/index.js.map +1 -1
- package/bundles/linker/index.js +4 -4
- package/bundles/ngcc/index.js +12 -12
- package/bundles/ngcc/main-ngcc.js +13 -13
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +13 -13
- 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 +5 -5
- package/bundles/private/tooling.js +2 -2
- package/bundles/src/bin/ng_xi18n.js +10 -10
- package/bundles/src/bin/ngc.js +8 -8
- package/bundles_metadata.json +1 -1
- package/linker/babel/src/babel_core.d.ts +1 -0
- package/linker/babel/src/babel_declaration_scope.d.ts +1 -1
- package/ngcc/src/packages/build_marker.d.ts +1 -1
- package/package.json +3 -3
- package/private/babel.d.ts +42 -0
- package/src/ngtsc/annotations/component/src/util.d.ts +3 -1
- package/src/ngtsc/translator/src/typescript_ast_factory.d.ts +1 -4
- package/src/ngtsc/typecheck/src/diagnostics.d.ts +6 -5
- package/bundles/chunk-2XJJHADR.js.map +0 -6
- package/bundles/chunk-JL6TC6CB.js.map +0 -6
- package/bundles/chunk-N4EP6MZR.js.map +0 -6
- package/bundles/chunk-RNVIUKDY.js.map +0 -6
- package/bundles/chunk-XXMNTCYN.js.map +0 -6
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
reflectObjectLiteral,
|
|
14
14
|
reflectTypeEntityToDeclaration,
|
|
15
15
|
typeNodeToValueExpr
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AR265E4B.js";
|
|
17
17
|
import {
|
|
18
18
|
ErrorCode,
|
|
19
19
|
FatalDiagnosticError,
|
|
@@ -35,23 +35,23 @@ import {
|
|
|
35
35
|
translateExpression,
|
|
36
36
|
translateStatement,
|
|
37
37
|
translateType
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-5RC6M6GX.js";
|
|
39
39
|
import {
|
|
40
40
|
absoluteFrom,
|
|
41
41
|
absoluteFromSourceFile,
|
|
42
42
|
basename,
|
|
43
43
|
relative
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-FXU7FMZC.js";
|
|
45
45
|
import {
|
|
46
46
|
PerfEvent,
|
|
47
47
|
PerfPhase
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-GLCRIILX.js";
|
|
49
49
|
import {
|
|
50
50
|
__spreadProps,
|
|
51
51
|
__spreadValues
|
|
52
52
|
} from "./chunk-WQ3TNYTD.js";
|
|
53
53
|
|
|
54
|
-
// bazel-out/
|
|
54
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
55
55
|
import { ExternalExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr } from "@angular/compiler";
|
|
56
56
|
import ts from "typescript";
|
|
57
57
|
function valueReferenceToExpression(valueRef) {
|
|
@@ -188,7 +188,7 @@ var parensWrapperTransformerFactory = (context) => {
|
|
|
188
188
|
const visitor = (node) => {
|
|
189
189
|
const visited = ts.visitEachChild(node, visitor, context);
|
|
190
190
|
if (ts.isArrowFunction(visited) || ts.isFunctionExpression(visited)) {
|
|
191
|
-
return ts.
|
|
191
|
+
return ts.factory.createParenthesizedExpression(visited);
|
|
192
192
|
}
|
|
193
193
|
return visited;
|
|
194
194
|
};
|
|
@@ -273,7 +273,7 @@ function resolveImportedFile(moduleResolver, importedFile, expr, origin) {
|
|
|
273
273
|
return moduleResolver.resolveModule(expr.value.moduleName, origin.fileName);
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
// bazel-out/
|
|
276
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
277
277
|
var DynamicValue = class {
|
|
278
278
|
constructor(node, reason, code) {
|
|
279
279
|
this.node = node;
|
|
@@ -358,10 +358,10 @@ var DynamicValue = class {
|
|
|
358
358
|
}
|
|
359
359
|
};
|
|
360
360
|
|
|
361
|
-
// bazel-out/
|
|
361
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
362
362
|
import ts2 from "typescript";
|
|
363
363
|
|
|
364
|
-
// bazel-out/
|
|
364
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
365
365
|
var ResolvedModule = class {
|
|
366
366
|
constructor(exports, evaluate) {
|
|
367
367
|
this.exports = exports;
|
|
@@ -391,7 +391,7 @@ var EnumValue = class {
|
|
|
391
391
|
var KnownFn = class {
|
|
392
392
|
};
|
|
393
393
|
|
|
394
|
-
// bazel-out/
|
|
394
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
395
395
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
396
396
|
constructor(lhs) {
|
|
397
397
|
super();
|
|
@@ -462,7 +462,7 @@ var ObjectAssignBuiltinFn = class extends KnownFn {
|
|
|
462
462
|
}
|
|
463
463
|
};
|
|
464
464
|
|
|
465
|
-
// bazel-out/
|
|
465
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/ts_helpers.mjs
|
|
466
466
|
var AssignHelperFn = class extends ObjectAssignBuiltinFn {
|
|
467
467
|
};
|
|
468
468
|
var SpreadHelperFn = class extends KnownFn {
|
|
@@ -515,7 +515,7 @@ var ReadHelperFn = class extends KnownFn {
|
|
|
515
515
|
}
|
|
516
516
|
};
|
|
517
517
|
|
|
518
|
-
// bazel-out/
|
|
518
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/known_declaration.mjs
|
|
519
519
|
var jsGlobalObjectValue = /* @__PURE__ */ new Map([["assign", new ObjectAssignBuiltinFn()]]);
|
|
520
520
|
var assignTsHelperFn = new AssignHelperFn();
|
|
521
521
|
var spreadTsHelperFn = new SpreadHelperFn();
|
|
@@ -539,7 +539,7 @@ function resolveKnownDeclaration(decl) {
|
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
|
|
542
|
-
// bazel-out/
|
|
542
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
543
543
|
function literalBinaryOp(op) {
|
|
544
544
|
return { op, literal: true };
|
|
545
545
|
}
|
|
@@ -1126,7 +1126,7 @@ function owningModule(context, override = null) {
|
|
|
1126
1126
|
}
|
|
1127
1127
|
}
|
|
1128
1128
|
|
|
1129
|
-
// bazel-out/
|
|
1129
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
1130
1130
|
var PartialEvaluator = class {
|
|
1131
1131
|
constructor(host, checker, dependencyTracker) {
|
|
1132
1132
|
this.host = host;
|
|
@@ -1146,7 +1146,7 @@ var PartialEvaluator = class {
|
|
|
1146
1146
|
}
|
|
1147
1147
|
};
|
|
1148
1148
|
|
|
1149
|
-
// bazel-out/
|
|
1149
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
1150
1150
|
import ts3 from "typescript";
|
|
1151
1151
|
function describeResolvedType(value, maxDepth = 1) {
|
|
1152
1152
|
var _a, _b;
|
|
@@ -1273,7 +1273,7 @@ function getContainerNode(node) {
|
|
|
1273
1273
|
return node.getSourceFile();
|
|
1274
1274
|
}
|
|
1275
1275
|
|
|
1276
|
-
// bazel-out/
|
|
1276
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
1277
1277
|
import { LiteralExpr, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
|
|
1278
1278
|
import ts4 from "typescript";
|
|
1279
1279
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
@@ -1315,7 +1315,7 @@ function getConstructorDependencies(clazz, reflector, isCore) {
|
|
|
1315
1315
|
if (ts4.isStringLiteralLike(attributeName)) {
|
|
1316
1316
|
attributeNameType = new LiteralExpr(attributeName.text);
|
|
1317
1317
|
} else {
|
|
1318
|
-
attributeNameType = new WrappedNodeExpr2(ts4.createKeywordTypeNode(ts4.SyntaxKind.UnknownKeyword));
|
|
1318
|
+
attributeNameType = new WrappedNodeExpr2(ts4.factory.createKeywordTypeNode(ts4.SyntaxKind.UnknownKeyword));
|
|
1319
1319
|
}
|
|
1320
1320
|
} else {
|
|
1321
1321
|
throw new FatalDiagnosticError(ErrorCode.DECORATOR_UNEXPECTED, Decorator.nodeForError(dec), `Unexpected decorator ${name} on parameter.`);
|
|
@@ -1417,7 +1417,7 @@ function createUnsuitableInjectionTokenError(clazz, error) {
|
|
|
1417
1417
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
1418
1418
|
}
|
|
1419
1419
|
|
|
1420
|
-
// bazel-out/
|
|
1420
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
1421
1421
|
import ts5 from "typescript";
|
|
1422
1422
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
1423
1423
|
const context = [];
|
|
@@ -1525,7 +1525,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, reader) {
|
|
|
1525
1525
|
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}.`);
|
|
1526
1526
|
}
|
|
1527
1527
|
|
|
1528
|
-
// bazel-out/
|
|
1528
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
1529
1529
|
import ts6 from "typescript";
|
|
1530
1530
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
1531
1531
|
let resolved = null;
|
|
@@ -1558,7 +1558,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
1558
1558
|
return meta;
|
|
1559
1559
|
}
|
|
1560
1560
|
|
|
1561
|
-
// bazel-out/
|
|
1561
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
1562
1562
|
import { compileDeclareFactoryFunction, compileFactoryFunction } from "@angular/compiler";
|
|
1563
1563
|
function compileNgFactoryDefField(metadata) {
|
|
1564
1564
|
const res = compileFactoryFunction(metadata);
|
|
@@ -1569,7 +1569,7 @@ function compileDeclareFactory(metadata) {
|
|
|
1569
1569
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
1570
1570
|
}
|
|
1571
1571
|
|
|
1572
|
-
// bazel-out/
|
|
1572
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
1573
1573
|
import { FunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, ReturnStatement, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
|
|
1574
1574
|
import ts7 from "typescript";
|
|
1575
1575
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
@@ -1585,7 +1585,7 @@ function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompi
|
|
|
1585
1585
|
if (ngClassDecorators.length === 0) {
|
|
1586
1586
|
return null;
|
|
1587
1587
|
}
|
|
1588
|
-
const metaDecorators = new WrappedNodeExpr3(ts7.
|
|
1588
|
+
const metaDecorators = new WrappedNodeExpr3(ts7.factory.createArrayLiteralExpression(ngClassDecorators));
|
|
1589
1589
|
let metaCtorParameters = null;
|
|
1590
1590
|
const classCtorParameters = reflection.getConstructorParameters(clazz);
|
|
1591
1591
|
if (classCtorParameters !== null) {
|
|
@@ -1605,7 +1605,7 @@ function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompi
|
|
|
1605
1605
|
return classMemberToMetadata((_a = member.nameNode) != null ? _a : member.name, member.decorators, isCore);
|
|
1606
1606
|
});
|
|
1607
1607
|
if (decoratedMembers.length > 0) {
|
|
1608
|
-
metaPropDecorators = new WrappedNodeExpr3(ts7.
|
|
1608
|
+
metaPropDecorators = new WrappedNodeExpr3(ts7.factory.createObjectLiteralExpression(decoratedMembers));
|
|
1609
1609
|
}
|
|
1610
1610
|
return {
|
|
1611
1611
|
type: new WrappedNodeExpr3(id),
|
|
@@ -1621,53 +1621,53 @@ function ctorParameterToMetadata(param, isCore) {
|
|
|
1621
1621
|
];
|
|
1622
1622
|
if (param.decorators !== null) {
|
|
1623
1623
|
const ngDecorators = param.decorators.filter((dec) => isAngularDecorator2(dec, isCore)).map((decorator) => decoratorToMetadata(decorator));
|
|
1624
|
-
const value = new WrappedNodeExpr3(ts7.
|
|
1624
|
+
const value = new WrappedNodeExpr3(ts7.factory.createArrayLiteralExpression(ngDecorators));
|
|
1625
1625
|
mapEntries.push({ key: "decorators", value, quoted: false });
|
|
1626
1626
|
}
|
|
1627
1627
|
return literalMap(mapEntries);
|
|
1628
1628
|
}
|
|
1629
1629
|
function classMemberToMetadata(name, decorators, isCore) {
|
|
1630
1630
|
const ngDecorators = decorators.filter((dec) => isAngularDecorator2(dec, isCore)).map((decorator) => decoratorToMetadata(decorator));
|
|
1631
|
-
const decoratorMeta = ts7.
|
|
1632
|
-
return ts7.createPropertyAssignment(name, decoratorMeta);
|
|
1631
|
+
const decoratorMeta = ts7.factory.createArrayLiteralExpression(ngDecorators);
|
|
1632
|
+
return ts7.factory.createPropertyAssignment(name, decoratorMeta);
|
|
1633
1633
|
}
|
|
1634
1634
|
function decoratorToMetadata(decorator, wrapFunctionsInParens) {
|
|
1635
1635
|
if (decorator.identifier === null) {
|
|
1636
1636
|
throw new Error("Illegal state: synthesized decorator cannot be emitted in class metadata.");
|
|
1637
1637
|
}
|
|
1638
1638
|
const properties = [
|
|
1639
|
-
ts7.createPropertyAssignment("type", ts7.getMutableClone(decorator.identifier))
|
|
1639
|
+
ts7.factory.createPropertyAssignment("type", ts7.getMutableClone(decorator.identifier))
|
|
1640
1640
|
];
|
|
1641
1641
|
if (decorator.args !== null && decorator.args.length > 0) {
|
|
1642
1642
|
const args = decorator.args.map((arg) => {
|
|
1643
1643
|
const expr = ts7.getMutableClone(arg);
|
|
1644
1644
|
return wrapFunctionsInParens ? wrapFunctionExpressionsInParens(expr) : expr;
|
|
1645
1645
|
});
|
|
1646
|
-
properties.push(ts7.createPropertyAssignment("args", ts7.
|
|
1646
|
+
properties.push(ts7.factory.createPropertyAssignment("args", ts7.factory.createArrayLiteralExpression(args)));
|
|
1647
1647
|
}
|
|
1648
|
-
return ts7.
|
|
1648
|
+
return ts7.factory.createObjectLiteralExpression(properties, true);
|
|
1649
1649
|
}
|
|
1650
1650
|
function isAngularDecorator2(decorator, isCore) {
|
|
1651
1651
|
return isCore || decorator.import !== null && decorator.import.from === "@angular/core";
|
|
1652
1652
|
}
|
|
1653
1653
|
function removeIdentifierReferences(node, name) {
|
|
1654
1654
|
const result = ts7.transform(node, [(context) => (root) => ts7.visitNode(root, function walk(current) {
|
|
1655
|
-
return ts7.isIdentifier(current) && current.text === name ? ts7.createIdentifier(current.text) : ts7.visitEachChild(current, walk, context);
|
|
1655
|
+
return ts7.isIdentifier(current) && current.text === name ? ts7.factory.createIdentifier(current.text) : ts7.visitEachChild(current, walk, context);
|
|
1656
1656
|
})]);
|
|
1657
1657
|
return result.transformed[0];
|
|
1658
1658
|
}
|
|
1659
1659
|
|
|
1660
|
-
// bazel-out/
|
|
1660
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
1661
1661
|
var NoopReferencesRegistry = class {
|
|
1662
1662
|
add(source, ...references) {
|
|
1663
1663
|
}
|
|
1664
1664
|
};
|
|
1665
1665
|
|
|
1666
|
-
// bazel-out/
|
|
1666
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
1667
1667
|
import { compileClassMetadata as compileClassMetadata3, compileComponentFromMetadata, compileDeclareClassMetadata as compileDeclareClassMetadata3, compileDeclareComponentFromMetadata, CssSelector, DEFAULT_INTERPOLATION_CONFIG as DEFAULT_INTERPOLATION_CONFIG2, DomElementSchemaRegistry, FactoryTarget as FactoryTarget3, makeBindingParser as makeBindingParser2, R3TargetBinder, SelectorMatcher, ViewEncapsulation, WrappedNodeExpr as WrappedNodeExpr7 } from "@angular/compiler";
|
|
1668
|
-
import
|
|
1668
|
+
import ts25 from "typescript";
|
|
1669
1669
|
|
|
1670
|
-
// bazel-out/
|
|
1670
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
1671
1671
|
import ts8 from "typescript";
|
|
1672
1672
|
var SemanticSymbol = class {
|
|
1673
1673
|
constructor(decl) {
|
|
@@ -1683,7 +1683,7 @@ function getSymbolIdentifier(decl) {
|
|
|
1683
1683
|
return decl.name.text;
|
|
1684
1684
|
}
|
|
1685
1685
|
|
|
1686
|
-
// bazel-out/
|
|
1686
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
1687
1687
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
1688
1688
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
1689
1689
|
isPublicApiAffected() {
|
|
@@ -1826,10 +1826,10 @@ function getImportPath(expr) {
|
|
|
1826
1826
|
}
|
|
1827
1827
|
}
|
|
1828
1828
|
|
|
1829
|
-
// bazel-out/
|
|
1829
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
1830
1830
|
import ts9 from "typescript";
|
|
1831
1831
|
|
|
1832
|
-
// bazel-out/
|
|
1832
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
1833
1833
|
function isSymbolEqual(a, b) {
|
|
1834
1834
|
if (a.decl === b.decl) {
|
|
1835
1835
|
return true;
|
|
@@ -1879,7 +1879,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
1879
1879
|
return true;
|
|
1880
1880
|
}
|
|
1881
1881
|
|
|
1882
|
-
// bazel-out/
|
|
1882
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
1883
1883
|
function extractSemanticTypeParameters(node) {
|
|
1884
1884
|
if (!ts9.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
1885
1885
|
return null;
|
|
@@ -1899,17 +1899,17 @@ function isTypeParameterEqual(a, b) {
|
|
|
1899
1899
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
1900
1900
|
}
|
|
1901
1901
|
|
|
1902
|
-
// bazel-out/
|
|
1902
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
1903
1903
|
var MetaType;
|
|
1904
1904
|
(function(MetaType2) {
|
|
1905
1905
|
MetaType2[MetaType2["Pipe"] = 0] = "Pipe";
|
|
1906
1906
|
MetaType2[MetaType2["Directive"] = 1] = "Directive";
|
|
1907
1907
|
})(MetaType || (MetaType = {}));
|
|
1908
1908
|
|
|
1909
|
-
// bazel-out/
|
|
1909
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
1910
1910
|
import ts11 from "typescript";
|
|
1911
1911
|
|
|
1912
|
-
// bazel-out/
|
|
1912
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
1913
1913
|
var ClassPropertyMapping = class {
|
|
1914
1914
|
constructor(forwardMap) {
|
|
1915
1915
|
this.forwardMap = forwardMap;
|
|
@@ -1985,7 +1985,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
1985
1985
|
return reverseMap;
|
|
1986
1986
|
}
|
|
1987
1987
|
|
|
1988
|
-
// bazel-out/
|
|
1988
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
1989
1989
|
import ts10 from "typescript";
|
|
1990
1990
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
1991
1991
|
if (!ts10.isTupleTypeNode(def)) {
|
|
@@ -2152,7 +2152,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
2152
2152
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
2153
2153
|
}
|
|
2154
2154
|
|
|
2155
|
-
// bazel-out/
|
|
2155
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
2156
2156
|
var DtsMetadataReader = class {
|
|
2157
2157
|
constructor(checker, reflector) {
|
|
2158
2158
|
this.checker = checker;
|
|
@@ -2255,7 +2255,7 @@ function readBaseClass2(clazz, checker, reflector) {
|
|
|
2255
2255
|
return null;
|
|
2256
2256
|
}
|
|
2257
2257
|
|
|
2258
|
-
// bazel-out/
|
|
2258
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
2259
2259
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
2260
2260
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
2261
2261
|
if (topMeta === null) {
|
|
@@ -2312,7 +2312,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
2312
2312
|
});
|
|
2313
2313
|
}
|
|
2314
2314
|
|
|
2315
|
-
// bazel-out/
|
|
2315
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
2316
2316
|
var LocalMetadataRegistry = class {
|
|
2317
2317
|
constructor() {
|
|
2318
2318
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -2371,7 +2371,7 @@ var InjectableClassRegistry = class {
|
|
|
2371
2371
|
}
|
|
2372
2372
|
};
|
|
2373
2373
|
|
|
2374
|
-
// bazel-out/
|
|
2374
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
2375
2375
|
var ResourceRegistry = class {
|
|
2376
2376
|
constructor() {
|
|
2377
2377
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -2436,7 +2436,7 @@ var ResourceRegistry = class {
|
|
|
2436
2436
|
}
|
|
2437
2437
|
};
|
|
2438
2438
|
|
|
2439
|
-
// bazel-out/
|
|
2439
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
2440
2440
|
var CompilationMode;
|
|
2441
2441
|
(function(CompilationMode2) {
|
|
2442
2442
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -2454,7 +2454,7 @@ var HandlerFlags;
|
|
|
2454
2454
|
HandlerFlags2[HandlerFlags2["FULL_INHERITANCE"] = 1] = "FULL_INHERITANCE";
|
|
2455
2455
|
})(HandlerFlags || (HandlerFlags = {}));
|
|
2456
2456
|
|
|
2457
|
-
// bazel-out/
|
|
2457
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
2458
2458
|
import ts12 from "typescript";
|
|
2459
2459
|
function aliasTransformFactory(exportStatements) {
|
|
2460
2460
|
return (context) => {
|
|
@@ -2464,21 +2464,21 @@ function aliasTransformFactory(exportStatements) {
|
|
|
2464
2464
|
}
|
|
2465
2465
|
const statements = [...file.statements];
|
|
2466
2466
|
exportStatements.get(file.fileName).forEach(([moduleName, symbolName], aliasName) => {
|
|
2467
|
-
const stmt = ts12.createExportDeclaration(void 0, void 0, ts12.createNamedExports([createExportSpecifier(symbolName, aliasName)]), ts12.createStringLiteral(moduleName));
|
|
2467
|
+
const stmt = ts12.factory.createExportDeclaration(void 0, void 0, false, ts12.createNamedExports([createExportSpecifier(symbolName, aliasName)]), ts12.factory.createStringLiteral(moduleName));
|
|
2468
2468
|
statements.push(stmt);
|
|
2469
2469
|
});
|
|
2470
|
-
return ts12.
|
|
2470
|
+
return ts12.factory.updateSourceFile(file, statements);
|
|
2471
2471
|
};
|
|
2472
2472
|
};
|
|
2473
2473
|
}
|
|
2474
2474
|
|
|
2475
|
-
// bazel-out/
|
|
2475
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
2476
2476
|
import ts16 from "typescript";
|
|
2477
2477
|
|
|
2478
|
-
// bazel-out/
|
|
2478
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
2479
2479
|
import ts13 from "typescript";
|
|
2480
2480
|
|
|
2481
|
-
// bazel-out/
|
|
2481
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
2482
2482
|
var NgExtension = Symbol("NgExtension");
|
|
2483
2483
|
function isExtended(sf) {
|
|
2484
2484
|
return sf[NgExtension] !== void 0;
|
|
@@ -2538,7 +2538,7 @@ function retagTsFile(sf) {
|
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
2540
|
|
|
2541
|
-
// bazel-out/
|
|
2541
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
2542
2542
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
2543
2543
|
function makeShimFileName(fileName, suffix) {
|
|
2544
2544
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
@@ -2553,7 +2553,7 @@ function generatedModuleName(originalModuleName, originalFileName, genSuffix) {
|
|
|
2553
2553
|
return moduleName;
|
|
2554
2554
|
}
|
|
2555
2555
|
|
|
2556
|
-
// bazel-out/
|
|
2556
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
2557
2557
|
var ShimAdapter = class {
|
|
2558
2558
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
2559
2559
|
this.delegate = delegate;
|
|
@@ -2650,7 +2650,7 @@ var ShimAdapter = class {
|
|
|
2650
2650
|
}
|
|
2651
2651
|
};
|
|
2652
2652
|
|
|
2653
|
-
// bazel-out/
|
|
2653
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
|
|
2654
2654
|
import ts14 from "typescript";
|
|
2655
2655
|
var TS_DTS_SUFFIX = /(\.d)?\.ts$/;
|
|
2656
2656
|
var STRIP_NG_FACTORY = /(.*)NgFactory$/;
|
|
@@ -2719,7 +2719,7 @@ function transformFactorySourceFile(factoryMap, context, importRewriter, file) {
|
|
|
2719
2719
|
if (ts14.isImportDeclaration(stmt) && ts14.isStringLiteral(stmt.moduleSpecifier) && stmt.moduleSpecifier.text === "@angular/core") {
|
|
2720
2720
|
const rewrittenModuleSpecifier = importRewriter.rewriteSpecifier("@angular/core", sourceFilePath);
|
|
2721
2721
|
if (rewrittenModuleSpecifier !== stmt.moduleSpecifier.text) {
|
|
2722
|
-
transformedStatements.push(ts14.updateImportDeclaration(stmt, stmt.decorators, stmt.modifiers, stmt.importClause, ts14.createStringLiteral(rewrittenModuleSpecifier), void 0));
|
|
2722
|
+
transformedStatements.push(ts14.factory.updateImportDeclaration(stmt, stmt.decorators, stmt.modifiers, stmt.importClause, ts14.factory.createStringLiteral(rewrittenModuleSpecifier), void 0));
|
|
2723
2723
|
if (stmt.importClause !== void 0 && stmt.importClause.namedBindings !== void 0 && ts14.isNamespaceImport(stmt.importClause.namedBindings)) {
|
|
2724
2724
|
coreImportIdentifiers.add(stmt.importClause.namedBindings.name.text);
|
|
2725
2725
|
}
|
|
@@ -2750,14 +2750,14 @@ function transformFactorySourceFile(factoryMap, context, importRewriter, file) {
|
|
|
2750
2750
|
if (!transformedStatements.some(ts14.isVariableStatement) && nonEmptyExport !== null) {
|
|
2751
2751
|
transformedStatements.push(nonEmptyExport);
|
|
2752
2752
|
}
|
|
2753
|
-
file = ts14.
|
|
2753
|
+
file = ts14.factory.updateSourceFile(file, transformedStatements);
|
|
2754
2754
|
if (coreImportIdentifiers.size > 0) {
|
|
2755
2755
|
const visit2 = (node) => {
|
|
2756
2756
|
node = ts14.visitEachChild(node, (child) => visit2(child), context);
|
|
2757
2757
|
if (ts14.isPropertyAccessExpression(node) && ts14.isIdentifier(node.expression) && coreImportIdentifiers.has(node.expression.text)) {
|
|
2758
2758
|
const rewrittenSymbol = importRewriter.rewriteSymbol(node.name.text, "@angular/core");
|
|
2759
2759
|
if (rewrittenSymbol !== node.name.text) {
|
|
2760
|
-
const updated = ts14.
|
|
2760
|
+
const updated = ts14.factory.updatePropertyAccessExpression(node, node.expression, ts14.factory.createIdentifier(rewrittenSymbol));
|
|
2761
2761
|
node = updated;
|
|
2762
2762
|
}
|
|
2763
2763
|
}
|
|
@@ -2788,18 +2788,18 @@ function getFileoverviewComment(sourceFile) {
|
|
|
2788
2788
|
return commentText;
|
|
2789
2789
|
}
|
|
2790
2790
|
function wrapInNoSideEffects(expr) {
|
|
2791
|
-
const noSideEffects = ts14.
|
|
2792
|
-
return ts14.
|
|
2793
|
-
ts14.createFunctionExpression([], void 0, void 0, [], [], void 0, ts14.createBlock([
|
|
2794
|
-
ts14.
|
|
2791
|
+
const noSideEffects = ts14.factory.createPropertyAccessExpression(ts14.factory.createIdentifier("i0"), "\u0275noSideEffects");
|
|
2792
|
+
return ts14.factory.createCallExpression(noSideEffects, [], [
|
|
2793
|
+
ts14.factory.createFunctionExpression([], void 0, void 0, [], [], void 0, ts14.factory.createBlock([
|
|
2794
|
+
ts14.factory.createReturnStatement(expr)
|
|
2795
2795
|
]))
|
|
2796
2796
|
]);
|
|
2797
2797
|
}
|
|
2798
2798
|
function updateInitializers(stmt, update) {
|
|
2799
|
-
return ts14.updateVariableStatement(stmt, stmt.modifiers, ts14.updateVariableDeclarationList(stmt.declarationList, stmt.declarationList.declarations.map((decl) => ts14.updateVariableDeclaration(decl, decl.name, decl.type, update(decl.initializer)))));
|
|
2799
|
+
return ts14.factory.updateVariableStatement(stmt, stmt.modifiers, ts14.factory.updateVariableDeclarationList(stmt.declarationList, stmt.declarationList.declarations.map((decl) => ts14.updateVariableDeclaration(decl, decl.name, decl.type, update(decl.initializer)))));
|
|
2800
2800
|
}
|
|
2801
2801
|
|
|
2802
|
-
// bazel-out/
|
|
2802
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
2803
2803
|
var ShimReferenceTagger = class {
|
|
2804
2804
|
constructor(shimExtensions) {
|
|
2805
2805
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -2833,7 +2833,7 @@ var ShimReferenceTagger = class {
|
|
|
2833
2833
|
}
|
|
2834
2834
|
};
|
|
2835
2835
|
|
|
2836
|
-
// bazel-out/
|
|
2836
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
|
|
2837
2837
|
import ts15 from "typescript";
|
|
2838
2838
|
var SummaryGenerator = class {
|
|
2839
2839
|
constructor() {
|
|
@@ -2873,7 +2873,7 @@ function isExported2(decl) {
|
|
|
2873
2873
|
return decl.modifiers !== void 0 && decl.modifiers.some((mod) => mod.kind == ts15.SyntaxKind.ExportKeyword);
|
|
2874
2874
|
}
|
|
2875
2875
|
|
|
2876
|
-
// bazel-out/
|
|
2876
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
2877
2877
|
var TraitState;
|
|
2878
2878
|
(function(TraitState2) {
|
|
2879
2879
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -2928,7 +2928,7 @@ var TraitImpl = class {
|
|
|
2928
2928
|
}
|
|
2929
2929
|
};
|
|
2930
2930
|
|
|
2931
|
-
// bazel-out/
|
|
2931
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
2932
2932
|
var TraitCompiler = class {
|
|
2933
2933
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater) {
|
|
2934
2934
|
this.handlers = handlers;
|
|
@@ -3368,24 +3368,24 @@ var TraitCompiler = class {
|
|
|
3368
3368
|
}
|
|
3369
3369
|
};
|
|
3370
3370
|
|
|
3371
|
-
// bazel-out/
|
|
3371
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
3372
3372
|
import ts18 from "typescript";
|
|
3373
3373
|
|
|
3374
|
-
// bazel-out/
|
|
3374
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
3375
3375
|
import ts17 from "typescript";
|
|
3376
3376
|
function addImports(importManager, sf, extraStatements = []) {
|
|
3377
3377
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
3378
|
-
const qualifier = ts17.createIdentifier(i.qualifier.text);
|
|
3379
|
-
const importClause = ts17.createImportClause(void 0, ts17.createNamespaceImport(qualifier));
|
|
3380
|
-
const decl = ts17.createImportDeclaration(void 0, void 0, importClause, ts17.
|
|
3378
|
+
const qualifier = ts17.factory.createIdentifier(i.qualifier.text);
|
|
3379
|
+
const importClause = ts17.factory.createImportClause(false, void 0, ts17.factory.createNamespaceImport(qualifier));
|
|
3380
|
+
const decl = ts17.factory.createImportDeclaration(void 0, void 0, importClause, ts17.factory.createStringLiteral(i.specifier));
|
|
3381
3381
|
ts17.setOriginalNode(i.qualifier, decl);
|
|
3382
3382
|
return decl;
|
|
3383
3383
|
});
|
|
3384
3384
|
const existingImports = sf.statements.filter((stmt) => isImportStatement(stmt));
|
|
3385
3385
|
const body = sf.statements.filter((stmt) => !isImportStatement(stmt));
|
|
3386
3386
|
if (addedImports.length > 0) {
|
|
3387
|
-
const fileoverviewAnchorStmt = ts17.createNotEmittedStatement(sf);
|
|
3388
|
-
return ts17.
|
|
3387
|
+
const fileoverviewAnchorStmt = ts17.factory.createNotEmittedStatement(sf);
|
|
3388
|
+
return ts17.factory.updateSourceFile(sf, ts17.factory.createNodeArray([
|
|
3389
3389
|
fileoverviewAnchorStmt,
|
|
3390
3390
|
...existingImports,
|
|
3391
3391
|
...addedImports,
|
|
@@ -3399,7 +3399,7 @@ function isImportStatement(stmt) {
|
|
|
3399
3399
|
return ts17.isImportDeclaration(stmt) || ts17.isImportEqualsDeclaration(stmt) || ts17.isNamespaceImport(stmt);
|
|
3400
3400
|
}
|
|
3401
3401
|
|
|
3402
|
-
// bazel-out/
|
|
3402
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
3403
3403
|
var DtsTransformRegistry = class {
|
|
3404
3404
|
constructor() {
|
|
3405
3405
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -3483,7 +3483,7 @@ var DtsTransformer = class {
|
|
|
3483
3483
|
}
|
|
3484
3484
|
}
|
|
3485
3485
|
if (elementsChanged && clazz === newClazz) {
|
|
3486
|
-
newClazz = ts18.updateClassDeclaration(clazz, clazz.decorators, clazz.modifiers, clazz.name, clazz.typeParameters, clazz.heritageClauses, elements);
|
|
3486
|
+
newClazz = ts18.factory.updateClassDeclaration(clazz, clazz.decorators, clazz.modifiers, clazz.name, clazz.typeParameters, clazz.heritageClauses, elements);
|
|
3487
3487
|
}
|
|
3488
3488
|
return newClazz;
|
|
3489
3489
|
}
|
|
@@ -3511,12 +3511,12 @@ var IvyDeclarationDtsTransform = class {
|
|
|
3511
3511
|
}
|
|
3512
3512
|
const fields = this.declarationFields.get(original);
|
|
3513
3513
|
const newMembers = fields.map((decl) => {
|
|
3514
|
-
const modifiers = [ts18.createModifier(ts18.SyntaxKind.StaticKeyword)];
|
|
3514
|
+
const modifiers = [ts18.factory.createModifier(ts18.SyntaxKind.StaticKeyword)];
|
|
3515
3515
|
const typeRef = translateType(decl.type, imports);
|
|
3516
3516
|
markForEmitAsSingleLine(typeRef);
|
|
3517
|
-
return ts18.
|
|
3517
|
+
return ts18.factory.createPropertyDeclaration(void 0, modifiers, decl.name, void 0, typeRef, void 0);
|
|
3518
3518
|
});
|
|
3519
|
-
return ts18.updateClassDeclaration(clazz, clazz.decorators, clazz.modifiers, clazz.name, clazz.typeParameters, clazz.heritageClauses, [...members, ...newMembers]);
|
|
3519
|
+
return ts18.factory.updateClassDeclaration(clazz, clazz.decorators, clazz.modifiers, clazz.name, clazz.typeParameters, clazz.heritageClauses, [...members, ...newMembers]);
|
|
3520
3520
|
}
|
|
3521
3521
|
};
|
|
3522
3522
|
function markForEmitAsSingleLine(node) {
|
|
@@ -3524,11 +3524,11 @@ function markForEmitAsSingleLine(node) {
|
|
|
3524
3524
|
ts18.forEachChild(node, markForEmitAsSingleLine);
|
|
3525
3525
|
}
|
|
3526
3526
|
|
|
3527
|
-
// bazel-out/
|
|
3527
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
3528
3528
|
import { ConstantPool } from "@angular/compiler";
|
|
3529
3529
|
import ts20 from "typescript";
|
|
3530
3530
|
|
|
3531
|
-
// bazel-out/
|
|
3531
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
3532
3532
|
import ts19 from "typescript";
|
|
3533
3533
|
function visit(node, visitor, context) {
|
|
3534
3534
|
return visitor._visit(node, context);
|
|
@@ -3581,7 +3581,7 @@ var Visitor = class {
|
|
|
3581
3581
|
this._after.delete(stmt);
|
|
3582
3582
|
}
|
|
3583
3583
|
});
|
|
3584
|
-
clone.statements = ts19.createNodeArray(newStatements, node.statements.hasTrailingComma);
|
|
3584
|
+
clone.statements = ts19.factory.createNodeArray(newStatements, node.statements.hasTrailingComma);
|
|
3585
3585
|
return clone;
|
|
3586
3586
|
}
|
|
3587
3587
|
};
|
|
@@ -3590,7 +3590,7 @@ function hasStatements(node) {
|
|
|
3590
3590
|
return block.statements !== void 0 && Array.isArray(block.statements);
|
|
3591
3591
|
}
|
|
3592
3592
|
|
|
3593
|
-
// bazel-out/
|
|
3593
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
3594
3594
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
3595
3595
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
3596
3596
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -3639,14 +3639,14 @@ var IvyTransformationVisitor = class extends Visitor {
|
|
|
3639
3639
|
const members = [...node.members];
|
|
3640
3640
|
for (const field of this.classCompilationMap.get(node)) {
|
|
3641
3641
|
const exprNode = translateExpression(field.initializer, this.importManager, translateOptions);
|
|
3642
|
-
const property = ts20.
|
|
3642
|
+
const property = ts20.factory.createPropertyDeclaration(void 0, [ts20.factory.createToken(ts20.SyntaxKind.StaticKeyword)], field.name, void 0, void 0, exprNode);
|
|
3643
3643
|
if (this.isClosureCompilerEnabled) {
|
|
3644
3644
|
ts20.addSyntheticLeadingComment(property, ts20.SyntaxKind.MultiLineCommentTrivia, "* @nocollapse ", false);
|
|
3645
3645
|
}
|
|
3646
3646
|
field.statements.map((stmt) => translateStatement(stmt, this.importManager, translateOptions)).forEach((stmt) => statements.push(stmt));
|
|
3647
3647
|
members.push(property);
|
|
3648
3648
|
}
|
|
3649
|
-
node = ts20.updateClassDeclaration(node, maybeFilterDecorator(node.decorators, this.compilation.decoratorsFor(node)), node.modifiers, node.name, node.typeParameters, node.heritageClauses || [], members.map((member) => this._stripAngularDecorators(member)));
|
|
3649
|
+
node = ts20.factory.updateClassDeclaration(node, maybeFilterDecorator(node.decorators, this.compilation.decoratorsFor(node)), node.modifiers, node.name, node.typeParameters, node.heritageClauses || [], members.map((member) => this._stripAngularDecorators(member)));
|
|
3650
3650
|
return { node, after: statements };
|
|
3651
3651
|
}
|
|
3652
3652
|
_angularCoreDecorators(decl) {
|
|
@@ -3675,25 +3675,25 @@ var IvyTransformationVisitor = class extends Visitor {
|
|
|
3675
3675
|
if (filtered.length === 0) {
|
|
3676
3676
|
return void 0;
|
|
3677
3677
|
}
|
|
3678
|
-
const array = ts20.createNodeArray(filtered);
|
|
3678
|
+
const array = ts20.factory.createNodeArray(filtered);
|
|
3679
3679
|
array.pos = node.decorators.pos;
|
|
3680
3680
|
array.end = node.decorators.end;
|
|
3681
3681
|
return array;
|
|
3682
3682
|
}
|
|
3683
3683
|
_stripAngularDecorators(node) {
|
|
3684
3684
|
if (ts20.isParameter(node)) {
|
|
3685
|
-
node = ts20.
|
|
3685
|
+
node = ts20.factory.updateParameterDeclaration(node, this._nonCoreDecoratorsOnly(node), node.modifiers, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer);
|
|
3686
3686
|
} else if (ts20.isMethodDeclaration(node) && node.decorators !== void 0) {
|
|
3687
|
-
node = ts20.
|
|
3687
|
+
node = ts20.factory.updateMethodDeclaration(node, this._nonCoreDecoratorsOnly(node), node.modifiers, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body);
|
|
3688
3688
|
} else if (ts20.isPropertyDeclaration(node) && node.decorators !== void 0) {
|
|
3689
|
-
node = ts20.
|
|
3689
|
+
node = ts20.factory.updatePropertyDeclaration(node, this._nonCoreDecoratorsOnly(node), node.modifiers, node.name, node.questionToken, node.type, node.initializer);
|
|
3690
3690
|
} else if (ts20.isGetAccessor(node)) {
|
|
3691
|
-
node = ts20.
|
|
3691
|
+
node = ts20.factory.updateGetAccessorDeclaration(node, this._nonCoreDecoratorsOnly(node), node.modifiers, node.name, node.parameters, node.type, node.body);
|
|
3692
3692
|
} else if (ts20.isSetAccessor(node)) {
|
|
3693
|
-
node = ts20.
|
|
3693
|
+
node = ts20.factory.updateSetAccessorDeclaration(node, this._nonCoreDecoratorsOnly(node), node.modifiers, node.name, node.parameters, node.body);
|
|
3694
3694
|
} else if (ts20.isConstructorDeclaration(node)) {
|
|
3695
3695
|
const parameters = node.parameters.map((param) => this._stripAngularDecorators(param));
|
|
3696
|
-
node = ts20.
|
|
3696
|
+
node = ts20.factory.updateConstructorDeclaration(node, node.decorators, node.modifiers, parameters, node.body);
|
|
3697
3697
|
}
|
|
3698
3698
|
return node;
|
|
3699
3699
|
}
|
|
@@ -3757,7 +3757,7 @@ function maybeFilterDecorator(decorators, toRemove) {
|
|
|
3757
3757
|
if (filtered.length === 0) {
|
|
3758
3758
|
return void 0;
|
|
3759
3759
|
}
|
|
3760
|
-
return ts20.createNodeArray(filtered);
|
|
3760
|
+
return ts20.factory.createNodeArray(filtered);
|
|
3761
3761
|
}
|
|
3762
3762
|
function isFromAngularCore(decorator) {
|
|
3763
3763
|
return decorator.import !== null && decorator.import.from === "@angular/core";
|
|
@@ -3771,10 +3771,10 @@ function createRecorderFn(defaultImportTracker) {
|
|
|
3771
3771
|
};
|
|
3772
3772
|
}
|
|
3773
3773
|
|
|
3774
|
-
// bazel-out/
|
|
3774
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
3775
3775
|
import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
|
|
3776
3776
|
|
|
3777
|
-
// bazel-out/
|
|
3777
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
3778
3778
|
import { createMayBeForwardRefExpression, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr3, getSafePropertyAccessString, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
|
|
3779
3779
|
import ts21 from "typescript";
|
|
3780
3780
|
var EMPTY_OBJECT = {};
|
|
@@ -4138,7 +4138,7 @@ function evaluateHostExpressionBindings(hostExpr, evaluator) {
|
|
|
4138
4138
|
return bindings;
|
|
4139
4139
|
}
|
|
4140
4140
|
|
|
4141
|
-
// bazel-out/
|
|
4141
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
4142
4142
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
4143
4143
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
4144
4144
|
super(decl);
|
|
@@ -4215,7 +4215,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
4215
4215
|
return isSymbolEqual(current, previous);
|
|
4216
4216
|
}
|
|
4217
4217
|
|
|
4218
|
-
// bazel-out/
|
|
4218
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
4219
4219
|
var FIELD_DECORATORS = [
|
|
4220
4220
|
"Input",
|
|
4221
4221
|
"Output",
|
|
@@ -4354,7 +4354,7 @@ var DirectiveDecoratorHandler = class {
|
|
|
4354
4354
|
}
|
|
4355
4355
|
};
|
|
4356
4356
|
|
|
4357
|
-
// bazel-out/
|
|
4357
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
4358
4358
|
import { compileClassMetadata as compileClassMetadata2, compileDeclareClassMetadata as compileDeclareClassMetadata2, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileInjector, compileNgModule, CUSTOM_ELEMENTS_SCHEMA, ExternalExpr as ExternalExpr4, FactoryTarget as FactoryTarget2, InvokeFunctionExpr, LiteralArrayExpr as LiteralArrayExpr2, NO_ERRORS_SCHEMA, R3Identifiers, WrappedNodeExpr as WrappedNodeExpr6 } from "@angular/compiler";
|
|
4359
4359
|
import ts22 from "typescript";
|
|
4360
4360
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
@@ -4439,7 +4439,7 @@ var NgModuleDecoratorHandler = class {
|
|
|
4439
4439
|
if (decorator.args === null || decorator.args.length > 1) {
|
|
4440
4440
|
throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, Decorator.nodeForError(decorator), `Incorrect number of arguments to @NgModule decorator`);
|
|
4441
4441
|
}
|
|
4442
|
-
const meta = decorator.args.length === 1 ? unwrapExpression(decorator.args[0]) : ts22.
|
|
4442
|
+
const meta = decorator.args.length === 1 ? unwrapExpression(decorator.args[0]) : ts22.factory.createObjectLiteralExpression([]);
|
|
4443
4443
|
if (!ts22.isObjectLiteralExpression(meta)) {
|
|
4444
4444
|
throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, meta, "@NgModule argument must be an object literal");
|
|
4445
4445
|
}
|
|
@@ -4811,7 +4811,7 @@ function isNgModule(node, compilation) {
|
|
|
4811
4811
|
return !compilation.directives.some((directive) => directive.ref.node === node) && !compilation.pipes.some((pipe) => pipe.ref.node === node);
|
|
4812
4812
|
}
|
|
4813
4813
|
|
|
4814
|
-
// bazel-out/
|
|
4814
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
4815
4815
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
4816
4816
|
const name = ref.debugName || "(unknown)";
|
|
4817
4817
|
const path = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -4834,7 +4834,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
4834
4834
|
return null;
|
|
4835
4835
|
}
|
|
4836
4836
|
|
|
4837
|
-
// bazel-out/
|
|
4837
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
4838
4838
|
import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
|
|
4839
4839
|
import ts23 from "typescript";
|
|
4840
4840
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
@@ -5044,17 +5044,17 @@ function transformDecoratorToInlineResources(dec, component, styles, template) {
|
|
|
5044
5044
|
const metadata = new Map(component);
|
|
5045
5045
|
if (metadata.has("templateUrl")) {
|
|
5046
5046
|
metadata.delete("templateUrl");
|
|
5047
|
-
metadata.set("template", ts23.createStringLiteral(template.content));
|
|
5047
|
+
metadata.set("template", ts23.factory.createStringLiteral(template.content));
|
|
5048
5048
|
}
|
|
5049
5049
|
if (metadata.has("styleUrls")) {
|
|
5050
5050
|
metadata.delete("styleUrls");
|
|
5051
|
-
metadata.set("styles", ts23.
|
|
5051
|
+
metadata.set("styles", ts23.factory.createArrayLiteralExpression(styles.map((s) => ts23.factory.createStringLiteral(s))));
|
|
5052
5052
|
}
|
|
5053
5053
|
const newMetadataFields = [];
|
|
5054
5054
|
for (const [name, value] of metadata.entries()) {
|
|
5055
|
-
newMetadataFields.push(ts23.createPropertyAssignment(name, value));
|
|
5055
|
+
newMetadataFields.push(ts23.factory.createPropertyAssignment(name, value));
|
|
5056
5056
|
}
|
|
5057
|
-
return __spreadProps(__spreadValues({}, dec), { args: [ts23.
|
|
5057
|
+
return __spreadProps(__spreadValues({}, dec), { args: [ts23.factory.createObjectLiteralExpression(newMetadataFields)] });
|
|
5058
5058
|
}
|
|
5059
5059
|
function extractComponentStyleUrls(evaluator, component) {
|
|
5060
5060
|
if (!component.has("styleUrls")) {
|
|
@@ -5126,7 +5126,7 @@ function _extractTemplateStyleUrls(template) {
|
|
|
5126
5126
|
return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
5127
5127
|
}
|
|
5128
5128
|
|
|
5129
|
-
// bazel-out/
|
|
5129
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/scope.mjs
|
|
5130
5130
|
function scopeTemplate(scopeReader, dtsScopeReader, scopeRegistry, metaReader, node, analysis, usePoisonedData) {
|
|
5131
5131
|
const scope = scopeReader.getScopeForComponent(node);
|
|
5132
5132
|
if (analysis.meta.isStandalone && scope !== null) {
|
|
@@ -5232,7 +5232,7 @@ function makeNotStandaloneDiagnostic(scopeReader, ref, rawExpr, kind) {
|
|
|
5232
5232
|
return makeDiagnostic(ErrorCode.COMPONENT_IMPORT_NOT_STANDALONE, ref.getOriginForDiagnostics(rawExpr), `The ${kind} '${ref.node.name.text}' appears in 'imports', but is not standalone and cannot be imported directly.${extraText}`, relatedInformation);
|
|
5233
5233
|
}
|
|
5234
5234
|
|
|
5235
|
-
// bazel-out/
|
|
5235
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
5236
5236
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
5237
5237
|
constructor() {
|
|
5238
5238
|
super(...arguments);
|
|
@@ -5267,7 +5267,8 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
5267
5267
|
}
|
|
5268
5268
|
};
|
|
5269
5269
|
|
|
5270
|
-
// bazel-out/
|
|
5270
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
5271
|
+
import ts24 from "typescript";
|
|
5271
5272
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
5272
5273
|
if (value instanceof Map) {
|
|
5273
5274
|
const name = value.get("name");
|
|
@@ -5284,6 +5285,23 @@ function collectAnimationNames(value, animationTriggerNames) {
|
|
|
5284
5285
|
animationTriggerNames.includesDynamicAnimations = true;
|
|
5285
5286
|
}
|
|
5286
5287
|
}
|
|
5288
|
+
function isAngularAnimationsReference(reference, symbolName) {
|
|
5289
|
+
return reference.ownedByModuleGuess === "@angular/animations" && reference.debugName === symbolName;
|
|
5290
|
+
}
|
|
5291
|
+
var animationTriggerResolver = (ref, args) => {
|
|
5292
|
+
const animationTriggerMethodName = "trigger";
|
|
5293
|
+
if (!isAngularAnimationsReference(ref, animationTriggerMethodName)) {
|
|
5294
|
+
return null;
|
|
5295
|
+
}
|
|
5296
|
+
const triggerNameExpression = args[0];
|
|
5297
|
+
if (!triggerNameExpression) {
|
|
5298
|
+
return null;
|
|
5299
|
+
}
|
|
5300
|
+
const factory = ts24.factory;
|
|
5301
|
+
return factory.createObjectLiteralExpression([
|
|
5302
|
+
factory.createPropertyAssignment(factory.createIdentifier("name"), triggerNameExpression)
|
|
5303
|
+
], true);
|
|
5304
|
+
};
|
|
5287
5305
|
function validateAndFlattenComponentImports(imports, expr) {
|
|
5288
5306
|
const flattened = [];
|
|
5289
5307
|
if (!Array.isArray(imports)) {
|
|
@@ -5312,7 +5330,7 @@ function validateAndFlattenComponentImports(imports, expr) {
|
|
|
5312
5330
|
return { imports: flattened, diagnostics };
|
|
5313
5331
|
}
|
|
5314
5332
|
|
|
5315
|
-
// bazel-out/
|
|
5333
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
5316
5334
|
var EMPTY_MAP = /* @__PURE__ */ new Map();
|
|
5317
5335
|
var EMPTY_ARRAY = [];
|
|
5318
5336
|
var ComponentDecoratorHandler = class {
|
|
@@ -5428,8 +5446,9 @@ var ComponentDecoratorHandler = class {
|
|
|
5428
5446
|
let animations = null;
|
|
5429
5447
|
let animationTriggerNames = null;
|
|
5430
5448
|
if (component.has("animations")) {
|
|
5431
|
-
|
|
5432
|
-
|
|
5449
|
+
const animationExpression = component.get("animations");
|
|
5450
|
+
animations = new WrappedNodeExpr7(animationExpression);
|
|
5451
|
+
const animationsValue = this.evaluator.evaluate(animationExpression, animationTriggerResolver);
|
|
5433
5452
|
animationTriggerNames = { includesDynamicAnimations: false, staticTriggerNames: [] };
|
|
5434
5453
|
collectAnimationNames(animationsValue, animationTriggerNames);
|
|
5435
5454
|
}
|
|
@@ -5640,7 +5659,7 @@ var ComponentDecoratorHandler = class {
|
|
|
5640
5659
|
});
|
|
5641
5660
|
}
|
|
5642
5661
|
typeCheck(ctx, node, meta) {
|
|
5643
|
-
if (this.typeCheckScopeRegistry === null || !
|
|
5662
|
+
if (this.typeCheckScopeRegistry === null || !ts25.isClassDeclaration(node)) {
|
|
5644
5663
|
return;
|
|
5645
5664
|
}
|
|
5646
5665
|
if (meta.isPoisoned && !this.usePoisonedData) {
|
|
@@ -5858,9 +5877,9 @@ var ComponentDecoratorHandler = class {
|
|
|
5858
5877
|
}
|
|
5859
5878
|
};
|
|
5860
5879
|
|
|
5861
|
-
// bazel-out/
|
|
5880
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
5862
5881
|
import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression2, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
|
|
5863
|
-
import
|
|
5882
|
+
import ts26 from "typescript";
|
|
5864
5883
|
var InjectableDecoratorHandler = class {
|
|
5865
5884
|
constructor(reflector, isCore, strictCtorDeps, injectableRegistry, perf, errorOnDuplicateProv = true) {
|
|
5866
5885
|
this.reflector = reflector;
|
|
@@ -5951,7 +5970,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
|
|
|
5951
5970
|
};
|
|
5952
5971
|
} else if (decorator.args.length === 1) {
|
|
5953
5972
|
const metaNode = decorator.args[0];
|
|
5954
|
-
if (!
|
|
5973
|
+
if (!ts26.isObjectLiteralExpression(metaNode)) {
|
|
5955
5974
|
throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, metaNode, `@Injectable argument must be an object literal`);
|
|
5956
5975
|
}
|
|
5957
5976
|
const meta = reflectObjectLiteral(metaNode);
|
|
@@ -5959,7 +5978,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
|
|
|
5959
5978
|
let deps = void 0;
|
|
5960
5979
|
if ((meta.has("useClass") || meta.has("useFactory")) && meta.has("deps")) {
|
|
5961
5980
|
const depsExpr = meta.get("deps");
|
|
5962
|
-
if (!
|
|
5981
|
+
if (!ts26.isArrayLiteralExpression(depsExpr)) {
|
|
5963
5982
|
throw new FatalDiagnosticError(ErrorCode.VALUE_NOT_LITERAL, depsExpr, `@Injectable deps metadata must be an inline array`);
|
|
5964
5983
|
}
|
|
5965
5984
|
deps = depsExpr.elements.map((dep) => getDep(dep, reflector));
|
|
@@ -6041,12 +6060,12 @@ function getDep(dep, reflector) {
|
|
|
6041
6060
|
}
|
|
6042
6061
|
return true;
|
|
6043
6062
|
}
|
|
6044
|
-
if (
|
|
6063
|
+
if (ts26.isArrayLiteralExpression(dep)) {
|
|
6045
6064
|
dep.elements.forEach((el) => {
|
|
6046
6065
|
let isDecorator = false;
|
|
6047
|
-
if (
|
|
6066
|
+
if (ts26.isIdentifier(el)) {
|
|
6048
6067
|
isDecorator = maybeUpdateDecorator(el, reflector);
|
|
6049
|
-
} else if (
|
|
6068
|
+
} else if (ts26.isNewExpression(el) && ts26.isIdentifier(el.expression)) {
|
|
6050
6069
|
const token = el.arguments && el.arguments.length > 0 && el.arguments[0] || void 0;
|
|
6051
6070
|
isDecorator = maybeUpdateDecorator(el.expression, reflector, token);
|
|
6052
6071
|
}
|
|
@@ -6058,9 +6077,9 @@ function getDep(dep, reflector) {
|
|
|
6058
6077
|
return meta;
|
|
6059
6078
|
}
|
|
6060
6079
|
|
|
6061
|
-
// bazel-out/
|
|
6080
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
6062
6081
|
import { compileClassMetadata as compileClassMetadata5, compileDeclareClassMetadata as compileDeclareClassMetadata5, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5, WrappedNodeExpr as WrappedNodeExpr9 } from "@angular/compiler";
|
|
6063
|
-
import
|
|
6082
|
+
import ts27 from "typescript";
|
|
6064
6083
|
var PipeSymbol = class extends SemanticSymbol {
|
|
6065
6084
|
constructor(decl, name) {
|
|
6066
6085
|
super(decl);
|
|
@@ -6115,7 +6134,7 @@ var PipeDecoratorHandler = class {
|
|
|
6115
6134
|
throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, Decorator.nodeForError(decorator), "@Pipe must have exactly one argument");
|
|
6116
6135
|
}
|
|
6117
6136
|
const meta = unwrapExpression(decorator.args[0]);
|
|
6118
|
-
if (!
|
|
6137
|
+
if (!ts27.isObjectLiteralExpression(meta)) {
|
|
6119
6138
|
throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, meta, "@Pipe must have a literal argument");
|
|
6120
6139
|
}
|
|
6121
6140
|
const pipe = reflectObjectLiteral(meta);
|
|
@@ -6245,4 +6264,4 @@ export {
|
|
|
6245
6264
|
* found in the LICENSE file at https://angular.io/license
|
|
6246
6265
|
*/
|
|
6247
6266
|
// Closure Compiler ignores @suppress and similar if the comment contains @license.
|
|
6248
|
-
//# sourceMappingURL=chunk-
|
|
6267
|
+
//# sourceMappingURL=chunk-26T3CJIJ.js.map
|