@angular/compiler-cli 18.2.0-rc.0 → 19.0.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-JN25LQVK.js → chunk-2SSA4Y5F.js} +9 -9
- package/bundles/{chunk-JN25LQVK.js.map → chunk-2SSA4Y5F.js.map} +1 -1
- package/bundles/{chunk-OPQN45UO.js → chunk-JA5OGHV4.js} +2 -2
- package/bundles/chunk-KCKRBU6N.js +1 -1
- package/bundles/{chunk-E3LRITIP.js → chunk-QTQ6EDMV.js} +2 -2
- package/bundles/{chunk-BQJWNGMG.js → chunk-TOHNTVMY.js} +77 -91
- package/bundles/chunk-TOHNTVMY.js.map +6 -0
- package/bundles/{chunk-A35M6UXY.js → chunk-ZHNORXPH.js} +2 -2
- package/bundles/index.js +5 -5
- package/bundles/private/migrations.js +1 -1
- package/bundles/private/tooling.js +3 -3
- package/bundles/src/bin/ng_xi18n.js +4 -4
- package/bundles/src/bin/ngc.js +4 -4
- package/bundles_metadata.json +1 -1
- 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 +9 -6
- package/src/ngtsc/docs/src/function_extractor.d.ts +16 -6
- package/src/ngtsc/typecheck/src/expression.d.ts +12 -1
- package/bundles/chunk-BQJWNGMG.js.map +0 -6
- /package/bundles/{chunk-OPQN45UO.js.map → chunk-JA5OGHV4.js.map} +0 -0
- /package/bundles/{chunk-E3LRITIP.js.map → chunk-QTQ6EDMV.js.map} +0 -0
- /package/bundles/{chunk-A35M6UXY.js.map → chunk-ZHNORXPH.js.map} +0 -0
|
@@ -9670,7 +9670,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
9670
9670
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
9671
9671
|
import { ASTWithSource, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead2, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
|
|
9672
9672
|
import ts40 from "typescript";
|
|
9673
|
-
var
|
|
9673
|
+
var ANY_EXPRESSION = ts40.factory.createAsExpression(ts40.factory.createNumericLiteral("0"), ts40.factory.createKeywordTypeNode(ts40.SyntaxKind.AnyKeyword));
|
|
9674
9674
|
var UNDEFINED = ts40.factory.createIdentifier("undefined");
|
|
9675
9675
|
var UNARY_OPS = /* @__PURE__ */ new Map([
|
|
9676
9676
|
["+", ts40.SyntaxKind.PlusToken],
|
|
@@ -9854,7 +9854,7 @@ var AstTranslator = class {
|
|
|
9854
9854
|
if (this.config.strictSafeNavigationTypes) {
|
|
9855
9855
|
const expr = ts40.factory.createPropertyAccessExpression(ts40.factory.createNonNullExpression(receiver), ast.name);
|
|
9856
9856
|
addParseSpanInfo(expr, ast.nameSpan);
|
|
9857
|
-
node = ts40.factory.createParenthesizedExpression(ts40.factory.createConditionalExpression(
|
|
9857
|
+
node = ts40.factory.createParenthesizedExpression(ts40.factory.createConditionalExpression(ANY_EXPRESSION, void 0, expr, void 0, UNDEFINED));
|
|
9858
9858
|
} else if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
|
|
9859
9859
|
node = ts40.factory.createPropertyAccessExpression(tsCastToAny(receiver), ast.name);
|
|
9860
9860
|
} else {
|
|
@@ -9872,7 +9872,7 @@ var AstTranslator = class {
|
|
|
9872
9872
|
if (this.config.strictSafeNavigationTypes) {
|
|
9873
9873
|
const expr = ts40.factory.createElementAccessExpression(ts40.factory.createNonNullExpression(receiver), key);
|
|
9874
9874
|
addParseSpanInfo(expr, ast.sourceSpan);
|
|
9875
|
-
node = ts40.factory.createParenthesizedExpression(ts40.factory.createConditionalExpression(
|
|
9875
|
+
node = ts40.factory.createParenthesizedExpression(ts40.factory.createConditionalExpression(ANY_EXPRESSION, void 0, expr, void 0, UNDEFINED));
|
|
9876
9876
|
} else if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
|
|
9877
9877
|
node = ts40.factory.createElementAccessExpression(tsCastToAny(receiver), key);
|
|
9878
9878
|
} else {
|
|
@@ -9918,7 +9918,7 @@ var AstTranslator = class {
|
|
|
9918
9918
|
convertToSafeCall(ast, expr, args) {
|
|
9919
9919
|
if (this.config.strictSafeNavigationTypes) {
|
|
9920
9920
|
const call = ts40.factory.createCallExpression(ts40.factory.createNonNullExpression(expr), void 0, args);
|
|
9921
|
-
return ts40.factory.createParenthesizedExpression(ts40.factory.createConditionalExpression(
|
|
9921
|
+
return ts40.factory.createParenthesizedExpression(ts40.factory.createConditionalExpression(ANY_EXPRESSION, void 0, call, void 0, UNDEFINED));
|
|
9922
9922
|
}
|
|
9923
9923
|
if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
|
|
9924
9924
|
return ts40.factory.createCallExpression(tsCastToAny(expr), void 0, args);
|
|
@@ -10304,7 +10304,7 @@ var TcbInvalidReferenceOp = class extends TcbOp {
|
|
|
10304
10304
|
}
|
|
10305
10305
|
execute() {
|
|
10306
10306
|
const id = this.tcb.allocateId();
|
|
10307
|
-
this.scope.addStatement(tsCreateVariable(id,
|
|
10307
|
+
this.scope.addStatement(tsCreateVariable(id, ANY_EXPRESSION));
|
|
10308
10308
|
return id;
|
|
10309
10309
|
}
|
|
10310
10310
|
};
|
|
@@ -11368,10 +11368,10 @@ var TcbExpressionTranslator = class {
|
|
|
11368
11368
|
let pipe;
|
|
11369
11369
|
if (pipeMeta === null) {
|
|
11370
11370
|
this.tcb.oobRecorder.missingPipe(this.tcb.id, ast);
|
|
11371
|
-
pipe =
|
|
11371
|
+
pipe = ANY_EXPRESSION;
|
|
11372
11372
|
} else if (pipeMeta.isExplicitlyDeferred && this.tcb.boundTarget.getEagerlyUsedPipes().includes(ast.name)) {
|
|
11373
11373
|
this.tcb.oobRecorder.deferredPipeUsedEagerly(this.tcb.id, ast);
|
|
11374
|
-
pipe =
|
|
11374
|
+
pipe = ANY_EXPRESSION;
|
|
11375
11375
|
} else {
|
|
11376
11376
|
pipe = this.tcb.env.pipeInst(pipeMeta.ref);
|
|
11377
11377
|
}
|
|
@@ -11436,7 +11436,7 @@ function tcbCallTypeCtor(dir, tcb, inputs) {
|
|
|
11436
11436
|
addParseSpanInfo(assignment, input.sourceSpan);
|
|
11437
11437
|
return assignment;
|
|
11438
11438
|
} else {
|
|
11439
|
-
return ts41.factory.createPropertyAssignment(propertyName,
|
|
11439
|
+
return ts41.factory.createPropertyAssignment(propertyName, ANY_EXPRESSION);
|
|
11440
11440
|
}
|
|
11441
11441
|
});
|
|
11442
11442
|
return ts41.factory.createCallExpression(
|
|
@@ -14750,4 +14750,4 @@ export {
|
|
|
14750
14750
|
* Use of this source code is governed by an MIT-style license that can be
|
|
14751
14751
|
* found in the LICENSE file at https://angular.io/license
|
|
14752
14752
|
*/
|
|
14753
|
-
//# sourceMappingURL=chunk-
|
|
14753
|
+
//# sourceMappingURL=chunk-2SSA4Y5F.js.map
|