@angular/compiler-cli 20.1.0-rc.0 → 20.2.0-next.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-2KXD3GSC.js → chunk-2FHBFXPC.js} +2 -2
- package/bundles/{chunk-3NKMA2JO.js → chunk-5JF7HF3W.js} +4 -4
- package/bundles/chunk-5JF7HF3W.js.map +6 -0
- package/bundles/{chunk-SC5ESQGY.js → chunk-5TMRGUHP.js} +2 -2
- package/bundles/chunk-FPHHL4UV.js +1 -1
- package/bundles/{chunk-QEIHQPSG.js → chunk-JXYBFWGA.js} +2 -2
- package/bundles/{chunk-IRC3OLFO.js → chunk-UZOSFHTN.js} +184 -168
- package/bundles/chunk-UZOSFHTN.js.map +6 -0
- package/bundles/{chunk-45WGF6MF.js → chunk-YNE6T2TY.js} +91 -27
- package/bundles/chunk-YNE6T2TY.js.map +6 -0
- package/bundles/index.js +6 -6
- package/bundles/linker/babel/index.js +1 -1
- package/bundles/private/localize.js +1 -1
- package/bundles/private/migrations.js +2 -2
- package/bundles/private/tooling.js +4 -4
- package/bundles/src/bin/ng_xi18n.js +5 -5
- package/bundles/src/bin/ngc.js +5 -5
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +3 -3
- package/src/ngtsc/docs/src/entities.d.ts +5 -1
- package/src/ngtsc/partial_evaluator/src/interpreter.d.ts +6 -3
- package/src/ngtsc/translator/src/typescript_ast_factory.d.ts +3 -0
- package/src/ngtsc/typecheck/src/expression.d.ts +2 -2
- package/src/ngtsc/typecheck/src/type_check_block.d.ts +2 -2
- package/bundles/chunk-3NKMA2JO.js.map +0 -6
- package/bundles/chunk-45WGF6MF.js.map +0 -6
- package/bundles/chunk-IRC3OLFO.js.map +0 -6
- /package/bundles/{chunk-2KXD3GSC.js.map → chunk-2FHBFXPC.js.map} +0 -0
- /package/bundles/{chunk-SC5ESQGY.js.map → chunk-5TMRGUHP.js.map} +0 -0
- /package/bundles/{chunk-QEIHQPSG.js.map → chunk-JXYBFWGA.js.map} +0 -0
|
@@ -2375,40 +2375,40 @@ function literalBinaryOp(op) {
|
|
|
2375
2375
|
function referenceBinaryOp(op) {
|
|
2376
2376
|
return { op, literal: false };
|
|
2377
2377
|
}
|
|
2378
|
-
var BINARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
2379
|
-
[ts13.SyntaxKind.PlusToken, literalBinaryOp((a, b) => a + b)],
|
|
2380
|
-
[ts13.SyntaxKind.MinusToken, literalBinaryOp((a, b) => a - b)],
|
|
2381
|
-
[ts13.SyntaxKind.AsteriskToken, literalBinaryOp((a, b) => a * b)],
|
|
2382
|
-
[ts13.SyntaxKind.SlashToken, literalBinaryOp((a, b) => a / b)],
|
|
2383
|
-
[ts13.SyntaxKind.PercentToken, literalBinaryOp((a, b) => a % b)],
|
|
2384
|
-
[ts13.SyntaxKind.AmpersandToken, literalBinaryOp((a, b) => a & b)],
|
|
2385
|
-
[ts13.SyntaxKind.BarToken, literalBinaryOp((a, b) => a | b)],
|
|
2386
|
-
[ts13.SyntaxKind.CaretToken, literalBinaryOp((a, b) => a ^ b)],
|
|
2387
|
-
[ts13.SyntaxKind.LessThanToken, literalBinaryOp((a, b) => a < b)],
|
|
2388
|
-
[ts13.SyntaxKind.LessThanEqualsToken, literalBinaryOp((a, b) => a <= b)],
|
|
2389
|
-
[ts13.SyntaxKind.GreaterThanToken, literalBinaryOp((a, b) => a > b)],
|
|
2390
|
-
[ts13.SyntaxKind.GreaterThanEqualsToken, literalBinaryOp((a, b) => a >= b)],
|
|
2391
|
-
[ts13.SyntaxKind.EqualsEqualsToken, literalBinaryOp((a, b) => a == b)],
|
|
2392
|
-
[ts13.SyntaxKind.EqualsEqualsEqualsToken, literalBinaryOp((a, b) => a === b)],
|
|
2393
|
-
[ts13.SyntaxKind.ExclamationEqualsToken, literalBinaryOp((a, b) => a != b)],
|
|
2394
|
-
[ts13.SyntaxKind.ExclamationEqualsEqualsToken, literalBinaryOp((a, b) => a !== b)],
|
|
2395
|
-
[ts13.SyntaxKind.LessThanLessThanToken, literalBinaryOp((a, b) => a << b)],
|
|
2396
|
-
[ts13.SyntaxKind.GreaterThanGreaterThanToken, literalBinaryOp((a, b) => a >> b)],
|
|
2397
|
-
[ts13.SyntaxKind.GreaterThanGreaterThanGreaterThanToken, literalBinaryOp((a, b) => a >>> b)],
|
|
2398
|
-
[ts13.SyntaxKind.AsteriskAsteriskToken, literalBinaryOp((a, b) => Math.pow(a, b))],
|
|
2399
|
-
[ts13.SyntaxKind.AmpersandAmpersandToken, referenceBinaryOp((a, b) => a && b)],
|
|
2400
|
-
[ts13.SyntaxKind.BarBarToken, referenceBinaryOp((a, b) => a || b)]
|
|
2401
|
-
]);
|
|
2402
|
-
var UNARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
2403
|
-
[ts13.SyntaxKind.TildeToken, (a) => ~a],
|
|
2404
|
-
[ts13.SyntaxKind.MinusToken, (a) => -a],
|
|
2405
|
-
[ts13.SyntaxKind.PlusToken, (a) => +a],
|
|
2406
|
-
[ts13.SyntaxKind.ExclamationToken, (a) => !a]
|
|
2407
|
-
]);
|
|
2408
2378
|
var StaticInterpreter = class {
|
|
2409
2379
|
host;
|
|
2410
2380
|
checker;
|
|
2411
2381
|
dependencyTracker;
|
|
2382
|
+
BINARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
2383
|
+
[ts13.SyntaxKind.PlusToken, literalBinaryOp((a, b) => a + b)],
|
|
2384
|
+
[ts13.SyntaxKind.MinusToken, literalBinaryOp((a, b) => a - b)],
|
|
2385
|
+
[ts13.SyntaxKind.AsteriskToken, literalBinaryOp((a, b) => a * b)],
|
|
2386
|
+
[ts13.SyntaxKind.SlashToken, literalBinaryOp((a, b) => a / b)],
|
|
2387
|
+
[ts13.SyntaxKind.PercentToken, literalBinaryOp((a, b) => a % b)],
|
|
2388
|
+
[ts13.SyntaxKind.AmpersandToken, literalBinaryOp((a, b) => a & b)],
|
|
2389
|
+
[ts13.SyntaxKind.BarToken, literalBinaryOp((a, b) => a | b)],
|
|
2390
|
+
[ts13.SyntaxKind.CaretToken, literalBinaryOp((a, b) => a ^ b)],
|
|
2391
|
+
[ts13.SyntaxKind.LessThanToken, literalBinaryOp((a, b) => a < b)],
|
|
2392
|
+
[ts13.SyntaxKind.LessThanEqualsToken, literalBinaryOp((a, b) => a <= b)],
|
|
2393
|
+
[ts13.SyntaxKind.GreaterThanToken, literalBinaryOp((a, b) => a > b)],
|
|
2394
|
+
[ts13.SyntaxKind.GreaterThanEqualsToken, literalBinaryOp((a, b) => a >= b)],
|
|
2395
|
+
[ts13.SyntaxKind.EqualsEqualsToken, literalBinaryOp((a, b) => a == b)],
|
|
2396
|
+
[ts13.SyntaxKind.EqualsEqualsEqualsToken, literalBinaryOp((a, b) => a === b)],
|
|
2397
|
+
[ts13.SyntaxKind.ExclamationEqualsToken, literalBinaryOp((a, b) => a != b)],
|
|
2398
|
+
[ts13.SyntaxKind.ExclamationEqualsEqualsToken, literalBinaryOp((a, b) => a !== b)],
|
|
2399
|
+
[ts13.SyntaxKind.LessThanLessThanToken, literalBinaryOp((a, b) => a << b)],
|
|
2400
|
+
[ts13.SyntaxKind.GreaterThanGreaterThanToken, literalBinaryOp((a, b) => a >> b)],
|
|
2401
|
+
[ts13.SyntaxKind.GreaterThanGreaterThanGreaterThanToken, literalBinaryOp((a, b) => a >>> b)],
|
|
2402
|
+
[ts13.SyntaxKind.AsteriskAsteriskToken, literalBinaryOp((a, b) => Math.pow(a, b))],
|
|
2403
|
+
[ts13.SyntaxKind.AmpersandAmpersandToken, referenceBinaryOp((a, b) => a && b)],
|
|
2404
|
+
[ts13.SyntaxKind.BarBarToken, referenceBinaryOp((a, b) => a || b)]
|
|
2405
|
+
]);
|
|
2406
|
+
UNARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
2407
|
+
[ts13.SyntaxKind.TildeToken, (a) => ~a],
|
|
2408
|
+
[ts13.SyntaxKind.MinusToken, (a) => -a],
|
|
2409
|
+
[ts13.SyntaxKind.PlusToken, (a) => +a],
|
|
2410
|
+
[ts13.SyntaxKind.ExclamationToken, (a) => !a]
|
|
2411
|
+
]);
|
|
2412
2412
|
constructor(host, checker, dependencyTracker) {
|
|
2413
2413
|
this.host = host;
|
|
2414
2414
|
this.checker = checker;
|
|
@@ -2764,10 +2764,10 @@ var StaticInterpreter = class {
|
|
|
2764
2764
|
}
|
|
2765
2765
|
visitPrefixUnaryExpression(node, context) {
|
|
2766
2766
|
const operatorKind = node.operator;
|
|
2767
|
-
if (!UNARY_OPERATORS.has(operatorKind)) {
|
|
2767
|
+
if (!this.UNARY_OPERATORS.has(operatorKind)) {
|
|
2768
2768
|
return DynamicValue.fromUnsupportedSyntax(node);
|
|
2769
2769
|
}
|
|
2770
|
-
const op = UNARY_OPERATORS.get(operatorKind);
|
|
2770
|
+
const op = this.UNARY_OPERATORS.get(operatorKind);
|
|
2771
2771
|
const value = this.visitExpression(node.operand, context);
|
|
2772
2772
|
if (value instanceof DynamicValue) {
|
|
2773
2773
|
return DynamicValue.fromDynamicInput(node, value);
|
|
@@ -2777,10 +2777,10 @@ var StaticInterpreter = class {
|
|
|
2777
2777
|
}
|
|
2778
2778
|
visitBinaryExpression(node, context) {
|
|
2779
2779
|
const tokenKind = node.operatorToken.kind;
|
|
2780
|
-
if (!BINARY_OPERATORS.has(tokenKind)) {
|
|
2780
|
+
if (!this.BINARY_OPERATORS.has(tokenKind)) {
|
|
2781
2781
|
return DynamicValue.fromUnsupportedSyntax(node);
|
|
2782
2782
|
}
|
|
2783
|
-
const opRecord = BINARY_OPERATORS.get(tokenKind);
|
|
2783
|
+
const opRecord = this.BINARY_OPERATORS.get(tokenKind);
|
|
2784
2784
|
let lhs, rhs;
|
|
2785
2785
|
if (opRecord.literal) {
|
|
2786
2786
|
lhs = literal(this.visitExpression(node.left, context), (value) => DynamicValue.fromInvalidExpressionType(node.left, value));
|
|
@@ -3117,10 +3117,10 @@ function createGenerateUniqueIdentifierHelper() {
|
|
|
3117
3117
|
const markIdentifierAsGenerated = (sf, identifierName) => generatedIdentifiers.add(`${sf.fileName}@@${identifierName}`);
|
|
3118
3118
|
return (sourceFile, symbolName) => {
|
|
3119
3119
|
const sf = sourceFile;
|
|
3120
|
-
if (sf
|
|
3120
|
+
if (sf["identifiers"] === void 0) {
|
|
3121
3121
|
throw new Error("Source file unexpectedly lacks map of parsed `identifiers`.");
|
|
3122
3122
|
}
|
|
3123
|
-
const isUniqueIdentifier = (name2) => !sf
|
|
3123
|
+
const isUniqueIdentifier = (name2) => !sf["identifiers"].has(name2) && !isGeneratedIdentifier(sf, name2);
|
|
3124
3124
|
if (isUniqueIdentifier(symbolName)) {
|
|
3125
3125
|
markIdentifierAsGenerated(sf, symbolName);
|
|
3126
3126
|
return null;
|
|
@@ -3828,61 +3828,61 @@ var PureAnnotation;
|
|
|
3828
3828
|
PureAnnotation2["CLOSURE"] = "* @pureOrBreakMyCode ";
|
|
3829
3829
|
PureAnnotation2["TERSER"] = "@__PURE__";
|
|
3830
3830
|
})(PureAnnotation || (PureAnnotation = {}));
|
|
3831
|
-
var UNARY_OPERATORS2 = /* @__PURE__ */ (() => ({
|
|
3832
|
-
"+": ts23.SyntaxKind.PlusToken,
|
|
3833
|
-
"-": ts23.SyntaxKind.MinusToken,
|
|
3834
|
-
"!": ts23.SyntaxKind.ExclamationToken
|
|
3835
|
-
}))();
|
|
3836
|
-
var BINARY_OPERATORS2 = /* @__PURE__ */ (() => ({
|
|
3837
|
-
"&&": ts23.SyntaxKind.AmpersandAmpersandToken,
|
|
3838
|
-
">": ts23.SyntaxKind.GreaterThanToken,
|
|
3839
|
-
">=": ts23.SyntaxKind.GreaterThanEqualsToken,
|
|
3840
|
-
"&": ts23.SyntaxKind.AmpersandToken,
|
|
3841
|
-
"|": ts23.SyntaxKind.BarToken,
|
|
3842
|
-
"/": ts23.SyntaxKind.SlashToken,
|
|
3843
|
-
"==": ts23.SyntaxKind.EqualsEqualsToken,
|
|
3844
|
-
"===": ts23.SyntaxKind.EqualsEqualsEqualsToken,
|
|
3845
|
-
"<": ts23.SyntaxKind.LessThanToken,
|
|
3846
|
-
"<=": ts23.SyntaxKind.LessThanEqualsToken,
|
|
3847
|
-
"-": ts23.SyntaxKind.MinusToken,
|
|
3848
|
-
"%": ts23.SyntaxKind.PercentToken,
|
|
3849
|
-
"*": ts23.SyntaxKind.AsteriskToken,
|
|
3850
|
-
"**": ts23.SyntaxKind.AsteriskAsteriskToken,
|
|
3851
|
-
"!=": ts23.SyntaxKind.ExclamationEqualsToken,
|
|
3852
|
-
"!==": ts23.SyntaxKind.ExclamationEqualsEqualsToken,
|
|
3853
|
-
"||": ts23.SyntaxKind.BarBarToken,
|
|
3854
|
-
"+": ts23.SyntaxKind.PlusToken,
|
|
3855
|
-
"??": ts23.SyntaxKind.QuestionQuestionToken,
|
|
3856
|
-
"in": ts23.SyntaxKind.InKeyword,
|
|
3857
|
-
"=": ts23.SyntaxKind.EqualsToken,
|
|
3858
|
-
"+=": ts23.SyntaxKind.PlusEqualsToken,
|
|
3859
|
-
"-=": ts23.SyntaxKind.MinusEqualsToken,
|
|
3860
|
-
"*=": ts23.SyntaxKind.AsteriskEqualsToken,
|
|
3861
|
-
"/=": ts23.SyntaxKind.SlashEqualsToken,
|
|
3862
|
-
"%=": ts23.SyntaxKind.PercentEqualsToken,
|
|
3863
|
-
"**=": ts23.SyntaxKind.AsteriskAsteriskEqualsToken,
|
|
3864
|
-
"&&=": ts23.SyntaxKind.AmpersandAmpersandEqualsToken,
|
|
3865
|
-
"||=": ts23.SyntaxKind.BarBarEqualsToken,
|
|
3866
|
-
"??=": ts23.SyntaxKind.QuestionQuestionEqualsToken
|
|
3867
|
-
}))();
|
|
3868
|
-
var VAR_TYPES = /* @__PURE__ */ (() => ({
|
|
3869
|
-
"const": ts23.NodeFlags.Const,
|
|
3870
|
-
"let": ts23.NodeFlags.Let,
|
|
3871
|
-
"var": ts23.NodeFlags.None
|
|
3872
|
-
}))();
|
|
3873
3831
|
var TypeScriptAstFactory = class {
|
|
3874
3832
|
annotateForClosureCompiler;
|
|
3875
3833
|
externalSourceFiles = /* @__PURE__ */ new Map();
|
|
3834
|
+
UNARY_OPERATORS = /* @__PURE__ */ (() => ({
|
|
3835
|
+
"+": ts23.SyntaxKind.PlusToken,
|
|
3836
|
+
"-": ts23.SyntaxKind.MinusToken,
|
|
3837
|
+
"!": ts23.SyntaxKind.ExclamationToken
|
|
3838
|
+
}))();
|
|
3839
|
+
BINARY_OPERATORS = /* @__PURE__ */ (() => ({
|
|
3840
|
+
"&&": ts23.SyntaxKind.AmpersandAmpersandToken,
|
|
3841
|
+
">": ts23.SyntaxKind.GreaterThanToken,
|
|
3842
|
+
">=": ts23.SyntaxKind.GreaterThanEqualsToken,
|
|
3843
|
+
"&": ts23.SyntaxKind.AmpersandToken,
|
|
3844
|
+
"|": ts23.SyntaxKind.BarToken,
|
|
3845
|
+
"/": ts23.SyntaxKind.SlashToken,
|
|
3846
|
+
"==": ts23.SyntaxKind.EqualsEqualsToken,
|
|
3847
|
+
"===": ts23.SyntaxKind.EqualsEqualsEqualsToken,
|
|
3848
|
+
"<": ts23.SyntaxKind.LessThanToken,
|
|
3849
|
+
"<=": ts23.SyntaxKind.LessThanEqualsToken,
|
|
3850
|
+
"-": ts23.SyntaxKind.MinusToken,
|
|
3851
|
+
"%": ts23.SyntaxKind.PercentToken,
|
|
3852
|
+
"*": ts23.SyntaxKind.AsteriskToken,
|
|
3853
|
+
"**": ts23.SyntaxKind.AsteriskAsteriskToken,
|
|
3854
|
+
"!=": ts23.SyntaxKind.ExclamationEqualsToken,
|
|
3855
|
+
"!==": ts23.SyntaxKind.ExclamationEqualsEqualsToken,
|
|
3856
|
+
"||": ts23.SyntaxKind.BarBarToken,
|
|
3857
|
+
"+": ts23.SyntaxKind.PlusToken,
|
|
3858
|
+
"??": ts23.SyntaxKind.QuestionQuestionToken,
|
|
3859
|
+
"in": ts23.SyntaxKind.InKeyword,
|
|
3860
|
+
"=": ts23.SyntaxKind.EqualsToken,
|
|
3861
|
+
"+=": ts23.SyntaxKind.PlusEqualsToken,
|
|
3862
|
+
"-=": ts23.SyntaxKind.MinusEqualsToken,
|
|
3863
|
+
"*=": ts23.SyntaxKind.AsteriskEqualsToken,
|
|
3864
|
+
"/=": ts23.SyntaxKind.SlashEqualsToken,
|
|
3865
|
+
"%=": ts23.SyntaxKind.PercentEqualsToken,
|
|
3866
|
+
"**=": ts23.SyntaxKind.AsteriskAsteriskEqualsToken,
|
|
3867
|
+
"&&=": ts23.SyntaxKind.AmpersandAmpersandEqualsToken,
|
|
3868
|
+
"||=": ts23.SyntaxKind.BarBarEqualsToken,
|
|
3869
|
+
"??=": ts23.SyntaxKind.QuestionQuestionEqualsToken
|
|
3870
|
+
}))();
|
|
3871
|
+
VAR_TYPES = /* @__PURE__ */ (() => ({
|
|
3872
|
+
"const": ts23.NodeFlags.Const,
|
|
3873
|
+
"let": ts23.NodeFlags.Let,
|
|
3874
|
+
"var": ts23.NodeFlags.None
|
|
3875
|
+
}))();
|
|
3876
3876
|
constructor(annotateForClosureCompiler) {
|
|
3877
3877
|
this.annotateForClosureCompiler = annotateForClosureCompiler;
|
|
3878
3878
|
}
|
|
3879
3879
|
attachComments = attachComments;
|
|
3880
3880
|
createArrayLiteral = ts23.factory.createArrayLiteralExpression;
|
|
3881
3881
|
createAssignment(target, operator, value) {
|
|
3882
|
-
return ts23.factory.createBinaryExpression(target,
|
|
3882
|
+
return ts23.factory.createBinaryExpression(target, this.BINARY_OPERATORS[operator], value);
|
|
3883
3883
|
}
|
|
3884
3884
|
createBinaryExpression(leftOperand, operator, rightOperand) {
|
|
3885
|
-
return ts23.factory.createBinaryExpression(leftOperand,
|
|
3885
|
+
return ts23.factory.createBinaryExpression(leftOperand, this.BINARY_OPERATORS[operator], rightOperand);
|
|
3886
3886
|
}
|
|
3887
3887
|
createBlock(body) {
|
|
3888
3888
|
return ts23.factory.createBlock(body);
|
|
@@ -3994,12 +3994,12 @@ var TypeScriptAstFactory = class {
|
|
|
3994
3994
|
createTypeOfExpression = ts23.factory.createTypeOfExpression;
|
|
3995
3995
|
createVoidExpression = ts23.factory.createVoidExpression;
|
|
3996
3996
|
createUnaryExpression(operator, operand) {
|
|
3997
|
-
return ts23.factory.createPrefixUnaryExpression(
|
|
3997
|
+
return ts23.factory.createPrefixUnaryExpression(this.UNARY_OPERATORS[operator], operand);
|
|
3998
3998
|
}
|
|
3999
3999
|
createVariableDeclaration(variableName, initializer, type) {
|
|
4000
4000
|
return ts23.factory.createVariableStatement(void 0, ts23.factory.createVariableDeclarationList([
|
|
4001
4001
|
ts23.factory.createVariableDeclaration(variableName, void 0, void 0, initializer ?? void 0)
|
|
4002
|
-
], VAR_TYPES[type]));
|
|
4002
|
+
], this.VAR_TYPES[type]));
|
|
4003
4003
|
}
|
|
4004
4004
|
setSourceMapRange(node, sourceMapRange) {
|
|
4005
4005
|
if (sourceMapRange === null) {
|
|
@@ -9596,13 +9596,23 @@ function makeTemplateDiagnostic(id, mapping, span, category, code, messageText,
|
|
|
9596
9596
|
relatedInformation
|
|
9597
9597
|
};
|
|
9598
9598
|
}
|
|
9599
|
+
let typeForMessage;
|
|
9600
|
+
if (category === ts46.DiagnosticCategory.Warning) {
|
|
9601
|
+
typeForMessage = "Warning";
|
|
9602
|
+
} else if (category === ts46.DiagnosticCategory.Suggestion) {
|
|
9603
|
+
typeForMessage = "Suggestion";
|
|
9604
|
+
} else if (category === ts46.DiagnosticCategory.Message) {
|
|
9605
|
+
typeForMessage = "Message";
|
|
9606
|
+
} else {
|
|
9607
|
+
typeForMessage = "Error";
|
|
9608
|
+
}
|
|
9599
9609
|
relatedInformation.push({
|
|
9600
9610
|
category: ts46.DiagnosticCategory.Message,
|
|
9601
9611
|
code: 0,
|
|
9602
9612
|
file: componentSf,
|
|
9603
9613
|
start: mapping.node.getStart(),
|
|
9604
9614
|
length: mapping.node.getEnd() - mapping.node.getStart(),
|
|
9605
|
-
messageText:
|
|
9615
|
+
messageText: `${typeForMessage} occurs in the template of component ${componentName}.`
|
|
9606
9616
|
});
|
|
9607
9617
|
return {
|
|
9608
9618
|
source: "ngtsc",
|
|
@@ -11117,23 +11127,26 @@ var ReferenceEmitEnvironment = class {
|
|
|
11117
11127
|
|
|
11118
11128
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.js
|
|
11119
11129
|
import ts50 from "typescript";
|
|
11120
|
-
var SAFE_TO_CAST_WITHOUT_PARENS =
|
|
11121
|
-
ts50.SyntaxKind.ParenthesizedExpression,
|
|
11122
|
-
ts50.SyntaxKind.Identifier,
|
|
11123
|
-
ts50.SyntaxKind.CallExpression,
|
|
11124
|
-
ts50.SyntaxKind.NonNullExpression,
|
|
11125
|
-
ts50.SyntaxKind.ElementAccessExpression,
|
|
11126
|
-
ts50.SyntaxKind.PropertyAccessExpression,
|
|
11127
|
-
ts50.SyntaxKind.ArrayLiteralExpression,
|
|
11128
|
-
ts50.SyntaxKind.ObjectLiteralExpression,
|
|
11129
|
-
ts50.SyntaxKind.StringLiteral,
|
|
11130
|
-
ts50.SyntaxKind.NumericLiteral,
|
|
11131
|
-
ts50.SyntaxKind.TrueKeyword,
|
|
11132
|
-
ts50.SyntaxKind.FalseKeyword,
|
|
11133
|
-
ts50.SyntaxKind.NullKeyword,
|
|
11134
|
-
ts50.SyntaxKind.UndefinedKeyword
|
|
11135
|
-
]);
|
|
11130
|
+
var SAFE_TO_CAST_WITHOUT_PARENS = null;
|
|
11136
11131
|
function tsCastToAny(expr) {
|
|
11132
|
+
if (SAFE_TO_CAST_WITHOUT_PARENS === null) {
|
|
11133
|
+
SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
11134
|
+
ts50.SyntaxKind.ParenthesizedExpression,
|
|
11135
|
+
ts50.SyntaxKind.Identifier,
|
|
11136
|
+
ts50.SyntaxKind.CallExpression,
|
|
11137
|
+
ts50.SyntaxKind.NonNullExpression,
|
|
11138
|
+
ts50.SyntaxKind.ElementAccessExpression,
|
|
11139
|
+
ts50.SyntaxKind.PropertyAccessExpression,
|
|
11140
|
+
ts50.SyntaxKind.ArrayLiteralExpression,
|
|
11141
|
+
ts50.SyntaxKind.ObjectLiteralExpression,
|
|
11142
|
+
ts50.SyntaxKind.StringLiteral,
|
|
11143
|
+
ts50.SyntaxKind.NumericLiteral,
|
|
11144
|
+
ts50.SyntaxKind.TrueKeyword,
|
|
11145
|
+
ts50.SyntaxKind.FalseKeyword,
|
|
11146
|
+
ts50.SyntaxKind.NullKeyword,
|
|
11147
|
+
ts50.SyntaxKind.UndefinedKeyword
|
|
11148
|
+
]);
|
|
11149
|
+
}
|
|
11137
11150
|
if (!SAFE_TO_CAST_WITHOUT_PARENS.has(expr.kind)) {
|
|
11138
11151
|
expr = ts50.factory.createParenthesizedExpression(expr);
|
|
11139
11152
|
}
|
|
@@ -12169,45 +12182,9 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
12169
12182
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.js
|
|
12170
12183
|
import { ASTWithSource, Call as Call2, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
|
|
12171
12184
|
import ts59 from "typescript";
|
|
12172
|
-
|
|
12173
|
-
|
|
12174
|
-
|
|
12175
|
-
["+", ts59.SyntaxKind.PlusToken],
|
|
12176
|
-
["-", ts59.SyntaxKind.MinusToken]
|
|
12177
|
-
]);
|
|
12178
|
-
var BINARY_OPS = /* @__PURE__ */ new Map([
|
|
12179
|
-
["+", ts59.SyntaxKind.PlusToken],
|
|
12180
|
-
["-", ts59.SyntaxKind.MinusToken],
|
|
12181
|
-
["<", ts59.SyntaxKind.LessThanToken],
|
|
12182
|
-
[">", ts59.SyntaxKind.GreaterThanToken],
|
|
12183
|
-
["<=", ts59.SyntaxKind.LessThanEqualsToken],
|
|
12184
|
-
[">=", ts59.SyntaxKind.GreaterThanEqualsToken],
|
|
12185
|
-
["=", ts59.SyntaxKind.EqualsToken],
|
|
12186
|
-
["==", ts59.SyntaxKind.EqualsEqualsToken],
|
|
12187
|
-
["===", ts59.SyntaxKind.EqualsEqualsEqualsToken],
|
|
12188
|
-
["*", ts59.SyntaxKind.AsteriskToken],
|
|
12189
|
-
["**", ts59.SyntaxKind.AsteriskAsteriskToken],
|
|
12190
|
-
["/", ts59.SyntaxKind.SlashToken],
|
|
12191
|
-
["%", ts59.SyntaxKind.PercentToken],
|
|
12192
|
-
["!=", ts59.SyntaxKind.ExclamationEqualsToken],
|
|
12193
|
-
["!==", ts59.SyntaxKind.ExclamationEqualsEqualsToken],
|
|
12194
|
-
["||", ts59.SyntaxKind.BarBarToken],
|
|
12195
|
-
["&&", ts59.SyntaxKind.AmpersandAmpersandToken],
|
|
12196
|
-
["&", ts59.SyntaxKind.AmpersandToken],
|
|
12197
|
-
["|", ts59.SyntaxKind.BarToken],
|
|
12198
|
-
["??", ts59.SyntaxKind.QuestionQuestionToken],
|
|
12199
|
-
["in", ts59.SyntaxKind.InKeyword],
|
|
12200
|
-
["=", ts59.SyntaxKind.EqualsToken],
|
|
12201
|
-
["+=", ts59.SyntaxKind.PlusEqualsToken],
|
|
12202
|
-
["-=", ts59.SyntaxKind.MinusEqualsToken],
|
|
12203
|
-
["*=", ts59.SyntaxKind.AsteriskEqualsToken],
|
|
12204
|
-
["/=", ts59.SyntaxKind.SlashEqualsToken],
|
|
12205
|
-
["%=", ts59.SyntaxKind.PercentEqualsToken],
|
|
12206
|
-
["**=", ts59.SyntaxKind.AsteriskAsteriskEqualsToken],
|
|
12207
|
-
["&&=", ts59.SyntaxKind.AmpersandAmpersandEqualsToken],
|
|
12208
|
-
["||=", ts59.SyntaxKind.BarBarEqualsToken],
|
|
12209
|
-
["??=", ts59.SyntaxKind.QuestionQuestionEqualsToken]
|
|
12210
|
-
]);
|
|
12185
|
+
function getAnyExpression() {
|
|
12186
|
+
return ts59.factory.createAsExpression(ts59.factory.createNumericLiteral("0"), ts59.factory.createKeywordTypeNode(ts59.SyntaxKind.AnyKeyword));
|
|
12187
|
+
}
|
|
12211
12188
|
function astToTypescript(ast, maybeResolve, config) {
|
|
12212
12189
|
const translator = new AstTranslator(maybeResolve, config);
|
|
12213
12190
|
return translator.translate(ast);
|
|
@@ -12215,6 +12192,44 @@ function astToTypescript(ast, maybeResolve, config) {
|
|
|
12215
12192
|
var AstTranslator = class {
|
|
12216
12193
|
maybeResolve;
|
|
12217
12194
|
config;
|
|
12195
|
+
UNDEFINED = ts59.factory.createIdentifier("undefined");
|
|
12196
|
+
UNARY_OPS = /* @__PURE__ */ new Map([
|
|
12197
|
+
["+", ts59.SyntaxKind.PlusToken],
|
|
12198
|
+
["-", ts59.SyntaxKind.MinusToken]
|
|
12199
|
+
]);
|
|
12200
|
+
BINARY_OPS = /* @__PURE__ */ new Map([
|
|
12201
|
+
["+", ts59.SyntaxKind.PlusToken],
|
|
12202
|
+
["-", ts59.SyntaxKind.MinusToken],
|
|
12203
|
+
["<", ts59.SyntaxKind.LessThanToken],
|
|
12204
|
+
[">", ts59.SyntaxKind.GreaterThanToken],
|
|
12205
|
+
["<=", ts59.SyntaxKind.LessThanEqualsToken],
|
|
12206
|
+
[">=", ts59.SyntaxKind.GreaterThanEqualsToken],
|
|
12207
|
+
["=", ts59.SyntaxKind.EqualsToken],
|
|
12208
|
+
["==", ts59.SyntaxKind.EqualsEqualsToken],
|
|
12209
|
+
["===", ts59.SyntaxKind.EqualsEqualsEqualsToken],
|
|
12210
|
+
["*", ts59.SyntaxKind.AsteriskToken],
|
|
12211
|
+
["**", ts59.SyntaxKind.AsteriskAsteriskToken],
|
|
12212
|
+
["/", ts59.SyntaxKind.SlashToken],
|
|
12213
|
+
["%", ts59.SyntaxKind.PercentToken],
|
|
12214
|
+
["!=", ts59.SyntaxKind.ExclamationEqualsToken],
|
|
12215
|
+
["!==", ts59.SyntaxKind.ExclamationEqualsEqualsToken],
|
|
12216
|
+
["||", ts59.SyntaxKind.BarBarToken],
|
|
12217
|
+
["&&", ts59.SyntaxKind.AmpersandAmpersandToken],
|
|
12218
|
+
["&", ts59.SyntaxKind.AmpersandToken],
|
|
12219
|
+
["|", ts59.SyntaxKind.BarToken],
|
|
12220
|
+
["??", ts59.SyntaxKind.QuestionQuestionToken],
|
|
12221
|
+
["in", ts59.SyntaxKind.InKeyword],
|
|
12222
|
+
["=", ts59.SyntaxKind.EqualsToken],
|
|
12223
|
+
["+=", ts59.SyntaxKind.PlusEqualsToken],
|
|
12224
|
+
["-=", ts59.SyntaxKind.MinusEqualsToken],
|
|
12225
|
+
["*=", ts59.SyntaxKind.AsteriskEqualsToken],
|
|
12226
|
+
["/=", ts59.SyntaxKind.SlashEqualsToken],
|
|
12227
|
+
["%=", ts59.SyntaxKind.PercentEqualsToken],
|
|
12228
|
+
["**=", ts59.SyntaxKind.AsteriskAsteriskEqualsToken],
|
|
12229
|
+
["&&=", ts59.SyntaxKind.AmpersandAmpersandEqualsToken],
|
|
12230
|
+
["||=", ts59.SyntaxKind.BarBarEqualsToken],
|
|
12231
|
+
["??=", ts59.SyntaxKind.QuestionQuestionEqualsToken]
|
|
12232
|
+
]);
|
|
12218
12233
|
constructor(maybeResolve, config) {
|
|
12219
12234
|
this.maybeResolve = maybeResolve;
|
|
12220
12235
|
this.config = config;
|
|
@@ -12236,7 +12251,7 @@ var AstTranslator = class {
|
|
|
12236
12251
|
}
|
|
12237
12252
|
visitUnary(ast) {
|
|
12238
12253
|
const expr = this.translate(ast.expr);
|
|
12239
|
-
const op = UNARY_OPS.get(ast.operator);
|
|
12254
|
+
const op = this.UNARY_OPS.get(ast.operator);
|
|
12240
12255
|
if (op === void 0) {
|
|
12241
12256
|
throw new Error(`Unsupported Unary.operator: ${ast.operator}`);
|
|
12242
12257
|
}
|
|
@@ -12247,7 +12262,7 @@ var AstTranslator = class {
|
|
|
12247
12262
|
visitBinary(ast) {
|
|
12248
12263
|
const lhs = wrapForDiagnostics(this.translate(ast.left));
|
|
12249
12264
|
const rhs = wrapForDiagnostics(this.translate(ast.right));
|
|
12250
|
-
const op = BINARY_OPS.get(ast.operation);
|
|
12265
|
+
const op = this.BINARY_OPS.get(ast.operation);
|
|
12251
12266
|
if (op === void 0) {
|
|
12252
12267
|
throw new Error(`Unsupported Binary.operation: ${ast.operation}`);
|
|
12253
12268
|
}
|
|
@@ -12361,7 +12376,7 @@ var AstTranslator = class {
|
|
|
12361
12376
|
if (this.config.strictSafeNavigationTypes) {
|
|
12362
12377
|
const expr = ts59.factory.createPropertyAccessExpression(ts59.factory.createNonNullExpression(receiver), ast.name);
|
|
12363
12378
|
addParseSpanInfo(expr, ast.nameSpan);
|
|
12364
|
-
node = ts59.factory.createParenthesizedExpression(ts59.factory.createConditionalExpression(
|
|
12379
|
+
node = ts59.factory.createParenthesizedExpression(ts59.factory.createConditionalExpression(getAnyExpression(), void 0, expr, void 0, this.UNDEFINED));
|
|
12365
12380
|
} else if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
|
|
12366
12381
|
node = ts59.factory.createPropertyAccessExpression(tsCastToAny(receiver), ast.name);
|
|
12367
12382
|
} else {
|
|
@@ -12379,7 +12394,7 @@ var AstTranslator = class {
|
|
|
12379
12394
|
if (this.config.strictSafeNavigationTypes) {
|
|
12380
12395
|
const expr = ts59.factory.createElementAccessExpression(ts59.factory.createNonNullExpression(receiver), key);
|
|
12381
12396
|
addParseSpanInfo(expr, ast.sourceSpan);
|
|
12382
|
-
node = ts59.factory.createParenthesizedExpression(ts59.factory.createConditionalExpression(
|
|
12397
|
+
node = ts59.factory.createParenthesizedExpression(ts59.factory.createConditionalExpression(getAnyExpression(), void 0, expr, void 0, this.UNDEFINED));
|
|
12383
12398
|
} else if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
|
|
12384
12399
|
node = ts59.factory.createElementAccessExpression(tsCastToAny(receiver), key);
|
|
12385
12400
|
} else {
|
|
@@ -12454,7 +12469,7 @@ var AstTranslator = class {
|
|
|
12454
12469
|
convertToSafeCall(ast, expr, args) {
|
|
12455
12470
|
if (this.config.strictSafeNavigationTypes) {
|
|
12456
12471
|
const call = ts59.factory.createCallExpression(ts59.factory.createNonNullExpression(expr), void 0, args);
|
|
12457
|
-
return ts59.factory.createParenthesizedExpression(ts59.factory.createConditionalExpression(
|
|
12472
|
+
return ts59.factory.createParenthesizedExpression(ts59.factory.createConditionalExpression(getAnyExpression(), void 0, call, void 0, this.UNDEFINED));
|
|
12458
12473
|
}
|
|
12459
12474
|
if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
|
|
12460
12475
|
return ts59.factory.createCallExpression(tsCastToAny(expr), void 0, args);
|
|
@@ -12615,7 +12630,7 @@ function renderBlockStatements(env, scope, wrapperExpression) {
|
|
|
12615
12630
|
}
|
|
12616
12631
|
var TcbOp = class {
|
|
12617
12632
|
circularFallback() {
|
|
12618
|
-
return
|
|
12633
|
+
return ts60.factory.createNonNullExpression(ts60.factory.createNull());
|
|
12619
12634
|
}
|
|
12620
12635
|
};
|
|
12621
12636
|
var TcbElementOp = class extends TcbOp {
|
|
@@ -12903,7 +12918,7 @@ var TcbInvalidReferenceOp = class extends TcbOp {
|
|
|
12903
12918
|
optional = true;
|
|
12904
12919
|
execute() {
|
|
12905
12920
|
const id = this.tcb.allocateId();
|
|
12906
|
-
this.scope.addStatement(tsCreateVariable(id,
|
|
12921
|
+
this.scope.addStatement(tsCreateVariable(id, getAnyExpression()));
|
|
12907
12922
|
return id;
|
|
12908
12923
|
}
|
|
12909
12924
|
};
|
|
@@ -13611,7 +13626,6 @@ var TcbForOfOp = class extends TcbOp {
|
|
|
13611
13626
|
return null;
|
|
13612
13627
|
}
|
|
13613
13628
|
};
|
|
13614
|
-
var INFER_TYPE_FOR_CIRCULAR_OP_EXPR = ts60.factory.createNonNullExpression(ts60.factory.createNull());
|
|
13615
13629
|
var Context2 = class {
|
|
13616
13630
|
env;
|
|
13617
13631
|
domSchemaChecker;
|
|
@@ -13644,7 +13658,7 @@ var Context2 = class {
|
|
|
13644
13658
|
return this.pipes.get(name);
|
|
13645
13659
|
}
|
|
13646
13660
|
};
|
|
13647
|
-
var
|
|
13661
|
+
var Scope = class {
|
|
13648
13662
|
tcb;
|
|
13649
13663
|
parent;
|
|
13650
13664
|
guard;
|
|
@@ -13658,13 +13672,23 @@ var _Scope = class {
|
|
|
13658
13672
|
varMap = /* @__PURE__ */ new Map();
|
|
13659
13673
|
letDeclOpMap = /* @__PURE__ */ new Map();
|
|
13660
13674
|
statements = [];
|
|
13675
|
+
static getForLoopContextVariableTypes() {
|
|
13676
|
+
return /* @__PURE__ */ new Map([
|
|
13677
|
+
["$first", ts60.SyntaxKind.BooleanKeyword],
|
|
13678
|
+
["$last", ts60.SyntaxKind.BooleanKeyword],
|
|
13679
|
+
["$even", ts60.SyntaxKind.BooleanKeyword],
|
|
13680
|
+
["$odd", ts60.SyntaxKind.BooleanKeyword],
|
|
13681
|
+
["$index", ts60.SyntaxKind.NumberKeyword],
|
|
13682
|
+
["$count", ts60.SyntaxKind.NumberKeyword]
|
|
13683
|
+
]);
|
|
13684
|
+
}
|
|
13661
13685
|
constructor(tcb, parent = null, guard = null) {
|
|
13662
13686
|
this.tcb = tcb;
|
|
13663
13687
|
this.parent = parent;
|
|
13664
13688
|
this.guard = guard;
|
|
13665
13689
|
}
|
|
13666
13690
|
static forNodes(tcb, parentScope, scopedNode, children, guard) {
|
|
13667
|
-
const scope = new
|
|
13691
|
+
const scope = new Scope(tcb, parentScope, guard);
|
|
13668
13692
|
if (parentScope === null && tcb.env.config.enableTemplateTypeChecker) {
|
|
13669
13693
|
scope.opQueue.push(new TcbComponentContextCompletionOp(scope));
|
|
13670
13694
|
}
|
|
@@ -13677,23 +13701,24 @@ var _Scope = class {
|
|
|
13677
13701
|
const firstDecl = varMap.get(v.name);
|
|
13678
13702
|
tcb.oobRecorder.duplicateTemplateVar(tcb.id, v, firstDecl);
|
|
13679
13703
|
}
|
|
13680
|
-
|
|
13704
|
+
Scope.registerVariable(scope, v, new TcbTemplateVariableOp(tcb, scope, scopedNode, v));
|
|
13681
13705
|
}
|
|
13682
13706
|
} else if (scopedNode instanceof TmplAstIfBlockBranch) {
|
|
13683
13707
|
const { expression, expressionAlias } = scopedNode;
|
|
13684
13708
|
if (expression !== null && expressionAlias !== null) {
|
|
13685
|
-
|
|
13709
|
+
Scope.registerVariable(scope, expressionAlias, new TcbBlockVariableOp(tcb, scope, tcbExpression(expression, tcb, scope), expressionAlias));
|
|
13686
13710
|
}
|
|
13687
13711
|
} else if (scopedNode instanceof TmplAstForLoopBlock) {
|
|
13688
13712
|
const loopInitializer = tcb.allocateId();
|
|
13689
13713
|
addParseSpanInfo(loopInitializer, scopedNode.item.sourceSpan);
|
|
13690
13714
|
scope.varMap.set(scopedNode.item, loopInitializer);
|
|
13715
|
+
const forLoopContextVariableTypes = Scope.getForLoopContextVariableTypes();
|
|
13691
13716
|
for (const variable of scopedNode.contextVariables) {
|
|
13692
|
-
if (!
|
|
13717
|
+
if (!forLoopContextVariableTypes.has(variable.value)) {
|
|
13693
13718
|
throw new Error(`Unrecognized for loop context variable ${variable.name}`);
|
|
13694
13719
|
}
|
|
13695
|
-
const type = ts60.factory.createKeywordTypeNode(
|
|
13696
|
-
|
|
13720
|
+
const type = ts60.factory.createKeywordTypeNode(forLoopContextVariableTypes.get(variable.value));
|
|
13721
|
+
Scope.registerVariable(scope, variable, new TcbBlockImplicitVariableOp(tcb, scope, type, variable));
|
|
13697
13722
|
}
|
|
13698
13723
|
} else if (scopedNode instanceof TmplAstHostElement2) {
|
|
13699
13724
|
scope.appendNode(scopedNode);
|
|
@@ -13704,10 +13729,10 @@ var _Scope = class {
|
|
|
13704
13729
|
}
|
|
13705
13730
|
}
|
|
13706
13731
|
for (const variable of scope.varMap.keys()) {
|
|
13707
|
-
|
|
13732
|
+
Scope.checkConflictingLet(scope, variable);
|
|
13708
13733
|
}
|
|
13709
13734
|
for (const ref of scope.referenceOpMap.keys()) {
|
|
13710
|
-
|
|
13735
|
+
Scope.checkConflictingLet(scope, ref);
|
|
13711
13736
|
}
|
|
13712
13737
|
return scope;
|
|
13713
13738
|
}
|
|
@@ -14152,15 +14177,6 @@ var _Scope = class {
|
|
|
14152
14177
|
}
|
|
14153
14178
|
}
|
|
14154
14179
|
};
|
|
14155
|
-
var Scope = _Scope;
|
|
14156
|
-
__publicField(Scope, "forLoopContextVariableTypes", /* @__PURE__ */ new Map([
|
|
14157
|
-
["$first", ts60.SyntaxKind.BooleanKeyword],
|
|
14158
|
-
["$last", ts60.SyntaxKind.BooleanKeyword],
|
|
14159
|
-
["$even", ts60.SyntaxKind.BooleanKeyword],
|
|
14160
|
-
["$odd", ts60.SyntaxKind.BooleanKeyword],
|
|
14161
|
-
["$index", ts60.SyntaxKind.NumberKeyword],
|
|
14162
|
-
["$count", ts60.SyntaxKind.NumberKeyword]
|
|
14163
|
-
]));
|
|
14164
14180
|
function tcbThisParam(name, typeArguments) {
|
|
14165
14181
|
return ts60.factory.createParameterDeclaration(
|
|
14166
14182
|
void 0,
|
|
@@ -14219,10 +14235,10 @@ var TcbExpressionTranslator = class {
|
|
|
14219
14235
|
let pipe;
|
|
14220
14236
|
if (pipeMeta === null) {
|
|
14221
14237
|
this.tcb.oobRecorder.missingPipe(this.tcb.id, ast, this.tcb.hostIsStandalone);
|
|
14222
|
-
pipe =
|
|
14238
|
+
pipe = getAnyExpression();
|
|
14223
14239
|
} else if (pipeMeta.isExplicitlyDeferred && this.tcb.boundTarget.getEagerlyUsedPipes().includes(ast.name)) {
|
|
14224
14240
|
this.tcb.oobRecorder.deferredPipeUsedEagerly(this.tcb.id, ast);
|
|
14225
|
-
pipe =
|
|
14241
|
+
pipe = getAnyExpression();
|
|
14226
14242
|
} else {
|
|
14227
14243
|
pipe = this.tcb.env.pipeInst(pipeMeta.ref);
|
|
14228
14244
|
}
|
|
@@ -14287,7 +14303,7 @@ function tcbCallTypeCtor(dir, tcb, inputs) {
|
|
|
14287
14303
|
addParseSpanInfo(assignment, input.sourceSpan);
|
|
14288
14304
|
return assignment;
|
|
14289
14305
|
} else {
|
|
14290
|
-
return ts60.factory.createPropertyAssignment(propertyName,
|
|
14306
|
+
return ts60.factory.createPropertyAssignment(propertyName, getAnyExpression());
|
|
14291
14307
|
}
|
|
14292
14308
|
});
|
|
14293
14309
|
return ts60.factory.createCallExpression(
|
|
@@ -20117,4 +20133,4 @@ export {
|
|
|
20117
20133
|
* Use of this source code is governed by an MIT-style license that can be
|
|
20118
20134
|
* found in the LICENSE file at https://angular.dev/license
|
|
20119
20135
|
*/
|
|
20120
|
-
//# sourceMappingURL=chunk-
|
|
20136
|
+
//# sourceMappingURL=chunk-UZOSFHTN.js.map
|