@angular/compiler-cli 18.0.1 → 18.0.2

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.
Files changed (50) hide show
  1. package/bundles/{chunk-XNL3EK5H.js → chunk-3W345P4E.js} +7 -7
  2. package/bundles/{chunk-27KMND5I.js → chunk-46XI27YO.js} +31 -31
  3. package/bundles/{chunk-6AZ42I2O.js → chunk-6X2NNIEJ.js} +7 -5
  4. package/bundles/{chunk-6AZ42I2O.js.map → chunk-6X2NNIEJ.js.map} +1 -1
  5. package/bundles/{chunk-ZLHOM56K.js → chunk-BOT54HZ5.js} +278 -148
  6. package/bundles/chunk-BOT54HZ5.js.map +6 -0
  7. package/bundles/{chunk-LDI6GWO5.js → chunk-EDA6DBVV.js} +5 -5
  8. package/bundles/{chunk-CDSIZK6E.js → chunk-HGUKV37D.js} +94 -93
  9. package/bundles/{chunk-CDSIZK6E.js.map → chunk-HGUKV37D.js.map} +1 -1
  10. package/bundles/{chunk-AQFTVE7F.js → chunk-JZQHA4E7.js} +5 -5
  11. package/bundles/{chunk-IFIN3A3P.js → chunk-LRVXZT7X.js} +13 -13
  12. package/bundles/{chunk-SBDNBITT.js → chunk-LYJKWJUC.js} +3 -3
  13. package/bundles/{chunk-WR7TUJ7M.js → chunk-QYV344EV.js} +7 -7
  14. package/bundles/{chunk-TPUY2KMQ.js → chunk-RZ7P6VD7.js} +46 -43
  15. package/bundles/chunk-RZ7P6VD7.js.map +6 -0
  16. package/bundles/index.js +12 -12
  17. package/bundles/linker/babel/index.js +12 -12
  18. package/bundles/linker/index.js +4 -4
  19. package/bundles/ngcc/index.js +1 -1
  20. package/bundles/private/bazel.js +1 -1
  21. package/bundles/private/localize.js +3 -3
  22. package/bundles/private/migrations.js +5 -5
  23. package/bundles/private/tooling.js +5 -5
  24. package/bundles/src/bin/ng_xi18n.js +10 -10
  25. package/bundles/src/bin/ngc.js +8 -8
  26. package/bundles_metadata.json +1 -1
  27. package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
  28. package/package.json +3 -3
  29. package/src/ngtsc/annotations/component/src/handler.d.ts +2 -1
  30. package/src/ngtsc/annotations/component/src/resources.d.ts +1 -0
  31. package/src/ngtsc/core/src/compiler.d.ts +1 -0
  32. package/src/ngtsc/diagnostics/src/error_code.d.ts +6 -0
  33. package/src/ngtsc/indexer/src/api.d.ts +8 -3
  34. package/src/ngtsc/typecheck/api/checker.d.ts +2 -2
  35. package/src/ngtsc/typecheck/api/completion.d.ts +15 -4
  36. package/src/ngtsc/typecheck/api/symbols.d.ts +28 -3
  37. package/src/ngtsc/typecheck/src/checker.d.ts +2 -2
  38. package/src/ngtsc/typecheck/src/oob.d.ts +16 -1
  39. package/src/ngtsc/typecheck/src/template_symbol_builder.d.ts +4 -3
  40. package/src/ngtsc/typecheck/src/ts_util.d.ts +1 -1
  41. package/src/ngtsc/typecheck/src/type_check_block.d.ts +13 -2
  42. package/bundles/chunk-TPUY2KMQ.js.map +0 -6
  43. package/bundles/chunk-ZLHOM56K.js.map +0 -6
  44. /package/bundles/{chunk-XNL3EK5H.js.map → chunk-3W345P4E.js.map} +0 -0
  45. /package/bundles/{chunk-27KMND5I.js.map → chunk-46XI27YO.js.map} +0 -0
  46. /package/bundles/{chunk-LDI6GWO5.js.map → chunk-EDA6DBVV.js.map} +0 -0
  47. /package/bundles/{chunk-AQFTVE7F.js.map → chunk-JZQHA4E7.js.map} +0 -0
  48. /package/bundles/{chunk-IFIN3A3P.js.map → chunk-LRVXZT7X.js.map} +0 -0
  49. /package/bundles/{chunk-SBDNBITT.js.map → chunk-LYJKWJUC.js.map} +0 -0
  50. /package/bundles/{chunk-WR7TUJ7M.js.map → chunk-QYV344EV.js.map} +0 -0
