@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.
@@ -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 NULL_AS_ANY = ts40.factory.createAsExpression(ts40.factory.createNull(), ts40.factory.createKeywordTypeNode(ts40.SyntaxKind.AnyKeyword));
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(NULL_AS_ANY, void 0, expr, void 0, UNDEFINED));
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(NULL_AS_ANY, void 0, expr, void 0, UNDEFINED));
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(NULL_AS_ANY, void 0, call, void 0, UNDEFINED));
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, NULL_AS_ANY));
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 = NULL_AS_ANY;
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 = NULL_AS_ANY;
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, NULL_AS_ANY);
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-JN25LQVK.js.map
14753
+ //# sourceMappingURL=chunk-2SSA4Y5F.js.map