@@ -3,7 +3,7 @@
3
3
  const require = __cjsCompatRequire(import.meta.url);
4
4
 
5
5
 
6
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/api.mjs
6
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/api.mjs
7
7
  var PerfPhase;
8
8
  (function(PerfPhase2) {
9
9
  PerfPhase2[PerfPhase2["Unaccounted"] = 0] = "Unaccounted";
@@ -71,7 +71,7 @@ var PerfCheckpoint;
71
71
  PerfCheckpoint2[PerfCheckpoint2["LAST"] = 9] = "LAST";
72
72
  })(PerfCheckpoint || (PerfCheckpoint = {}));
73
73
 
74
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
74
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
75
75
  var NoopPerfRecorder = class {
76
76
  eventCount() {
77
77
  }
@@ -88,7 +88,7 @@ var NoopPerfRecorder = class {
88
88
  };
89
89
  var NOOP_PERF_RECORDER = new NoopPerfRecorder();
90
90
 
91
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/clock.mjs
91
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/clock.mjs
92
92
  function mark() {
93
93
  return process.hrtime();
94
94
  }
@@ -97,7 +97,7 @@ function timeSinceInMicros(mark2) {
97
97
  return delta[0] * 1e6 + Math.floor(delta[1] / 1e3);
98
98
  }
99
99
 
100
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/recorder.mjs
100
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/recorder.mjs
101
101
  var ActivePerfRecorder = class {
102
102
  static zeroedToNow() {
103
103
  return new ActivePerfRecorder(mark());
@@ -205,4 +205,4 @@ export {
205
205
  * Use of this source code is governed by an MIT-style license that can be
206
206
  * found in the LICENSE file at https://angular.io/license
207
207
  */
208
- //# sourceMappingURL=chunk-AQFTVE7F.js.map
208
+ //# sourceMappingURL=chunk-JZQHA4E7.js.map
@@ -10,7 +10,7 @@ import {
10
10
  tryParseSignalInputMapping,
11
11
  tryParseSignalModelMapping,
12
12
  tryParseSignalQueryFromInitializer
13
- } from "./chunk-CDSIZK6E.js";
13
+ } from "./chunk-HGUKV37D.js";
14
14
  import {
15
15
  ImportManager,
16
16
  ImportedSymbolsTracker,
@@ -18,9 +18,9 @@ import {
18
18
  isAliasImportDeclaration,
19
19
  loadIsReferencedAliasDeclarationPatch,
20
20
  reflectClassMember
21
- } from "./chunk-TPUY2KMQ.js";
21
+ } from "./chunk-RZ7P6VD7.js";
22
22
 
23
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/downlevel_decorators_transform.mjs
23
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/downlevel_decorators_transform.mjs
24
24
  import ts from "typescript";
25
25
  function isAngularDecorator2(decorator, isCore) {
26
26
  return isCore || decorator.import !== null && decorator.import.from === "@angular/core";
@@ -325,10 +325,10 @@ function cloneClassElementWithModifiers(node, modifiers) {
325
325
  return ts.setOriginalNode(clone, node);
326
326
  }
327
327
 
328
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/initializer_api_transforms/transform.mjs
328
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/initializer_api_transforms/transform.mjs
329
329
  import ts4 from "typescript";
330
330
 
331
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/initializer_api_transforms/transform_api.mjs
331
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/initializer_api_transforms/transform_api.mjs
332
332
  import ts2 from "typescript";
333
333
  function createSyntheticAngularCoreDecoratorAccess(factory, importManager, ngClassDecorator, sourceFile, decoratorName) {
334
334
  const classDecoratorIdentifier = ts2.isIdentifier(ngClassDecorator.identifier) ? ngClassDecorator.identifier : ngClassDecorator.identifier.expression;
@@ -345,7 +345,7 @@ function castAsAny(factory, expr) {
345
345
  return factory.createAsExpression(expr, factory.createKeywordTypeNode(ts2.SyntaxKind.AnyKeyword));
346
346
  }
347
347
 
348
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/initializer_api_transforms/input_function.mjs
348
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/initializer_api_transforms/input_function.mjs
349
349
  var signalInputsTransform = (member, host, factory, importTracker, importManager, classDecorator, isCore) => {
350
350
  var _a, _b;
351
351
  if ((_a = host.getDecoratorsOfDeclaration(member.node)) == null ? void 0 : _a.some((d) => isAngularDecorator(d, "Input", isCore))) {
@@ -368,7 +368,7 @@ var signalInputsTransform = (member, host, factory, importTracker, importManager
368
368
  return factory.updatePropertyDeclaration(member.node, [newDecorator, ...(_b = member.node.modifiers) != null ? _b : []], member.name, member.node.questionToken, member.node.type, member.node.initializer);
369
369
  };
370
370
 
371
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/initializer_api_transforms/model_function.mjs
371
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/initializer_api_transforms/model_function.mjs
372
372
  import ts3 from "typescript";
373
373
  var signalModelTransform = (member, host, factory, importTracker, importManager, classDecorator, isCore) => {
374
374
  var _a, _b;
@@ -403,7 +403,7 @@ function createDecorator(name, config, classDecorator, factory, sourceFile, impo
403
403
  return factory.createDecorator(factory.createCallExpression(callTarget, void 0, [config]));
404
404
  }
405
405
 
406
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/initializer_api_transforms/output_function.mjs
406
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/initializer_api_transforms/output_function.mjs
407
407
  var initializerApiOutputTransform = (member, host, factory, importTracker, importManager, classDecorator, isCore) => {
408
408
  var _a, _b;
409
409
  if ((_a = host.getDecoratorsOfDeclaration(member.node)) == null ? void 0 : _a.some((d) => isAngularDecorator(d, "Output", isCore))) {
@@ -418,7 +418,7 @@ var initializerApiOutputTransform = (member, host, factory, importTracker, impor
418
418
  return factory.updatePropertyDeclaration(member.node, [newDecorator, ...(_b = member.node.modifiers) != null ? _b : []], member.node.name, member.node.questionToken, member.node.type, member.node.initializer);
419
419
  };
420
420
 
421
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/initializer_api_transforms/query_functions.mjs
421
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/initializer_api_transforms/query_functions.mjs
422
422
  var queryFunctionToDecorator = {
423
423
  viewChild: "ViewChild",
424
424
  viewChildren: "ViewChildren",
@@ -452,7 +452,7 @@ var queryFunctionsTransforms = (member, host, factory, importTracker, importMana
452
452
  return factory.updatePropertyDeclaration(member.node, [newDecorator, ...(_a = member.node.modifiers) != null ? _a : []], member.node.name, member.node.questionToken, member.node.type, member.node.initializer);
453
453
  };
454
454
 
455
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/initializer_api_transforms/transform.mjs
455
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/initializer_api_transforms/transform.mjs
456
456
  var decoratorsWithInputs = ["Directive", "Component"];
457
457
  var propertyTransforms = [
458
458
  signalInputsTransform,
@@ -503,7 +503,7 @@ function createTransformVisitor(ctx, host, importManager, importTracker, isCore)
503
503
  return visitor;
504
504
  }
505
505
 
506
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/index.mjs
506
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/index.mjs
507
507
  function angularJitApplicationTransform(program, isCore = false) {
508
508
  const typeChecker = program.getTypeChecker();
509
509
  const reflectionHost = new TypeScriptReflectionHost(typeChecker);
@@ -525,7 +525,7 @@ function angularJitApplicationTransform(program, isCore = false) {
525
525
  };
526
526
  }
527
527
 
528
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
528
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
529
529
  var GLOBAL_DEFS_FOR_TERSER = {
530
530
  ngDevMode: false,
531
531
  ngI18nClosureMode: false
@@ -553,4 +553,4 @@ export {
553
553
  * Use of this source code is governed by an MIT-style license that can be
554
554
  * found in the LICENSE file at https://angular.io/license
555
555
  */
556
- //# sourceMappingURL=chunk-IFIN3A3P.js.map
556
+ //# sourceMappingURL=chunk-LRVXZT7X.js.map
@@ -3,7 +3,7 @@
3
3
  const require = __cjsCompatRequire(import.meta.url);
4
4
 
5
5
 
6
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/logger.mjs
6
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/logger.mjs
7
7
  var LogLevel;
8
8
  (function(LogLevel2) {
9
9
  LogLevel2[LogLevel2["debug"] = 0] = "debug";
@@ -12,7 +12,7 @@ var LogLevel;
12
12
  LogLevel2[LogLevel2["error"] = 3] = "error";
13
13
  })(LogLevel || (LogLevel = {}));
14
14
 
15
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/console_logger.mjs
15
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/console_logger.mjs
16
16
  var RESET = "\x1B[0m";
17
17
  var RED = "\x1B[31m";
18
18
  var YELLOW = "\x1B[33m";
@@ -53,4 +53,4 @@ export {
53
53
  * Use of this source code is governed by an MIT-style license that can be
54
54
  * found in the LICENSE file at https://angular.io/license
55
55
  */
56
- //# sourceMappingURL=chunk-SBDNBITT.js.map
56
+ //# sourceMappingURL=chunk-LYJKWJUC.js.map
@@ -3,11 +3,11 @@
3
3
  const require = __cjsCompatRequire(import.meta.url);
4
4
 
5
5
 
6
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file.mjs
6
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file.mjs
7
7
  import { decode, encode } from "@jridgewell/sourcemap-codec";
8
8
  import mapHelpers from "convert-source-map";
9
9
 
10
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/segment_marker.mjs
10
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/segment_marker.mjs
11
11
  function compareSegments(a, b) {
12
12
  return a.position - b.position;
13
13
  }
@@ -27,7 +27,7 @@ function offsetSegment(startOfLinePositions, marker, offset) {
27
27
  return { line, column, position, next: void 0 };
28
28
  }
29
29
 
30
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file.mjs
30
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file.mjs
31
31
  function removeSourceMapComments(contents) {
32
32
  return mapHelpers.removeMapFileComments(mapHelpers.removeComments(contents)).replace(/\n\n$/, "\n");
33
33
  }
@@ -278,10 +278,10 @@ var Cache = class {
278
278
  }
279
279
  };
280
280
 
281
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file_loader.mjs
281
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file_loader.mjs
282
282
  import mapHelpers2 from "convert-source-map";
283
283
 
284
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/content_origin.mjs
284
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/content_origin.mjs
285
285
  var ContentOrigin;
286
286
  (function(ContentOrigin2) {
287
287
  ContentOrigin2[ContentOrigin2["Provided"] = 0] = "Provided";
@@ -289,7 +289,7 @@ var ContentOrigin;
289
289
  ContentOrigin2[ContentOrigin2["FileSystem"] = 2] = "FileSystem";
290
290
  })(ContentOrigin || (ContentOrigin = {}));
291
291
 
292
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file_loader.mjs
292
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file_loader.mjs
293
293
  var SCHEME_MATCHER = /^([a-z][a-z0-9.-]*):\/\//i;
294
294
  var SourceFileLoader = class {
295
295
  constructor(fs, logger, schemeMap) {
@@ -419,4 +419,4 @@ export {
419
419
  * Use of this source code is governed by an MIT-style license that can be
420
420
  * found in the LICENSE file at https://angular.io/license
421
421
  */
422
- //# sourceMappingURL=chunk-WR7TUJ7M.js.map
422
+ //# sourceMappingURL=chunk-QYV344EV.js.map
@@ -12,12 +12,12 @@ import {
12
12
  resolve,
13
13
  stripExtension,
14
14
  toRelativeImport
15
- } from "./chunk-XNL3EK5H.js";
15
+ } from "./chunk-3W345P4E.js";
16
16
 
17
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
17
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
18
18
  import ts from "typescript";
19
19
 
20
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
20
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
21
21
  var ErrorCode;
22
22
  (function(ErrorCode2) {
23
23
  ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
@@ -88,6 +88,9 @@ var ErrorCode;
88
88
  ErrorCode2[ErrorCode2["DEFERRED_PIPE_USED_EAGERLY"] = 8012] = "DEFERRED_PIPE_USED_EAGERLY";
89
89
  ErrorCode2[ErrorCode2["DEFERRED_DIRECTIVE_USED_EAGERLY"] = 8013] = "DEFERRED_DIRECTIVE_USED_EAGERLY";
90
90
  ErrorCode2[ErrorCode2["DEFERRED_DEPENDENCY_IMPORTED_EAGERLY"] = 8014] = "DEFERRED_DEPENDENCY_IMPORTED_EAGERLY";
91
+ ErrorCode2[ErrorCode2["ILLEGAL_LET_WRITE"] = 8015] = "ILLEGAL_LET_WRITE";
92
+ ErrorCode2[ErrorCode2["LET_USED_BEFORE_DEFINITION"] = 8016] = "LET_USED_BEFORE_DEFINITION";
93
+ ErrorCode2[ErrorCode2["DUPLICATE_LET_DECLARATION"] = 8017] = "DUPLICATE_LET_DECLARATION";
91
94
  ErrorCode2[ErrorCode2["INVALID_BANANA_IN_BOX"] = 8101] = "INVALID_BANANA_IN_BOX";
92
95
  ErrorCode2[ErrorCode2["NULLISH_COALESCING_NOT_NULLABLE"] = 8102] = "NULLISH_COALESCING_NOT_NULLABLE";
93
96
  ErrorCode2[ErrorCode2["MISSING_CONTROL_FLOW_DIRECTIVE"] = 8103] = "MISSING_CONTROL_FLOW_DIRECTIVE";
@@ -107,7 +110,7 @@ var ErrorCode;
107
110
  ErrorCode2[ErrorCode2["LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION"] = 11003] = "LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION";
108
111
  })(ErrorCode || (ErrorCode = {}));
109
112
 
110
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
113
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
111
114
  var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
112
115
  function replaceTsWithNgInErrors(errors) {
113
116
  return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
@@ -116,7 +119,7 @@ function ngErrorCode(code) {
116
119
  return parseInt("-99" + code);
117
120
  }
118
121
 
119
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
122
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
120
123
  var FatalDiagnosticError = class extends Error {
121
124
  constructor(code, node, diagnosticMessage, relatedInformation) {
122
125
  super(`FatalDiagnosticError: Code: ${code}, Message: ${ts.flattenDiagnosticMessageText(diagnosticMessage, "\n")}`);
@@ -180,7 +183,7 @@ function isLocalCompilationDiagnostics(diagnostic) {
180
183
  return diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNRESOLVED_CONST) || diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION);
181
184
  }
182
185
 
183
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
186
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
184
187
  var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
185
188
  ErrorCode.DECORATOR_ARG_NOT_LITERAL,
186
189
  ErrorCode.IMPORT_CYCLE_DETECTED,
@@ -192,10 +195,10 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
192
195
  ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
193
196
  ]);
194
197
 
195
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
198
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
196
199
  var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.dev/errors";
197
200
 
198
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
201
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
199
202
  var ExtendedTemplateDiagnosticName;
200
203
  (function(ExtendedTemplateDiagnosticName2) {
201
204
  ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
@@ -210,10 +213,10 @@ var ExtendedTemplateDiagnosticName;
210
213
  ExtendedTemplateDiagnosticName2["CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION"] = "controlFlowPreventingContentProjection";
211
214
  })(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
212
215
 
213
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
216
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
214
217
  import ts5 from "typescript";
215
218
 
216
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
219
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
217
220
  import ts2 from "typescript";
218
221
  function isDecoratorIdentifier(exp) {
219
222
  return ts2.isIdentifier(exp) || ts2.isPropertyAccessExpression(exp) && ts2.isIdentifier(exp.expression) && ts2.isIdentifier(exp.name);
@@ -236,7 +239,7 @@ var ClassMemberAccessLevel;
236
239
  })(ClassMemberAccessLevel || (ClassMemberAccessLevel = {}));
237
240
  var AmbientImport = {};
238
241
 
239
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
242
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
240
243
  import ts3 from "typescript";
241
244
  function typeToValue(typeNode, checker, isLocalCompilation) {
242
245
  var _a, _b;
@@ -409,7 +412,7 @@ function extractModuleName(node) {
409
412
  return node.moduleSpecifier.text;
410
413
  }
411
414
 
412
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
415
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
413
416
  import ts4 from "typescript";
414
417
  function isNamedClassDeclaration(node) {
415
418
  return ts4.isClassDeclaration(node) && isIdentifier(node.name);
@@ -433,7 +436,7 @@ function classMemberAccessLevelToString(level) {
433
436
  }
434
437
  }
435
438
 
436
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
439
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
437
440
  var TypeScriptReflectionHost = class {
438
441
  constructor(checker, isLocalCompilation = false) {
439
442
  this.checker = checker;
@@ -921,7 +924,7 @@ function getExportedName(decl, originalId) {
921
924
  }
922
925
  var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
923
926
 
924
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
927
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
925
928
  import ts6 from "typescript";
926
929
  var TS = /\.tsx?$/i;
927
930
  var D_TS = /\.d\.ts$/i;
@@ -1022,7 +1025,7 @@ function toUnredirectedSourceFile(sf) {
1022
1025
  return redirectInfo.unredirected;
1023
1026
  }
1024
1027
 
1025
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
1028
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
1026
1029
  var Reference = class {
1027
1030
  constructor(node, bestGuessOwningModule = null) {
1028
1031
  this.node = node;
@@ -1091,14 +1094,14 @@ var Reference = class {
1091
1094
  }
1092
1095
  };
1093
1096
 
1094
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
1097
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
1095
1098
  import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
1096
1099
 
1097
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
1100
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
1098
1101
  import { ExternalExpr, ExternalReference, WrappedNodeExpr } from "@angular/compiler";
1099
1102
  import ts7 from "typescript";
1100
1103
 
1101
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
1104
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
1102
1105
  function findExportedNameOfNode(target, file, reflector) {
1103
1106
  const exports = reflector.getExportsOfModule(file);
1104
1107
  if (exports === null) {
@@ -1118,7 +1121,7 @@ function findExportedNameOfNode(target, file, reflector) {
1118
1121
  return foundExportName;
1119
1122
  }
1120
1123
 
1121
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
1124
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
1122
1125
  var ImportFlags;
1123
1126
  (function(ImportFlags2) {
1124
1127
  ImportFlags2[ImportFlags2["None"] = 0] = "None";
@@ -1349,7 +1352,7 @@ var UnifiedModulesStrategy = class {
1349
1352
  }
1350
1353
  };
1351
1354
 
1352
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
1355
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
1353
1356
  var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
1354
1357
  var UnifiedModulesAliasingHost = class {
1355
1358
  constructor(unifiedModulesHost) {
@@ -1416,7 +1419,7 @@ var AliasStrategy = class {
1416
1419
  }
1417
1420
  };
1418
1421
 
1419
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
1422
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
1420
1423
  function relativePathBetween(from, to) {
1421
1424
  const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
1422
1425
  return relativePath !== "" ? toRelativeImport(relativePath) : null;
@@ -1425,7 +1428,7 @@ function normalizeSeparators(path) {
1425
1428
  return path.replace(/\\/g, "/");
1426
1429
  }
1427
1430
 
1428
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
1431
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
1429
1432
  var NoopImportRewriter = class {
1430
1433
  rewriteSymbol(symbol, specifier) {
1431
1434
  return symbol;
@@ -1478,7 +1481,7 @@ function validateAndRewriteCoreSymbol(name) {
1478
1481
  return CORE_SUPPORTED_SYMBOLS.get(name);
1479
1482
  }
1480
1483
 
1481
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
1484
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
1482
1485
  import ts8 from "typescript";
1483
1486
  var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
1484
1487
  function loadIsReferencedAliasDeclarationPatch(context) {
@@ -1513,7 +1516,7 @@ function throwIncompatibleTransformationContextError() {
1513
1516
  throw Error("Angular compiler is incompatible with this version of the TypeScript compiler.\n\nIf you recently updated TypeScript and this issue surfaces now, consider downgrading.\n\nPlease report an issue on the Angular repositories when this issue surfaces and you are using a supposedly compatible TypeScript version.");
1514
1517
  }
1515
1518
 
1516
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
1519
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
1517
1520
  var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
1518
1521
  function attachDefaultImportDeclaration(expr, importDecl) {
1519
1522
  expr[DefaultImportDeclaration] = importDecl;
@@ -1554,7 +1557,7 @@ var DefaultImportTracker = class {
1554
1557
  }
1555
1558
  };
1556
1559
 
1557
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
1560
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
1558
1561
  import ts9 from "typescript";
1559
1562
  var AssumeEager = "AssumeEager";
1560
1563
  var DeferredSymbolTracker = class {
@@ -1675,7 +1678,7 @@ var DeferredSymbolTracker = class {
1675
1678
  }
1676
1679
  };
1677
1680
 
1678
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/imported_symbols_tracker.mjs
1681
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/imported_symbols_tracker.mjs
1679
1682
  import ts10 from "typescript";
1680
1683
  var ImportedSymbolsTracker = class {
1681
1684
  constructor() {
@@ -1745,7 +1748,7 @@ var ImportedSymbolsTracker = class {
1745
1748
  }
1746
1749
  };
1747
1750
 
1748
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/local_compilation_extra_imports_tracker.mjs
1751
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/local_compilation_extra_imports_tracker.mjs
1749
1752
  import ts11 from "typescript";
1750
1753
  var LocalCompilationExtraImportsTracker = class {
1751
1754
  constructor(typeChecker) {
@@ -1789,7 +1792,7 @@ function removeQuotations(s) {
1789
1792
  return s.substring(1, s.length - 1).trim();
1790
1793
  }
1791
1794
 
1792
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
1795
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
1793
1796
  var ModuleResolver = class {
1794
1797
  constructor(program, compilerOptions, host, moduleResolutionCache) {
1795
1798
  this.program = program;
@@ -1806,10 +1809,10 @@ var ModuleResolver = class {
1806
1809
  }
1807
1810
  };
1808
1811
 
1809
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
1812
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
1810
1813
  import ts16 from "typescript";
1811
1814
 
1812
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/check_unique_identifier_name.mjs
1815
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/check_unique_identifier_name.mjs
1813
1816
  import ts12 from "typescript";
1814
1817
  function createGenerateUniqueIdentifierHelper() {
1815
1818
  const generatedIdentifiers = /* @__PURE__ */ new Set();
@@ -1833,7 +1836,7 @@ function createGenerateUniqueIdentifierHelper() {
1833
1836
  };
1834
1837
  }
1835
1838
 
1836
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_typescript_transform.mjs
1839
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_typescript_transform.mjs
1837
1840
  import ts13 from "typescript";
1838
1841
  function createTsTransformForImportManager(manager, extraStatementsForFiles) {
1839
1842
  return (ctx) => {
@@ -1894,7 +1897,7 @@ function isImportStatement(stmt) {
1894
1897
  return ts13.isImportDeclaration(stmt) || ts13.isImportEqualsDeclaration(stmt) || ts13.isNamespaceImport(stmt);
1895
1898
  }
1896
1899
 
1897
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_generated_imports.mjs
1900
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_generated_imports.mjs
1898
1901
  import ts14 from "typescript";
1899
1902
  function attemptToReuseGeneratedImports(tracker, request) {
1900
1903
  const requestHash = hashImportRequest(request);
@@ -1921,7 +1924,7 @@ function hashImportRequest(req) {
1921
1924
  return `${req.requestedFile.fileName}:${req.exportModuleSpecifier}:${req.exportSymbolName}`;
1922
1925
  }
1923
1926
 
1924
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_source_file_imports.mjs
1927
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_source_file_imports.mjs
1925
1928
  import ts15 from "typescript";
1926
1929
  function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
1927
1930
  let candidateImportToBeUpdated = null;
@@ -1974,7 +1977,7 @@ function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
1974
1977
  return fileUniqueAlias != null ? fileUniqueAlias : propertyName;
1975
1978
  }
1976
1979
 
1977
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
1980
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
1978
1981
  var presetImportManagerForceNamespaceImports = {
1979
1982
  disableOriginalSourceFileReuse: true,
1980
1983
  forceGenerateNamespacesForNewImports: true
@@ -2124,7 +2127,7 @@ function createImportReference(asTypeReference, ref) {
2124
2127
  }
2125
2128
  }
2126
2129
 
2127
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
2130
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
2128
2131
  var Context = class {
2129
2132
  constructor(isStatement) {
2130
2133
  this.isStatement = isStatement;
@@ -2137,7 +2140,7 @@ var Context = class {
2137
2140
  }
2138
2141
  };
2139
2142
 
2140
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
2143
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
2141
2144
  import * as o from "@angular/compiler";
2142
2145
  var UNARY_OPERATORS = /* @__PURE__ */ new Map([
2143
2146
  [o.UnaryOperator.Minus, "-"],
@@ -2383,7 +2386,7 @@ function createRange(span) {
2383
2386
  };
2384
2387
  }
2385
2388
 
2386
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
2389
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
2387
2390
  import ts17 from "typescript";
2388
2391
  var INELIGIBLE = {};
2389
2392
  function canEmitType(type, canEmit) {
@@ -2458,11 +2461,11 @@ var TypeEmitter = class {
2458
2461
  }
2459
2462
  };
2460
2463
 
2461
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2464
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2462
2465
  import * as o2 from "@angular/compiler";
2463
2466
  import ts19 from "typescript";
2464
2467
 
2465
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
2468
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
2466
2469
  import ts18 from "typescript";
2467
2470
  function tsNumericExpression(value) {
2468
2471
  if (value < 0) {
@@ -2472,7 +2475,7 @@ function tsNumericExpression(value) {
2472
2475
  return ts18.factory.createNumericLiteral(value);
2473
2476
  }
2474
2477
 
2475
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2478
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2476
2479
  function translateType(type, contextFile, reflector, refEmitter, imports) {
2477
2480
  return type.visitType(new TypeTranslatorVisitor(imports, contextFile, reflector, refEmitter), new Context(false));
2478
2481
  }
@@ -2689,7 +2692,7 @@ var TypeTranslatorVisitor = class {
2689
2692
  }
2690
2693
  };
2691
2694
 
2692
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
2695
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
2693
2696
  import ts20 from "typescript";
2694
2697
  var PureAnnotation;
2695
2698
  (function(PureAnnotation2) {
@@ -2892,7 +2895,7 @@ function attachComments(statement, leadingComments) {
2892
2895
  }
2893
2896
  }
2894
2897
 
2895
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
2898
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
2896
2899
  function translateExpression(contextFile, expression, imports, options = {}) {
2897
2900
  return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, contextFile, options), new Context(false));
2898
2901
  }
@@ -2989,4 +2992,4 @@ export {
2989
2992
  * Use of this source code is governed by an MIT-style license that can be
2990
2993
  * found in the LICENSE file at https://angular.io/license
2991
2994
  */
2992
- //# sourceMappingURL=chunk-TPUY2KMQ.js.map
2995
+ //# sourceMappingURL=chunk-RZ7P6VD7.js.map