@angular/compiler-cli 19.2.0 → 19.2.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 (64) hide show
  1. package/bundles/{chunk-STORTTKY.js → chunk-37JMVF7H.js} +8 -8
  2. package/bundles/{chunk-5UDS2TPQ.js → chunk-77D5CI2U.js} +7 -7
  3. package/bundles/{chunk-GBKXY6BH.js → chunk-FKXFEX7K.js} +3 -3
  4. package/bundles/{chunk-RNO4EXM5.js → chunk-J7S5XIBF.js} +31 -31
  5. package/bundles/{chunk-VAZZGFGP.js → chunk-K42X3AUZ.js} +12 -12
  6. package/bundles/{chunk-KOIBHR3X.js → chunk-OZ2WSYWM.js} +42 -42
  7. package/bundles/{chunk-I6R3GL3L.js → chunk-Q2WE7ECN.js} +5 -5
  8. package/bundles/{chunk-J43IYRBM.js → chunk-RPCYQIAM.js} +330 -316
  9. package/bundles/chunk-RPCYQIAM.js.map +6 -0
  10. package/bundles/{chunk-S2PFGODW.js → chunk-SBXBXYBO.js} +5 -5
  11. package/bundles/{chunk-ZBHF2MOM.js → chunk-ZOCNWS5F.js} +288 -256
  12. package/bundles/chunk-ZOCNWS5F.js.map +6 -0
  13. package/bundles/{chunk-TFVEDCQN.js → chunk-ZQNXTHLJ.js} +3 -3
  14. package/bundles/index.js +12 -12
  15. package/bundles/linker/babel/index.js +12 -12
  16. package/bundles/linker/index.js +4 -4
  17. package/bundles/ngcc/index.js +1 -1
  18. package/bundles/private/bazel.js +1 -1
  19. package/bundles/private/localize.js +3 -3
  20. package/bundles/private/migrations.js +6 -6
  21. package/bundles/private/tooling.js +6 -6
  22. package/bundles/src/bin/ng_xi18n.js +10 -10
  23. package/bundles/src/bin/ngc.js +8 -8
  24. package/bundles_metadata.json +1 -1
  25. package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
  26. package/package.json +2 -2
  27. package/private/migrations.d.ts +1 -1
  28. package/src/ngtsc/annotations/common/src/evaluation.d.ts +1 -1
  29. package/src/ngtsc/annotations/common/src/util.d.ts +19 -2
  30. package/src/ngtsc/annotations/component/src/metadata.d.ts +2 -2
  31. package/src/ngtsc/annotations/component/src/resources.d.ts +2 -2
  32. package/src/ngtsc/annotations/index.d.ts +1 -1
  33. package/src/ngtsc/core/api/src/options.d.ts +8 -0
  34. package/src/ngtsc/core/src/compiler.d.ts +3 -3
  35. package/src/ngtsc/docs/src/function_extractor.d.ts +1 -1
  36. package/src/ngtsc/hmr/src/update_declaration.d.ts +3 -2
  37. package/src/ngtsc/metadata/index.d.ts +1 -1
  38. package/src/ngtsc/metadata/src/resource_registry.d.ts +9 -8
  39. package/src/ngtsc/typecheck/api/api.d.ts +22 -24
  40. package/src/ngtsc/typecheck/api/checker.d.ts +3 -3
  41. package/src/ngtsc/typecheck/api/context.d.ts +26 -17
  42. package/src/ngtsc/typecheck/diagnostics/src/diagnostic.d.ts +2 -2
  43. package/src/ngtsc/typecheck/diagnostics/src/id.d.ts +2 -2
  44. package/src/ngtsc/typecheck/src/checker.d.ts +6 -6
  45. package/src/ngtsc/typecheck/src/completion.d.ts +2 -2
  46. package/src/ngtsc/typecheck/src/context.d.ts +24 -26
  47. package/src/ngtsc/typecheck/src/diagnostics.d.ts +5 -5
  48. package/src/ngtsc/typecheck/src/dom.d.ts +5 -5
  49. package/src/ngtsc/typecheck/src/oob.d.ts +41 -45
  50. package/src/ngtsc/typecheck/src/source.d.ts +11 -11
  51. package/src/ngtsc/typecheck/src/tcb_util.d.ts +15 -15
  52. package/src/ngtsc/typecheck/src/template_symbol_builder.d.ts +3 -3
  53. package/src/ngtsc/typecheck/src/type_check_block.d.ts +3 -3
  54. package/bundles/chunk-J43IYRBM.js.map +0 -6
  55. package/bundles/chunk-ZBHF2MOM.js.map +0 -6
  56. /package/bundles/{chunk-STORTTKY.js.map → chunk-37JMVF7H.js.map} +0 -0
  57. /package/bundles/{chunk-5UDS2TPQ.js.map → chunk-77D5CI2U.js.map} +0 -0
  58. /package/bundles/{chunk-GBKXY6BH.js.map → chunk-FKXFEX7K.js.map} +0 -0
  59. /package/bundles/{chunk-RNO4EXM5.js.map → chunk-J7S5XIBF.js.map} +0 -0
  60. /package/bundles/{chunk-VAZZGFGP.js.map → chunk-K42X3AUZ.js.map} +0 -0
  61. /package/bundles/{chunk-KOIBHR3X.js.map → chunk-OZ2WSYWM.js.map} +0 -0
  62. /package/bundles/{chunk-I6R3GL3L.js.map → chunk-Q2WE7ECN.js.map} +0 -0
  63. /package/bundles/{chunk-S2PFGODW.js.map → chunk-SBXBXYBO.js.map} +0 -0
  64. /package/bundles/{chunk-TFVEDCQN.js.map → chunk-ZQNXTHLJ.js.map} +0 -0
@@ -48,23 +48,23 @@ import {
48
48
  translateStatement,
49
49
  translateType,
50
50
  typeNodeToValueExpr
51
- } from "./chunk-KOIBHR3X.js";
51
+ } from "./chunk-OZ2WSYWM.js";
52
52
  import {
53
53
  PerfCheckpoint,
54
54
  PerfEvent,
55
55
  PerfPhase
56
- } from "./chunk-I6R3GL3L.js";
56
+ } from "./chunk-Q2WE7ECN.js";
57
57
  import {
58
58
  absoluteFrom,
59
59
  absoluteFromSourceFile,
60
60
  getSourceFileOrError,
61
61
  relative
62
- } from "./chunk-STORTTKY.js";
62
+ } from "./chunk-37JMVF7H.js";
63
63
  import {
64
64
  __publicField
65
65
  } from "./chunk-KPQ72R34.js";
66
66
 
67
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
67
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
68
68
  import { ExternalExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr } from "@angular/compiler";
69
69
  import ts from "typescript";
70
70
  var CORE_MODULE = "@angular/core";
@@ -103,8 +103,9 @@ function toR3Reference(origin, ref, context, refEmitter) {
103
103
  function isAngularCore(decorator) {
104
104
  return decorator.import !== null && decorator.import.from === CORE_MODULE;
105
105
  }
106
- function isAngularCoreReference(reference, symbolName) {
107
- return reference.ownedByModuleGuess === CORE_MODULE && reference.debugName === symbolName;
106
+ function isAngularCoreReferenceWithPotentialAliasing(reference, symbolName, isCore) {
107
+ var _a;
108
+ return (reference.ownedByModuleGuess === CORE_MODULE || isCore) && ((_a = reference.debugName) == null ? void 0 : _a.replace(/\$\d+$/, "")) === symbolName;
108
109
  }
109
110
  function findAngularDecorator(decorators, name, isCore) {
110
111
  return decorators.find((decorator) => isAngularDecorator(decorator, name, isCore));
@@ -171,17 +172,19 @@ function tryUnwrapForwardRef(node, reflector) {
171
172
  }
172
173
  return expr;
173
174
  }
174
- var forwardRefResolver = (fn, callExpr, resolve, unresolvable) => {
175
- if (!isAngularCoreReference(fn, "forwardRef") || callExpr.arguments.length !== 1) {
176
- return unresolvable;
177
- }
178
- const expanded = expandForwardRef(callExpr.arguments[0]);
179
- if (expanded !== null) {
180
- return resolve(expanded);
181
- } else {
182
- return unresolvable;
183
- }
184
- };
175
+ function createForwardRefResolver(isCore) {
176
+ return (fn, callExpr, resolve, unresolvable) => {
177
+ if (!isAngularCoreReferenceWithPotentialAliasing(fn, "forwardRef", isCore) || callExpr.arguments.length !== 1) {
178
+ return unresolvable;
179
+ }
180
+ const expanded = expandForwardRef(callExpr.arguments[0]);
181
+ if (expanded !== null) {
182
+ return resolve(expanded);
183
+ } else {
184
+ return unresolvable;
185
+ }
186
+ };
187
+ }
185
188
  function combineResolvers(resolvers) {
186
189
  return (fn, callExpr, resolve, unresolvable) => {
187
190
  for (const resolver of resolvers) {
@@ -326,7 +329,7 @@ function isAbstractClassDeclaration(clazz) {
326
329
  return ts.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === ts.SyntaxKind.AbstractKeyword) : false;
327
330
  }
328
331
 
329
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
332
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
330
333
  var DynamicValue = class {
331
334
  node;
332
335
  reason;
@@ -419,10 +422,10 @@ var DynamicValue = class {
419
422
  }
420
423
  };
421
424
 
422
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
425
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
423
426
  import ts2 from "typescript";
424
427
 
425
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
428
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
426
429
  var ResolvedModule = class {
427
430
  exports;
428
431
  evaluate;
@@ -457,7 +460,7 @@ var EnumValue = class {
457
460
  var KnownFn = class {
458
461
  };
459
462
 
460
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
463
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
461
464
  var ArraySliceBuiltinFn = class extends KnownFn {
462
465
  lhs;
463
466
  constructor(lhs) {
@@ -512,7 +515,7 @@ var StringConcatBuiltinFn = class extends KnownFn {
512
515
  }
513
516
  };
514
517
 
515
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
518
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
516
519
  var SyntheticValue = class {
517
520
  value;
518
521
  constructor(value) {
@@ -520,7 +523,7 @@ var SyntheticValue = class {
520
523
  }
521
524
  };
522
525
 
523
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
526
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
524
527
  function literalBinaryOp(op) {
525
528
  return { op, literal: true };
526
529
  }
@@ -1101,7 +1104,7 @@ function owningModule(context, override = null) {
1101
1104
  }
1102
1105
  }
1103
1106
 
1104
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
1107
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
1105
1108
  var PartialEvaluator = class {
1106
1109
  host;
1107
1110
  checker;
@@ -1124,7 +1127,7 @@ var PartialEvaluator = class {
1124
1127
  }
1125
1128
  };
1126
1129
 
1127
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
1130
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
1128
1131
  import ts3 from "typescript";
1129
1132
  function describeResolvedType(value, maxDepth = 1) {
1130
1133
  var _a, _b;
@@ -1259,14 +1262,14 @@ function getContainerNode(node) {
1259
1262
  return node.getSourceFile();
1260
1263
  }
1261
1264
 
1262
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
1265
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
1263
1266
  var OptimizeFor;
1264
1267
  (function(OptimizeFor2) {
1265
1268
  OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
1266
1269
  OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
1267
1270
  })(OptimizeFor || (OptimizeFor = {}));
1268
1271
 
1269
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
1272
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
1270
1273
  var PotentialImportKind;
1271
1274
  (function(PotentialImportKind2) {
1272
1275
  PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
@@ -1278,7 +1281,7 @@ var PotentialImportMode;
1278
1281
  PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
1279
1282
  })(PotentialImportMode || (PotentialImportMode = {}));
1280
1283
 
1281
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
1284
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
1282
1285
  var CompletionKind;
1283
1286
  (function(CompletionKind2) {
1284
1287
  CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
@@ -1286,7 +1289,7 @@ var CompletionKind;
1286
1289
  CompletionKind2[CompletionKind2["LetDeclaration"] = 2] = "LetDeclaration";
1287
1290
  })(CompletionKind || (CompletionKind = {}));
1288
1291
 
1289
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
1292
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
1290
1293
  var SymbolKind;
1291
1294
  (function(SymbolKind2) {
1292
1295
  SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
@@ -1303,7 +1306,7 @@ var SymbolKind;
1303
1306
  SymbolKind2[SymbolKind2["LetDeclaration"] = 11] = "LetDeclaration";
1304
1307
  })(SymbolKind || (SymbolKind = {}));
1305
1308
 
1306
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
1309
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
1307
1310
  import { LiteralExpr, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
1308
1311
  import ts4 from "typescript";
1309
1312
  function getConstructorDependencies(clazz, reflector, isCore) {
@@ -1449,10 +1452,10 @@ function createUnsuitableInjectionTokenError(clazz, error) {
1449
1452
  return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
1450
1453
  }
1451
1454
 
1452
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
1455
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
1453
1456
  import ts12 from "typescript";
1454
1457
 
1455
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
1458
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
1456
1459
  var MetaKind;
1457
1460
  (function(MetaKind2) {
1458
1461
  MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
@@ -1465,10 +1468,10 @@ var MatchSource;
1465
1468
  MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
1466
1469
  })(MatchSource || (MatchSource = {}));
1467
1470
 
1468
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1471
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1469
1472
  import ts6 from "typescript";
1470
1473
 
1471
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
1474
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
1472
1475
  var ClassPropertyMapping = class {
1473
1476
  forwardMap;
1474
1477
  reverseMap;
@@ -1550,7 +1553,7 @@ function reverseMapFromForwardMap(forwardMap) {
1550
1553
  return reverseMap;
1551
1554
  }
1552
1555
 
1553
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
1556
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
1554
1557
  import ts5 from "typescript";
1555
1558
  function extractReferencesFromType(checker, def, bestGuessOwningModule) {
1556
1559
  if (!ts5.isTupleTypeNode(def)) {
@@ -1766,7 +1769,7 @@ function isHostDirectiveMetaForGlobalMode(hostDirectiveMeta) {
1766
1769
  return hostDirectiveMeta.directive instanceof Reference;
1767
1770
  }
1768
1771
 
1769
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1772
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1770
1773
  var DtsMetadataReader = class {
1771
1774
  checker;
1772
1775
  reflector;
@@ -1965,7 +1968,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
1965
1968
  return result.length > 0 ? { result, isIncomplete } : null;
1966
1969
  }
1967
1970
 
1968
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
1971
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
1969
1972
  function flattenInheritedDirectiveMetadata(reader, dir) {
1970
1973
  const topMeta = reader.getDirectiveMetadata(dir);
1971
1974
  if (topMeta === null) {
@@ -2029,7 +2032,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
2029
2032
  };
2030
2033
  }
2031
2034
 
2032
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
2035
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
2033
2036
  var LocalMetadataRegistry = class {
2034
2037
  directives = /* @__PURE__ */ new Map();
2035
2038
  ngModules = /* @__PURE__ */ new Map();
@@ -2085,7 +2088,7 @@ var CompoundMetadataRegistry = class {
2085
2088
  }
2086
2089
  };
2087
2090
 
2088
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
2091
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
2089
2092
  var ResourceRegistry = class {
2090
2093
  externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
2091
2094
  componentToTemplateMap = /* @__PURE__ */ new Map();
@@ -2097,12 +2100,14 @@ var ResourceRegistry = class {
2097
2100
  }
2098
2101
  return this.externalTemplateToComponentsMap.get(template);
2099
2102
  }
2100
- registerResources(resources, component) {
2103
+ registerResources(resources, directive) {
2101
2104
  if (resources.template !== null) {
2102
- this.registerTemplate(resources.template, component);
2105
+ this.registerTemplate(resources.template, directive);
2103
2106
  }
2104
- for (const style of resources.styles) {
2105
- this.registerStyle(style, component);
2107
+ if (resources.styles !== null) {
2108
+ for (const style of resources.styles) {
2109
+ this.registerStyle(style, directive);
2110
+ }
2106
2111
  }
2107
2112
  }
2108
2113
  registerTemplate(templateResource, component) {
@@ -2148,7 +2153,7 @@ var ResourceRegistry = class {
2148
2153
  }
2149
2154
  };
2150
2155
 
2151
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
2156
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
2152
2157
  var ExportedProviderStatusResolver = class {
2153
2158
  metaReader;
2154
2159
  calculating = /* @__PURE__ */ new Set();
@@ -2193,7 +2198,7 @@ var ExportedProviderStatusResolver = class {
2193
2198
  }
2194
2199
  };
2195
2200
 
2196
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
2201
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
2197
2202
  var EMPTY_ARRAY = [];
2198
2203
  var HostDirectivesResolver = class {
2199
2204
  metaReader;
@@ -2260,7 +2265,7 @@ function resolveOutput(bindingName) {
2260
2265
  return bindingName;
2261
2266
  }
2262
2267
 
2263
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
2268
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
2264
2269
  var CompilationMode;
2265
2270
  (function(CompilationMode2) {
2266
2271
  CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
@@ -2274,7 +2279,7 @@ var HandlerPrecedence;
2274
2279
  HandlerPrecedence2[HandlerPrecedence2["WEAK"] = 2] = "WEAK";
2275
2280
  })(HandlerPrecedence || (HandlerPrecedence = {}));
2276
2281
 
2277
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
2282
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
2278
2283
  import ts7 from "typescript";
2279
2284
  function aliasTransformFactory(exportStatements) {
2280
2285
  return () => {
@@ -2299,10 +2304,10 @@ function aliasTransformFactory(exportStatements) {
2299
2304
  };
2300
2305
  }
2301
2306
 
2302
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
2307
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
2303
2308
  import ts8 from "typescript";
2304
2309
 
2305
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
2310
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
2306
2311
  var TraitState;
2307
2312
  (function(TraitState2) {
2308
2313
  TraitState2[TraitState2["Pending"] = 0] = "Pending";
@@ -2361,7 +2366,7 @@ var TraitImpl = class {
2361
2366
  }
2362
2367
  };
2363
2368
 
2364
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
2369
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
2365
2370
  var TraitCompiler = class {
2366
2371
  handlers;
2367
2372
  reflector;
@@ -2842,7 +2847,7 @@ function containsErrors(diagnostics) {
2842
2847
  return diagnostics !== null && diagnostics.some((diag) => diag.category === ts8.DiagnosticCategory.Error);
2843
2848
  }
2844
2849
 
2845
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
2850
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
2846
2851
  import ts9 from "typescript";
2847
2852
  var DtsTransformRegistry = class {
2848
2853
  ivyDeclarationTransforms = /* @__PURE__ */ new Map();
@@ -2992,11 +2997,11 @@ function markForEmitAsSingleLine(node) {
2992
2997
  ts9.forEachChild(node, markForEmitAsSingleLine);
2993
2998
  }
2994
2999
 
2995
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
3000
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
2996
3001
  import { ConstantPool } from "@angular/compiler";
2997
3002
  import ts11 from "typescript";
2998
3003
 
2999
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
3004
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
3000
3005
  import ts10 from "typescript";
3001
3006
  function visit(node, visitor, context) {
3002
3007
  return visitor._visit(node, context);
@@ -3055,7 +3060,7 @@ var Visitor = class {
3055
3060
  }
3056
3061
  };
3057
3062
 
3058
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
3063
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
3059
3064
  var NO_DECORATORS = /* @__PURE__ */ new Set();
3060
3065
  var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
3061
3066
  function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, localCompilationExtraImportsTracker, perf, isCore, isClosureCompilerEnabled) {
@@ -3301,7 +3306,7 @@ function nodeArrayFromDecoratorsArray(decorators) {
3301
3306
  return array;
3302
3307
  }
3303
3308
 
3304
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
3309
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
3305
3310
  function makeDuplicateDeclarationError(node, data, kind) {
3306
3311
  const context = [];
3307
3312
  for (const decl of data) {
@@ -3510,15 +3515,15 @@ function assertLocalCompilationUnresolvedConst(compilationMode, value, nodeToHig
3510
3515
  }
3511
3516
  }
3512
3517
 
3513
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
3518
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
3514
3519
  import { ViewEncapsulation } from "@angular/compiler";
3515
3520
  import ts13 from "typescript";
3516
- function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
3521
+ function resolveEnumValue(evaluator, metadata, field, enumSymbolName, isCore) {
3517
3522
  let resolved = null;
3518
3523
  if (metadata.has(field)) {
3519
3524
  const expr = metadata.get(field);
3520
3525
  const value = evaluator.evaluate(expr);
3521
- if (value instanceof EnumValue && isAngularCoreReference(value.enumRef, enumSymbolName)) {
3526
+ if (value instanceof EnumValue && isAngularCoreReferenceWithPotentialAliasing(value.enumRef, enumSymbolName, isCore)) {
3522
3527
  resolved = value.resolved;
3523
3528
  } else {
3524
3529
  throw createValueHasWrongTypeError(expr, value, `${field} must be a member of ${enumSymbolName} enum from @angular/core`);
@@ -3561,7 +3566,7 @@ function resolveLiteral(decorator, literalCache) {
3561
3566
  return meta;
3562
3567
  }
3563
3568
 
3564
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
3569
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
3565
3570
  import { compileDeclareFactoryFunction, compileFactoryFunction } from "@angular/compiler";
3566
3571
  function compileNgFactoryDefField(metadata) {
3567
3572
  const res = compileFactoryFunction(metadata);
@@ -3584,7 +3589,7 @@ function compileDeclareFactory(metadata) {
3584
3589
  };
3585
3590
  }
3586
3591
 
3587
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
3592
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
3588
3593
  var InjectableClassRegistry = class {
3589
3594
  host;
3590
3595
  isCore;
@@ -3612,7 +3617,7 @@ var InjectableClassRegistry = class {
3612
3617
  }
3613
3618
  };
3614
3619
 
3615
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
3620
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
3616
3621
  import { ArrowFunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
3617
3622
  import ts14 from "typescript";
3618
3623
  function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
@@ -3699,7 +3704,7 @@ function removeIdentifierReferences(node, names) {
3699
3704
  return result.transformed[0];
3700
3705
  }
3701
3706
 
3702
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/debug_info.mjs
3707
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/debug_info.mjs
3703
3708
  import { literal as literal2, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
3704
3709
  function extractClassDebugInfo(clazz, reflection, compilerHost, rootDirs, forbidOrphanRendering) {
3705
3710
  if (!reflection.isClass(clazz)) {
@@ -3716,13 +3721,13 @@ function extractClassDebugInfo(clazz, reflection, compilerHost, rootDirs, forbid
3716
3721
  };
3717
3722
  }
3718
3723
 
3719
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
3724
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
3720
3725
  var NoopReferencesRegistry = class {
3721
3726
  add(source, ...references) {
3722
3727
  }
3723
3728
  };
3724
3729
 
3725
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
3730
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
3726
3731
  import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from "@angular/compiler";
3727
3732
  function extractSchemas(rawExpr, evaluator, context) {
3728
3733
  const schemas = [];
@@ -3752,7 +3757,7 @@ function extractSchemas(rawExpr, evaluator, context) {
3752
3757
  return schemas;
3753
3758
  }
3754
3759
 
3755
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/input_transforms.mjs
3760
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/input_transforms.mjs
3756
3761
  import { outputAst } from "@angular/compiler";
3757
3762
  function compileInputTransformFields(inputs) {
3758
3763
  const extraFields = [];
@@ -3770,16 +3775,16 @@ function compileInputTransformFields(inputs) {
3770
3775
  return extraFields;
3771
3776
  }
3772
3777
 
3773
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/jit_declaration_registry.mjs
3778
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/jit_declaration_registry.mjs
3774
3779
  var JitDeclarationRegistry = class {
3775
3780
  jitDeclarations = /* @__PURE__ */ new Set();
3776
3781
  };
3777
3782
 
3778
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
3783
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
3779
3784
  import { compileClassDebugInfo, compileHmrInitializer, compileComponentClassMetadata, compileComponentDeclareClassMetadata, compileComponentFromMetadata, compileDeclareComponentFromMetadata, compileDeferResolverFunction, ConstantPool as ConstantPool2, CssSelector as CssSelector4, DEFAULT_INTERPOLATION_CONFIG as DEFAULT_INTERPOLATION_CONFIG2, DomElementSchemaRegistry as DomElementSchemaRegistry3, ExternalExpr as ExternalExpr8, FactoryTarget as FactoryTarget3, makeBindingParser as makeBindingParser2, outputAst as o4, R3TargetBinder, R3TemplateDependencyKind, SelectorMatcher as SelectorMatcher3, ViewEncapsulation as ViewEncapsulation2 } from "@angular/compiler";
3780
- import ts47 from "typescript";
3785
+ import ts48 from "typescript";
3781
3786
 
3782
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
3787
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
3783
3788
  import ts15 from "typescript";
3784
3789
  var SemanticSymbol = class {
3785
3790
  decl;
@@ -3798,7 +3803,7 @@ function getSymbolIdentifier(decl) {
3798
3803
  return decl.name.text;
3799
3804
  }
3800
3805
 
3801
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
3806
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
3802
3807
  import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
3803
3808
  var OpaqueSymbol = class extends SemanticSymbol {
3804
3809
  isPublicApiAffected() {
@@ -3940,10 +3945,10 @@ function getImportPath(expr) {
3940
3945
  }
3941
3946
  }
3942
3947
 
3943
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
3948
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
3944
3949
  import ts16 from "typescript";
3945
3950
 
3946
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
3951
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
3947
3952
  function isSymbolEqual(a, b) {
3948
3953
  if (a.decl === b.decl) {
3949
3954
  return true;
@@ -3993,7 +3998,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
3993
3998
  return true;
3994
3999
  }
3995
4000
 
3996
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
4001
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
3997
4002
  function extractSemanticTypeParameters(node) {
3998
4003
  if (!ts16.isClassDeclaration(node) || node.typeParameters === void 0) {
3999
4004
  return null;
@@ -4015,14 +4020,14 @@ function isTypeParameterEqual(a, b) {
4015
4020
  return a.hasGenericTypeBound === b.hasGenericTypeBound;
4016
4021
  }
4017
4022
 
4018
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
4023
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
4019
4024
  var ComponentScopeKind;
4020
4025
  (function(ComponentScopeKind2) {
4021
4026
  ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
4022
4027
  ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
4023
4028
  })(ComponentScopeKind || (ComponentScopeKind = {}));
4024
4029
 
4025
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
4030
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
4026
4031
  var CompoundComponentScopeReader = class {
4027
4032
  readers;
4028
4033
  constructor(readers) {
@@ -4048,7 +4053,7 @@ var CompoundComponentScopeReader = class {
4048
4053
  }
4049
4054
  };
4050
4055
 
4051
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
4056
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
4052
4057
  var MetadataDtsModuleScopeResolver = class {
4053
4058
  dtsMetaReader;
4054
4059
  aliasingHost;
@@ -4126,11 +4131,11 @@ var MetadataDtsModuleScopeResolver = class {
4126
4131
  }
4127
4132
  };
4128
4133
 
4129
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
4134
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
4130
4135
  import { ExternalExpr as ExternalExpr3 } from "@angular/compiler";
4131
4136
  import ts17 from "typescript";
4132
4137
 
4133
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
4138
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
4134
4139
  function getDiagnosticNode(ref, rawExpr) {
4135
4140
  return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
4136
4141
  }
@@ -4156,7 +4161,7 @@ function makeUnknownComponentDeferredImportDiagnostic(ref, rawExpr) {
4156
4161
  return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_DEFERRED_IMPORT, getDiagnosticNode(ref, rawExpr), `Component deferred imports must be standalone components, directives or pipes.`);
4157
4162
  }
4158
4163
 
4159
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
4164
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
4160
4165
  var IN_PROGRESS_RESOLUTION = {};
4161
4166
  var LocalModuleScopeRegistry = class {
4162
4167
  localReader;
@@ -4515,7 +4520,7 @@ function reexportCollision(module, refA, refB) {
4515
4520
  ]);
4516
4521
  }
4517
4522
 
4518
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
4523
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
4519
4524
  import { CssSelector, SelectorMatcher } from "@angular/compiler";
4520
4525
  import ts18 from "typescript";
4521
4526
  var TypeCheckScopeRegistry = class {
@@ -4599,14 +4604,14 @@ var TypeCheckScopeRegistry = class {
4599
4604
  }
4600
4605
  };
4601
4606
 
4602
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4607
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4603
4608
  import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr6 } from "@angular/compiler";
4604
4609
 
4605
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4610
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4606
4611
  import { createMayBeForwardRefExpression as createMayBeForwardRefExpression2, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, ParserError, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
4607
4612
  import ts22 from "typescript";
4608
4613
 
4609
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/initializer_function_access.mjs
4614
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/initializer_function_access.mjs
4610
4615
  function validateAccessOfInitializerApiMember({ api, call }, member) {
4611
4616
  if (!api.allowedAccessLevels.includes(member.accessLevel)) {
4612
4617
  throw new FatalDiagnosticError(ErrorCode.INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY, call, makeDiagnosticChain(`Cannot use "${api.functionName}" on a class member that is declared as ${classMemberAccessLevelToString(member.accessLevel)}.`, [
@@ -4615,7 +4620,7 @@ function validateAccessOfInitializerApiMember({ api, call }, member) {
4615
4620
  }
4616
4621
  }
4617
4622
 
4618
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/initializer_functions.mjs
4623
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/initializer_functions.mjs
4619
4624
  import ts19 from "typescript";
4620
4625
  function tryParseInitializerApi(functions, expression, reflector, importTracker) {
4621
4626
  if (!ts19.isCallExpression(expression)) {
@@ -4684,7 +4689,7 @@ function parseTopLevelCallFromNamespace(call, functions, importTracker) {
4684
4689
  return { api: matchingApi, apiReference, isRequired };
4685
4690
  }
4686
4691
 
4687
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_output_parse_options.mjs
4692
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_output_parse_options.mjs
4688
4693
  import ts20 from "typescript";
4689
4694
  function parseAndValidateInputAndOutputOptions(optionsNode) {
4690
4695
  if (!ts20.isObjectLiteralExpression(optionsNode)) {
@@ -4702,7 +4707,7 @@ function parseAndValidateInputAndOutputOptions(optionsNode) {
4702
4707
  return { alias };
4703
4708
  }
4704
4709
 
4705
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_function.mjs
4710
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_function.mjs
4706
4711
  var INPUT_INITIALIZER_FN = {
4707
4712
  functionName: "input",
4708
4713
  owningModule: "@angular/core",
@@ -4734,7 +4739,7 @@ function tryParseSignalInputMapping(member, reflector, importTracker) {
4734
4739
  };
4735
4740
  }
4736
4741
 
4737
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/model_function.mjs
4742
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/model_function.mjs
4738
4743
  var MODEL_INITIALIZER_FN = {
4739
4744
  functionName: "model",
4740
4745
  owningModule: "@angular/core",
@@ -4775,7 +4780,7 @@ function tryParseSignalModelMapping(member, reflector, importTracker) {
4775
4780
  };
4776
4781
  }
4777
4782
 
4778
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/output_function.mjs
4783
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/output_function.mjs
4779
4784
  var allowedAccessLevels = [
4780
4785
  ClassMemberAccessLevel.PublicWritable,
4781
4786
  ClassMemberAccessLevel.PublicReadonly,
@@ -4819,7 +4824,7 @@ function tryParseInitializerBasedOutput(member, reflector, importTracker) {
4819
4824
  };
4820
4825
  }
4821
4826
 
4822
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/query_functions.mjs
4827
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/query_functions.mjs
4823
4828
  import { createMayBeForwardRefExpression, outputAst as o } from "@angular/compiler";
4824
4829
  import ts21 from "typescript";
4825
4830
  var queryFunctionNames = [
@@ -4904,7 +4909,7 @@ function parseDescendantsOption(value) {
4904
4909
  throw new FatalDiagnosticError(ErrorCode.VALUE_HAS_WRONG_TYPE, value, `Expected "descendants" option to be a boolean literal.`);
4905
4910
  }
4906
4911
 
4907
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4912
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4908
4913
  var EMPTY_OBJECT = {};
4909
4914
  var queryDecoratorNames = [
4910
4915
  "ViewChild",
@@ -5005,7 +5010,7 @@ function extractDirectiveMetadata(clazz, decorator, reflector, importTracker, ev
5005
5010
  const sourceFile = clazz.getSourceFile();
5006
5011
  const type = wrapTypeReference(reflector, clazz);
5007
5012
  const rawHostDirectives = directive.get("hostDirectives") || null;
5008
- const hostDirectives = rawHostDirectives === null ? null : extractHostDirectives(rawHostDirectives, evaluator, compilationMode);
5013
+ const hostDirectives = rawHostDirectives === null ? null : extractHostDirectives(rawHostDirectives, evaluator, compilationMode, createForwardRefResolver(isCore));
5009
5014
  if (compilationMode !== CompilationMode.LOCAL && hostDirectives !== null) {
5010
5015
  referencesRegistry.add(clazz, ...hostDirectives.map((hostDir) => {
5011
5016
  if (!isHostDirectiveMetaForGlobalMode(hostDir)) {
@@ -5642,7 +5647,7 @@ function getHostBindingErrorNode(error, hostExpr) {
5642
5647
  }
5643
5648
  return hostExpr;
5644
5649
  }
5645
- function extractHostDirectives(rawHostDirectives, evaluator, compilationMode) {
5650
+ function extractHostDirectives(rawHostDirectives, evaluator, compilationMode, forwardRefResolver) {
5646
5651
  const resolved = evaluator.evaluate(rawHostDirectives, forwardRefResolver);
5647
5652
  if (!Array.isArray(resolved)) {
5648
5653
  throw createValueHasWrongTypeError(rawHostDirectives, resolved, "hostDirectives must be an array");
@@ -5715,7 +5720,7 @@ function toR3InputMetadata(mapping) {
5715
5720
  };
5716
5721
  }
5717
5722
 
5718
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
5723
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
5719
5724
  var DirectiveSymbol = class extends SemanticSymbol {
5720
5725
  selector;
5721
5726
  inputs;
@@ -5801,7 +5806,7 @@ function isBaseClassEqual(current, previous) {
5801
5806
  return isSymbolEqual(current, previous);
5802
5807
  }
5803
5808
 
5804
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
5809
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
5805
5810
  var FIELD_DECORATORS = [
5806
5811
  "Input",
5807
5812
  "Output",
@@ -6021,11 +6026,11 @@ var DirectiveDecoratorHandler = class {
6021
6026
  }
6022
6027
  };
6023
6028
 
6024
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
6029
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
6025
6030
  import { compileClassMetadata as compileClassMetadata2, compileDeclareClassMetadata as compileDeclareClassMetadata2, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileInjector, compileNgModule, ExternalExpr as ExternalExpr5, FactoryTarget as FactoryTarget2, FunctionExpr, InvokeFunctionExpr, LiteralArrayExpr as LiteralArrayExpr2, R3Identifiers, R3NgModuleMetadataKind, R3SelectorScopeMode, ReturnStatement, WrappedNodeExpr as WrappedNodeExpr7 } from "@angular/compiler";
6026
6031
  import ts24 from "typescript";
6027
6032
 
6028
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
6033
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
6029
6034
  import ts23 from "typescript";
6030
6035
  function createModuleWithProvidersResolver(reflector, isCore) {
6031
6036
  function _reflectModuleFromTypeParam(type, node) {
@@ -6097,7 +6102,7 @@ function isResolvedModuleWithProviders(sv) {
6097
6102
  return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
6098
6103
  }
6099
6104
 
6100
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
6105
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
6101
6106
  var NgModuleSymbol = class extends SemanticSymbol {
6102
6107
  hasProviders;
6103
6108
  remotelyScopedComponents = [];
@@ -6238,6 +6243,7 @@ var NgModuleDecoratorHandler = class {
6238
6243
  this.jitDeclarationRegistry.jitDeclarations.add(node);
6239
6244
  return {};
6240
6245
  }
6246
+ const forwardRefResolver = createForwardRefResolver(this.isCore);
6241
6247
  const moduleResolvers = combineResolvers([
6242
6248
  createModuleWithProvidersResolver(this.reflector, this.isCore),
6243
6249
  forwardRefResolver
@@ -6737,7 +6743,7 @@ function isSyntheticReference(ref) {
6737
6743
  return ref.synthetic;
6738
6744
  }
6739
6745
 
6740
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
6746
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
6741
6747
  function makeCyclicImportInfo(ref, type, cycle) {
6742
6748
  const name = ref.debugName || "(unknown)";
6743
6749
  const path = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
@@ -6760,7 +6766,7 @@ function checkCustomElementSelectorForErrors(selector) {
6760
6766
  return null;
6761
6767
  }
6762
6768
 
6763
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
6769
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
6764
6770
  import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
6765
6771
  import ts25 from "typescript";
6766
6772
  function getTemplateDeclarationNodeForError(declaration) {
@@ -7098,7 +7104,7 @@ function _extractTemplateStyleUrls(template) {
7098
7104
  }));
7099
7105
  }
7100
7106
 
7101
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
7107
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
7102
7108
  var ComponentSymbol = class extends DirectiveSymbol {
7103
7109
  usedDirectives = [];
7104
7110
  usedPipes = [];
@@ -7130,7 +7136,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
7130
7136
  }
7131
7137
  };
7132
7138
 
7133
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
7139
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
7134
7140
  function collectAnimationNames(value, animationTriggerNames) {
7135
7141
  if (value instanceof Map) {
7136
7142
  const name = value.get("name");
@@ -7207,10 +7213,10 @@ function isLikelyModuleWithProviders(value) {
7207
7213
  return false;
7208
7214
  }
7209
7215
 
7210
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
7216
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
7211
7217
  import { CssSelector as CssSelector3, DomElementSchemaRegistry as DomElementSchemaRegistry2, ExternalExpr as ExternalExpr7, WrappedNodeExpr as WrappedNodeExpr9 } from "@angular/compiler";
7212
7218
 
7213
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
7219
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
7214
7220
  var NgOriginalFile = Symbol("NgOriginalFile");
7215
7221
  var UpdateMode;
7216
7222
  (function(UpdateMode2) {
@@ -7218,13 +7224,13 @@ var UpdateMode;
7218
7224
  UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
7219
7225
  })(UpdateMode || (UpdateMode = {}));
7220
7226
 
7221
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
7227
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
7222
7228
  import ts27 from "typescript";
7223
7229
 
7224
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
7230
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
7225
7231
  import ts26 from "typescript";
7226
7232
 
7227
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
7233
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
7228
7234
  var NgExtension = Symbol("NgExtension");
7229
7235
  function isExtended(sf) {
7230
7236
  return sf[NgExtension] !== void 0;
@@ -7284,13 +7290,13 @@ function retagTsFile(sf) {
7284
7290
  }
7285
7291
  }
7286
7292
 
7287
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
7293
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
7288
7294
  var TS_EXTENSIONS = /\.tsx?$/i;
7289
7295
  function makeShimFileName(fileName, suffix) {
7290
7296
  return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
7291
7297
  }
7292
7298
 
7293
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
7299
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
7294
7300
  var ShimAdapter = class {
7295
7301
  delegate;
7296
7302
  shims = /* @__PURE__ */ new Map();
@@ -7387,7 +7393,7 @@ var ShimAdapter = class {
7387
7393
  }
7388
7394
  };
7389
7395
 
7390
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
7396
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
7391
7397
  var ShimReferenceTagger = class {
7392
7398
  suffixes;
7393
7399
  tagged = /* @__PURE__ */ new Set();
@@ -7422,7 +7428,7 @@ var ShimReferenceTagger = class {
7422
7428
  }
7423
7429
  };
7424
7430
 
7425
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
7431
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
7426
7432
  var DelegatingCompilerHost = class {
7427
7433
  delegate;
7428
7434
  createHash;
@@ -7573,9 +7579,9 @@ var TsCreateProgramDriver = class {
7573
7579
  }
7574
7580
  };
7575
7581
 
7576
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
7582
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
7577
7583
  import ts28 from "typescript";
7578
- function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
7584
+ function makeTemplateDiagnostic(id, mapping, span, category, code, messageText, relatedMessages) {
7579
7585
  var _a;
7580
7586
  if (mapping.type === "direct") {
7581
7587
  let relatedInformation = void 0;
@@ -7598,8 +7604,8 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
7598
7604
  category,
7599
7605
  messageText,
7600
7606
  file: mapping.node.getSourceFile(),
7601
- componentFile: mapping.node.getSourceFile(),
7602
- templateId,
7607
+ sourceFile: mapping.node.getSourceFile(),
7608
+ typeCheckId: id,
7603
7609
  start: span.start.offset,
7604
7610
  length: span.end.offset - span.start.offset,
7605
7611
  relatedInformation
@@ -7632,8 +7638,8 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
7632
7638
  code,
7633
7639
  messageText: addDiagnosticChain(messageText, [failureChain]),
7634
7640
  file: componentSf,
7635
- componentFile: componentSf,
7636
- templateId,
7641
+ sourceFile: componentSf,
7642
+ typeCheckId: id,
7637
7643
  start: mapping.node.getStart(),
7638
7644
  length: mapping.node.getEnd() - mapping.node.getStart(),
7639
7645
  relatedInformation
@@ -7653,8 +7659,8 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
7653
7659
  code,
7654
7660
  messageText,
7655
7661
  file: sf,
7656
- componentFile: componentSf,
7657
- templateId,
7662
+ sourceFile: componentSf,
7663
+ typeCheckId: id,
7658
7664
  start: span.start.offset,
7659
7665
  length: span.end.offset - span.start.offset,
7660
7666
  relatedInformation
@@ -7684,28 +7690,24 @@ function parseTemplateAsSourceFile(fileName, template) {
7684
7690
  );
7685
7691
  }
7686
7692
 
7687
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
7688
- var TEMPLATE_ID = Symbol("ngTemplateId");
7689
- var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
7690
- function getTemplateId(clazz) {
7691
- const node = clazz;
7692
- if (node[TEMPLATE_ID] === void 0) {
7693
- node[TEMPLATE_ID] = allocateTemplateId(node.getSourceFile());
7693
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
7694
+ var TYPE_CHECK_ID_MAP = Symbol("TypeCheckId");
7695
+ function getTypeCheckId(clazz) {
7696
+ const sf = clazz.getSourceFile();
7697
+ if (sf[TYPE_CHECK_ID_MAP] === void 0) {
7698
+ sf[TYPE_CHECK_ID_MAP] = /* @__PURE__ */ new Map();
7694
7699
  }
7695
- return node[TEMPLATE_ID];
7696
- }
7697
- function allocateTemplateId(sf) {
7698
- if (sf[NEXT_TEMPLATE_ID] === void 0) {
7699
- sf[NEXT_TEMPLATE_ID] = 1;
7700
+ if (sf[TYPE_CHECK_ID_MAP].get(clazz) === void 0) {
7701
+ sf[TYPE_CHECK_ID_MAP].set(clazz, `tcb${sf[TYPE_CHECK_ID_MAP].size + 1}`);
7700
7702
  }
7701
- return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
7703
+ return sf[TYPE_CHECK_ID_MAP].get(clazz);
7702
7704
  }
7703
7705
 
7704
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
7706
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
7705
7707
  import { EmptyExpr, ImplicitReceiver, PropertyRead, PropertyWrite, SafePropertyRead, TmplAstLetDeclaration, TmplAstReference, TmplAstTextAttribute } from "@angular/compiler";
7706
7708
  import ts30 from "typescript";
7707
7709
 
7708
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
7710
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
7709
7711
  import { AbsoluteSourceSpan } from "@angular/compiler";
7710
7712
  import ts29 from "typescript";
7711
7713
  var parseSpanComment = /^(\d+),(\d+)$/;
@@ -7836,7 +7838,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
7836
7838
  }) || false;
7837
7839
  }
7838
7840
 
7839
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
7841
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
7840
7842
  var CompletionEngine = class {
7841
7843
  tcb;
7842
7844
  data;
@@ -9043,10 +9045,10 @@ var MagicString = class {
9043
9045
  }
9044
9046
  };
9045
9047
 
9046
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
9048
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
9047
9049
  import ts43 from "typescript";
9048
9050
 
9049
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
9051
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
9050
9052
  import { DomElementSchemaRegistry } from "@angular/compiler";
9051
9053
  import ts31 from "typescript";
9052
9054
  var REGISTRY = new DomElementSchemaRegistry();
@@ -9063,7 +9065,7 @@ var RegistryDomSchemaChecker = class {
9063
9065
  checkElement(id, element, schemas, hostIsStandalone) {
9064
9066
  const name = element.name.replace(REMOVE_XHTML_REGEX, "");
9065
9067
  if (!REGISTRY.hasElement(name, schemas)) {
9066
- const mapping = this.resolver.getSourceMapping(id);
9068
+ const mapping = this.resolver.getTemplateSourceMapping(id);
9067
9069
  const schemas2 = `'${hostIsStandalone ? "@Component" : "@NgModule"}.schemas'`;
9068
9070
  let errorMsg = `'${name}' is not a known element:
9069
9071
  `;
@@ -9080,7 +9082,7 @@ var RegistryDomSchemaChecker = class {
9080
9082
  }
9081
9083
  checkProperty(id, element, name, span, schemas, hostIsStandalone) {
9082
9084
  if (!REGISTRY.hasProperty(element.name, name, schemas)) {
9083
- const mapping = this.resolver.getSourceMapping(id);
9085
+ const mapping = this.resolver.getTemplateSourceMapping(id);
9084
9086
  const decorator = hostIsStandalone ? "@Component" : "@NgModule";
9085
9087
  const schemas2 = `'${decorator}.schemas'`;
9086
9088
  let errorMsg = `Can't bind to '${name}' since it isn't a known property of '${element.name}'.`;
@@ -9100,10 +9102,10 @@ var RegistryDomSchemaChecker = class {
9100
9102
  }
9101
9103
  };
9102
9104
 
9103
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
9105
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
9104
9106
  import ts36 from "typescript";
9105
9107
 
9106
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/reference_emit_environment.mjs
9108
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/reference_emit_environment.mjs
9107
9109
  import { ExpressionType, ExternalExpr as ExternalExpr6, TypeModifier } from "@angular/compiler";
9108
9110
  var ReferenceEmitEnvironment = class {
9109
9111
  importManager;
@@ -9138,7 +9140,7 @@ var ReferenceEmitEnvironment = class {
9138
9140
  }
9139
9141
  };
9140
9142
 
9141
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
9143
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
9142
9144
  import ts32 from "typescript";
9143
9145
  var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
9144
9146
  ts32.SyntaxKind.ParenthesizedExpression,
@@ -9221,15 +9223,15 @@ function tsNumericExpression(value) {
9221
9223
  return ts32.factory.createNumericLiteral(value);
9222
9224
  }
9223
9225
 
9224
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
9226
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
9225
9227
  import { ExpressionType as ExpressionType2, R3Identifiers as R3Identifiers3, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
9226
9228
  import ts35 from "typescript";
9227
9229
 
9228
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
9230
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
9229
9231
  import { R3Identifiers as R3Identifiers2 } from "@angular/compiler";
9230
9232
  import ts34 from "typescript";
9231
9233
 
9232
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
9234
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
9233
9235
  import ts33 from "typescript";
9234
9236
  var TypeParameterEmitter = class {
9235
9237
  typeParameters;
@@ -9309,7 +9311,7 @@ var TypeParameterEmitter = class {
9309
9311
  }
9310
9312
  };
9311
9313
 
9312
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
9314
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
9313
9315
  var TCB_FILE_IMPORT_GRAPH_PREPARE_IDENTIFIERS = [
9314
9316
  R3Identifiers2.InputSignalBrandWriteType
9315
9317
  ];
@@ -9330,22 +9332,22 @@ function requiresInlineTypeCheckBlock(ref, env, usedPipes, reflector) {
9330
9332
  return TcbInliningRequirement.None;
9331
9333
  }
9332
9334
  }
9333
- function getTemplateMapping(shimSf, position, resolver, isDiagnosticRequest) {
9335
+ function getSourceMapping(shimSf, position, resolver, isDiagnosticRequest) {
9334
9336
  const node = getTokenAtPosition(shimSf, position);
9335
9337
  const sourceLocation = findSourceLocation(node, shimSf, isDiagnosticRequest);
9336
9338
  if (sourceLocation === null) {
9337
9339
  return null;
9338
9340
  }
9339
- const mapping = resolver.getSourceMapping(sourceLocation.id);
9340
- const span = resolver.toParseSourceSpan(sourceLocation.id, sourceLocation.span);
9341
+ const mapping = resolver.getTemplateSourceMapping(sourceLocation.id);
9342
+ const span = resolver.toTemplateParseSourceSpan(sourceLocation.id, sourceLocation.span);
9341
9343
  if (span === null) {
9342
9344
  return null;
9343
9345
  }
9344
- return { sourceLocation, templateSourceMapping: mapping, span };
9346
+ return { sourceLocation, sourceMapping: mapping, span };
9345
9347
  }
9346
9348
  function findTypeCheckBlock(file, id, isDiagnosticRequest) {
9347
9349
  for (const stmt of file.statements) {
9348
- if (ts34.isFunctionDeclaration(stmt) && getTemplateId2(stmt, file, isDiagnosticRequest) === id) {
9350
+ if (ts34.isFunctionDeclaration(stmt) && getTemplateId(stmt, file, isDiagnosticRequest) === id) {
9349
9351
  return stmt;
9350
9352
  }
9351
9353
  }
@@ -9358,7 +9360,7 @@ function findSourceLocation(node, sourceFile, isDiagnosticsRequest) {
9358
9360
  }
9359
9361
  const span = readSpanComment(node, sourceFile);
9360
9362
  if (span !== null) {
9361
- const id = getTemplateId2(node, sourceFile, isDiagnosticsRequest);
9363
+ const id = getTemplateId(node, sourceFile, isDiagnosticsRequest);
9362
9364
  if (id === null) {
9363
9365
  return null;
9364
9366
  }
@@ -9368,7 +9370,7 @@ function findSourceLocation(node, sourceFile, isDiagnosticsRequest) {
9368
9370
  }
9369
9371
  return null;
9370
9372
  }
9371
- function getTemplateId2(node, sourceFile, isDiagnosticRequest) {
9373
+ function getTemplateId(node, sourceFile, isDiagnosticRequest) {
9372
9374
  while (!ts34.isFunctionDeclaration(node)) {
9373
9375
  if (hasIgnoreForDiagnosticsMarker(node, sourceFile) && isDiagnosticRequest) {
9374
9376
  return null;
@@ -9401,7 +9403,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
9401
9403
  return emitter.canEmit((ref) => env.canReferenceType(ref));
9402
9404
  }
9403
9405
 
9404
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
9406
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
9405
9407
  function generateTypeCtorDeclarationFn(env, meta, nodeTypeRef, typeParams) {
9406
9408
  const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
9407
9409
  const rawType = ts35.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
@@ -9524,7 +9526,7 @@ function typeParametersWithDefaultTypes(params) {
9524
9526
  });
9525
9527
  }
9526
9528
 
9527
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
9529
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
9528
9530
  var Environment = class extends ReferenceEmitEnvironment {
9529
9531
  config;
9530
9532
  nextIds = {
@@ -9597,7 +9599,7 @@ var Environment = class extends ReferenceEmitEnvironment {
9597
9599
  }
9598
9600
  };
9599
9601
 
9600
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
9602
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
9601
9603
  import { AbsoluteSourceSpan as AbsoluteSourceSpan2, TmplAstElement } from "@angular/compiler";
9602
9604
  import ts37 from "typescript";
9603
9605
  var OutOfBandDiagnosticRecorderImpl = class {
@@ -9610,53 +9612,53 @@ var OutOfBandDiagnosticRecorderImpl = class {
9610
9612
  get diagnostics() {
9611
9613
  return this._diagnostics;
9612
9614
  }
9613
- missingReferenceTarget(templateId, ref) {
9614
- const mapping = this.resolver.getSourceMapping(templateId);
9615
+ missingReferenceTarget(id, ref) {
9616
+ const mapping = this.resolver.getTemplateSourceMapping(id);
9615
9617
  const value = ref.value.trim();
9616
9618
  const errorMsg = `No directive found with exportAs '${value}'.`;
9617
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, ref.valueSpan || ref.sourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_REFERENCE_TARGET), errorMsg));
9619
+ this._diagnostics.push(makeTemplateDiagnostic(id, mapping, ref.valueSpan || ref.sourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_REFERENCE_TARGET), errorMsg));
9618
9620
  }
9619
- missingPipe(templateId, ast) {
9621
+ missingPipe(id, ast) {
9620
9622
  if (this.recordedPipes.has(ast)) {
9621
9623
  return;
9622
9624
  }
9623
- const mapping = this.resolver.getSourceMapping(templateId);
9625
+ const mapping = this.resolver.getTemplateSourceMapping(id);
9624
9626
  const errorMsg = `No pipe found with name '${ast.name}'.`;
9625
- const sourceSpan = this.resolver.toParseSourceSpan(templateId, ast.nameSpan);
9627
+ const sourceSpan = this.resolver.toTemplateParseSourceSpan(id, ast.nameSpan);
9626
9628
  if (sourceSpan === null) {
9627
9629
  throw new Error(`Assertion failure: no SourceLocation found for usage of pipe '${ast.name}'.`);
9628
9630
  }
9629
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_PIPE), errorMsg));
9631
+ this._diagnostics.push(makeTemplateDiagnostic(id, mapping, sourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_PIPE), errorMsg));
9630
9632
  this.recordedPipes.add(ast);
9631
9633
  }
9632
- deferredPipeUsedEagerly(templateId, ast) {
9634
+ deferredPipeUsedEagerly(id, ast) {
9633
9635
  if (this.recordedPipes.has(ast)) {
9634
9636
  return;
9635
9637
  }
9636
- const mapping = this.resolver.getSourceMapping(templateId);
9638
+ const mapping = this.resolver.getTemplateSourceMapping(id);
9637
9639
  const errorMsg = `Pipe '${ast.name}' was imported via \`@Component.deferredImports\`, but was used outside of a \`@defer\` block in a template. To fix this, either use the '${ast.name}' pipe inside of a \`@defer\` block or import this dependency using the \`@Component.imports\` field.`;
9638
- const sourceSpan = this.resolver.toParseSourceSpan(templateId, ast.nameSpan);
9640
+ const sourceSpan = this.resolver.toTemplateParseSourceSpan(id, ast.nameSpan);
9639
9641
  if (sourceSpan === null) {
9640
9642
  throw new Error(`Assertion failure: no SourceLocation found for usage of pipe '${ast.name}'.`);
9641
9643
  }
9642
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DEFERRED_PIPE_USED_EAGERLY), errorMsg));
9644
+ this._diagnostics.push(makeTemplateDiagnostic(id, mapping, sourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DEFERRED_PIPE_USED_EAGERLY), errorMsg));
9643
9645
  this.recordedPipes.add(ast);
9644
9646
  }
9645
- deferredComponentUsedEagerly(templateId, element) {
9646
- const mapping = this.resolver.getSourceMapping(templateId);
9647
+ deferredComponentUsedEagerly(id, element) {
9648
+ const mapping = this.resolver.getTemplateSourceMapping(id);
9647
9649
  const errorMsg = `Element '${element.name}' contains a component or a directive that was imported via \`@Component.deferredImports\`, but the element itself is located outside of a \`@defer\` block in a template. To fix this, either use the '${element.name}' element inside of a \`@defer\` block or import referenced component/directive dependency using the \`@Component.imports\` field.`;
9648
9650
  const { start, end } = element.startSourceSpan;
9649
9651
  const absoluteSourceSpan = new AbsoluteSourceSpan2(start.offset, end.offset);
9650
- const sourceSpan = this.resolver.toParseSourceSpan(templateId, absoluteSourceSpan);
9652
+ const sourceSpan = this.resolver.toTemplateParseSourceSpan(id, absoluteSourceSpan);
9651
9653
  if (sourceSpan === null) {
9652
9654
  throw new Error(`Assertion failure: no SourceLocation found for usage of pipe '${element.name}'.`);
9653
9655
  }
9654
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DEFERRED_DIRECTIVE_USED_EAGERLY), errorMsg));
9656
+ this._diagnostics.push(makeTemplateDiagnostic(id, mapping, sourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DEFERRED_DIRECTIVE_USED_EAGERLY), errorMsg));
9655
9657
  }
9656
- duplicateTemplateVar(templateId, variable, firstDecl) {
9657
- const mapping = this.resolver.getSourceMapping(templateId);
9658
+ duplicateTemplateVar(id, variable, firstDecl) {
9659
+ const mapping = this.resolver.getTemplateSourceMapping(id);
9658
9660
  const errorMsg = `Cannot redeclare variable '${variable.name}' as it was previously declared elsewhere for the same template.`;
9659
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, variable.sourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DUPLICATE_VARIABLE_DECLARATION), errorMsg, [
9661
+ this._diagnostics.push(makeTemplateDiagnostic(id, mapping, variable.sourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DUPLICATE_VARIABLE_DECLARATION), errorMsg, [
9660
9662
  {
9661
9663
  text: `The variable '${firstDecl.name}' was first declared here.`,
9662
9664
  start: firstDecl.sourceSpan.start.offset,
@@ -9665,20 +9667,20 @@ var OutOfBandDiagnosticRecorderImpl = class {
9665
9667
  }
9666
9668
  ]));
9667
9669
  }
9668
- requiresInlineTcb(templateId, node) {
9669
- this._diagnostics.push(makeInlineDiagnostic(templateId, ErrorCode.INLINE_TCB_REQUIRED, node.name, `This component requires inline template type-checking, which is not supported by the current environment.`));
9670
+ requiresInlineTcb(id, node) {
9671
+ this._diagnostics.push(makeInlineDiagnostic(id, ErrorCode.INLINE_TCB_REQUIRED, node.name, `This component requires inline template type-checking, which is not supported by the current environment.`));
9670
9672
  }
9671
- requiresInlineTypeConstructors(templateId, node, directives) {
9673
+ requiresInlineTypeConstructors(id, node, directives) {
9672
9674
  let message;
9673
9675
  if (directives.length > 1) {
9674
9676
  message = `This component uses directives which require inline type constructors, which are not supported by the current environment.`;
9675
9677
  } else {
9676
9678
  message = `This component uses a directive which requires an inline type constructor, which is not supported by the current environment.`;
9677
9679
  }
9678
- this._diagnostics.push(makeInlineDiagnostic(templateId, ErrorCode.INLINE_TYPE_CTOR_REQUIRED, node.name, message, directives.map((dir) => makeRelatedInformation(dir.name, `Requires an inline type constructor.`))));
9680
+ this._diagnostics.push(makeInlineDiagnostic(id, ErrorCode.INLINE_TYPE_CTOR_REQUIRED, node.name, message, directives.map((dir) => makeRelatedInformation(dir.name, `Requires an inline type constructor.`))));
9679
9681
  }
9680
- suboptimalTypeInference(templateId, variables) {
9681
- const mapping = this.resolver.getSourceMapping(templateId);
9682
+ suboptimalTypeInference(id, variables) {
9683
+ const mapping = this.resolver.getTemplateSourceMapping(id);
9682
9684
  let diagnosticVar = null;
9683
9685
  for (const variable of variables) {
9684
9686
  if (diagnosticVar === null || variable.value === "" || variable.value === "$implicit") {
@@ -9697,10 +9699,10 @@ var OutOfBandDiagnosticRecorderImpl = class {
9697
9699
  const message = `This structural directive supports advanced type inference, but the current compiler configuration prevents its usage. The variable ${varIdentification} will have type 'any' as a result.
9698
9700
 
9699
9701
  Consider enabling the 'strictTemplates' option in your tsconfig.json for better type inference within this template.`;
9700
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, diagnosticVar.keySpan, ts37.DiagnosticCategory.Suggestion, ngErrorCode(ErrorCode.SUGGEST_SUBOPTIMAL_TYPE_INFERENCE), message));
9702
+ this._diagnostics.push(makeTemplateDiagnostic(id, mapping, diagnosticVar.keySpan, ts37.DiagnosticCategory.Suggestion, ngErrorCode(ErrorCode.SUGGEST_SUBOPTIMAL_TYPE_INFERENCE), message));
9701
9703
  }
9702
- splitTwoWayBinding(templateId, input, output, inputConsumer, outputConsumer) {
9703
- const mapping = this.resolver.getSourceMapping(templateId);
9704
+ splitTwoWayBinding(id, input, output, inputConsumer, outputConsumer) {
9705
+ const mapping = this.resolver.getTemplateSourceMapping(id);
9704
9706
  const errorMsg = `The property and event halves of the two-way binding '${input.name}' are not bound to the same target.
9705
9707
  Find more at https://angular.dev/guide/templates/two-way-binding#how-two-way-binding-works`;
9706
9708
  const relatedMessages = [];
@@ -9731,22 +9733,22 @@ Consider enabling the 'strictTemplates' option in your tsconfig.json for better
9731
9733
  sourceFile: outputConsumer.name.getSourceFile()
9732
9734
  });
9733
9735
  }
9734
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, input.keySpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SPLIT_TWO_WAY_BINDING), errorMsg, relatedMessages));
9736
+ this._diagnostics.push(makeTemplateDiagnostic(id, mapping, input.keySpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SPLIT_TWO_WAY_BINDING), errorMsg, relatedMessages));
9735
9737
  }
9736
- missingRequiredInputs(templateId, element, directiveName, isComponent, inputAliases) {
9738
+ missingRequiredInputs(id, element, directiveName, isComponent, inputAliases) {
9737
9739
  const message = `Required input${inputAliases.length === 1 ? "" : "s"} ${inputAliases.map((n2) => `'${n2}'`).join(", ")} from ${isComponent ? "component" : "directive"} ${directiveName} must be specified.`;
9738
- this._diagnostics.push(makeTemplateDiagnostic(templateId, this.resolver.getSourceMapping(templateId), element.startSourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_REQUIRED_INPUTS), message));
9740
+ this._diagnostics.push(makeTemplateDiagnostic(id, this.resolver.getTemplateSourceMapping(id), element.startSourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_REQUIRED_INPUTS), message));
9739
9741
  }
9740
- illegalForLoopTrackAccess(templateId, block, access) {
9741
- const sourceSpan = this.resolver.toParseSourceSpan(templateId, access.sourceSpan);
9742
+ illegalForLoopTrackAccess(id, block, access) {
9743
+ const sourceSpan = this.resolver.toTemplateParseSourceSpan(id, access.sourceSpan);
9742
9744
  if (sourceSpan === null) {
9743
9745
  throw new Error(`Assertion failure: no SourceLocation found for property read.`);
9744
9746
  }
9745
9747
  const messageVars = [block.item, ...block.contextVariables.filter((v) => v.value === "$index")].map((v) => `'${v.name}'`).join(", ");
9746
9748
  const message = `Cannot access '${access.name}' inside of a track expression. Only ${messageVars} and properties on the containing component are available to this expression.`;
9747
- this._diagnostics.push(makeTemplateDiagnostic(templateId, this.resolver.getSourceMapping(templateId), sourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.ILLEGAL_FOR_LOOP_TRACK_ACCESS), message));
9749
+ this._diagnostics.push(makeTemplateDiagnostic(id, this.resolver.getTemplateSourceMapping(id), sourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.ILLEGAL_FOR_LOOP_TRACK_ACCESS), message));
9748
9750
  }
9749
- inaccessibleDeferredTriggerElement(templateId, trigger) {
9751
+ inaccessibleDeferredTriggerElement(id, trigger) {
9750
9752
  let message;
9751
9753
  if (trigger.reference === null) {
9752
9754
  message = `Trigger cannot find reference. Make sure that the @defer block has a @placeholder with at least one root element node.`;
@@ -9755,9 +9757,9 @@ Consider enabling the 'strictTemplates' option in your tsconfig.json for better
9755
9757
  Check that an element with #${trigger.reference} exists in the same template and it's accessible from the @defer block.
9756
9758
  Deferred blocks can only access triggers in same view, a parent embedded view or the root view of the @placeholder block.`;
9757
9759
  }
9758
- this._diagnostics.push(makeTemplateDiagnostic(templateId, this.resolver.getSourceMapping(templateId), trigger.sourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT), message));
9760
+ this._diagnostics.push(makeTemplateDiagnostic(id, this.resolver.getTemplateSourceMapping(id), trigger.sourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT), message));
9759
9761
  }
9760
- controlFlowPreventingContentProjection(templateId, category, projectionNode, componentName, slotSelector, controlFlowNode, preservesWhitespaces) {
9762
+ controlFlowPreventingContentProjection(id, category, projectionNode, componentName, slotSelector, controlFlowNode, preservesWhitespaces) {
9761
9763
  const blockName = controlFlowNode.nameSpan.toString().trim();
9762
9764
  const lines = [
9763
9765
  `Node matches the "${slotSelector}" slot of the "${componentName}" component, but will not be projected into the specific slot because the surrounding ${blockName} has more than one node at its root. To project the node in the right slot, you can:
@@ -9770,37 +9772,37 @@ Deferred blocks can only access triggers in same view, a parent embedded view or
9770
9772
  lines.push("Note: the host component has `preserveWhitespaces: true` which may cause whitespace to affect content projection.");
9771
9773
  }
9772
9774
  lines.push("", 'This check can be disabled using the `extendedDiagnostics.checks.controlFlowPreventingContentProjection = "suppress" compiler option.`');
9773
- this._diagnostics.push(makeTemplateDiagnostic(templateId, this.resolver.getSourceMapping(templateId), projectionNode.startSourceSpan, category, ngErrorCode(ErrorCode.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION), lines.join("\n")));
9775
+ this._diagnostics.push(makeTemplateDiagnostic(id, this.resolver.getTemplateSourceMapping(id), projectionNode.startSourceSpan, category, ngErrorCode(ErrorCode.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION), lines.join("\n")));
9774
9776
  }
9775
- illegalWriteToLetDeclaration(templateId, node, target) {
9776
- const sourceSpan = this.resolver.toParseSourceSpan(templateId, node.sourceSpan);
9777
+ illegalWriteToLetDeclaration(id, node, target) {
9778
+ const sourceSpan = this.resolver.toTemplateParseSourceSpan(id, node.sourceSpan);
9777
9779
  if (sourceSpan === null) {
9778
9780
  throw new Error(`Assertion failure: no SourceLocation found for property write.`);
9779
9781
  }
9780
- this._diagnostics.push(makeTemplateDiagnostic(templateId, this.resolver.getSourceMapping(templateId), sourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.ILLEGAL_LET_WRITE), `Cannot assign to @let declaration '${target.name}'.`));
9782
+ this._diagnostics.push(makeTemplateDiagnostic(id, this.resolver.getTemplateSourceMapping(id), sourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.ILLEGAL_LET_WRITE), `Cannot assign to @let declaration '${target.name}'.`));
9781
9783
  }
9782
- letUsedBeforeDefinition(templateId, node, target) {
9783
- const sourceSpan = this.resolver.toParseSourceSpan(templateId, node.sourceSpan);
9784
+ letUsedBeforeDefinition(id, node, target) {
9785
+ const sourceSpan = this.resolver.toTemplateParseSourceSpan(id, node.sourceSpan);
9784
9786
  if (sourceSpan === null) {
9785
9787
  throw new Error(`Assertion failure: no SourceLocation found for property read.`);
9786
9788
  }
9787
- this._diagnostics.push(makeTemplateDiagnostic(templateId, this.resolver.getSourceMapping(templateId), sourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.LET_USED_BEFORE_DEFINITION), `Cannot read @let declaration '${target.name}' before it has been defined.`));
9789
+ this._diagnostics.push(makeTemplateDiagnostic(id, this.resolver.getTemplateSourceMapping(id), sourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.LET_USED_BEFORE_DEFINITION), `Cannot read @let declaration '${target.name}' before it has been defined.`));
9788
9790
  }
9789
- conflictingDeclaration(templateId, decl) {
9790
- const mapping = this.resolver.getSourceMapping(templateId);
9791
+ conflictingDeclaration(id, decl) {
9792
+ const mapping = this.resolver.getTemplateSourceMapping(id);
9791
9793
  const errorMsg = `Cannot declare @let called '${decl.name}' as there is another symbol in the template with the same name.`;
9792
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, decl.sourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.CONFLICTING_LET_DECLARATION), errorMsg));
9794
+ this._diagnostics.push(makeTemplateDiagnostic(id, mapping, decl.sourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.CONFLICTING_LET_DECLARATION), errorMsg));
9793
9795
  }
9794
9796
  };
9795
- function makeInlineDiagnostic(templateId, code, node, messageText, relatedInformation) {
9797
+ function makeInlineDiagnostic(id, code, node, messageText, relatedInformation) {
9796
9798
  return {
9797
9799
  ...makeDiagnostic(code, node, messageText, relatedInformation),
9798
- componentFile: node.getSourceFile(),
9799
- templateId
9800
+ sourceFile: node.getSourceFile(),
9801
+ typeCheckId: id
9800
9802
  };
9801
9803
  }
9802
9804
 
9803
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
9805
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
9804
9806
  import ts38 from "typescript";
9805
9807
  var TypeCheckShimGenerator = class {
9806
9808
  extensionPrefix = "ngtypecheck";
@@ -9816,11 +9818,11 @@ var TypeCheckShimGenerator = class {
9816
9818
  }
9817
9819
  };
9818
9820
 
9819
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
9821
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
9820
9822
  import { BindingPipe, BindingType, Call as Call2, createCssSelectorFromNode, CssSelector as CssSelector2, DYNAMIC_TYPE, ImplicitReceiver as ImplicitReceiver2, ParsedEventType, PropertyRead as PropertyRead3, PropertyWrite as PropertyWrite2, R3Identifiers as R3Identifiers4, SafeCall, SafePropertyRead as SafePropertyRead3, SelectorMatcher as SelectorMatcher2, ThisReceiver, TmplAstBoundAttribute, TmplAstBoundText, TmplAstContent, TmplAstDeferredBlock, TmplAstElement as TmplAstElement2, TmplAstForLoopBlock, TmplAstIcu, TmplAstIfBlock, TmplAstIfBlockBranch, TmplAstLetDeclaration as TmplAstLetDeclaration2, TmplAstReference as TmplAstReference2, TmplAstSwitchBlock, TmplAstTemplate, TmplAstText, TmplAstTextAttribute as TmplAstTextAttribute2, TmplAstVariable, TransplantedType } from "@angular/compiler";
9821
9823
  import ts41 from "typescript";
9822
9824
 
9823
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
9825
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
9824
9826
  import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
9825
9827
  import ts39 from "typescript";
9826
9828
  function wrapForDiagnostics(expr) {
@@ -9843,7 +9845,7 @@ function addParseSpanInfo(node, span) {
9843
9845
  false
9844
9846
  );
9845
9847
  }
9846
- function addTemplateId(tcb, id) {
9848
+ function addTypeCheckId(tcb, id) {
9847
9849
  ts39.addSyntheticLeadingComment(tcb, ts39.SyntaxKind.MultiLineCommentTrivia, id, true);
9848
9850
  }
9849
9851
  function shouldReportDiagnostic(diagnostic) {
@@ -9863,7 +9865,7 @@ function translateDiagnostic(diagnostic, resolver) {
9863
9865
  if (diagnostic.file === void 0 || diagnostic.start === void 0) {
9864
9866
  return null;
9865
9867
  }
9866
- const fullMapping = getTemplateMapping(
9868
+ const fullMapping = getSourceMapping(
9867
9869
  diagnostic.file,
9868
9870
  diagnostic.start,
9869
9871
  resolver,
@@ -9872,11 +9874,11 @@ function translateDiagnostic(diagnostic, resolver) {
9872
9874
  if (fullMapping === null) {
9873
9875
  return null;
9874
9876
  }
9875
- const { sourceLocation, templateSourceMapping, span } = fullMapping;
9877
+ const { sourceLocation, sourceMapping: templateSourceMapping, span } = fullMapping;
9876
9878
  return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
9877
9879
  }
9878
9880
 
9879
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
9881
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
9880
9882
  import { ASTWithSource, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead2, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
9881
9883
  import ts40 from "typescript";
9882
9884
  var ANY_EXPRESSION = ts40.factory.createAsExpression(ts40.factory.createNumericLiteral("0"), ts40.factory.createKeywordTypeNode(ts40.SyntaxKind.AnyKeyword));
@@ -10247,7 +10249,7 @@ var _VeSafeLhsInferenceBugDetector = class {
10247
10249
  var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
10248
10250
  __publicField(VeSafeLhsInferenceBugDetector, "SINGLETON", new _VeSafeLhsInferenceBugDetector());
10249
10251
 
10250
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
10252
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
10251
10253
  var TcbGenericContextBehavior;
10252
10254
  (function(TcbGenericContextBehavior2) {
10253
10255
  TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
@@ -10296,7 +10298,7 @@ function generateTypeCheckBlock(env, ref, name, meta, domSchemaChecker, oobRecor
10296
10298
  void 0,
10297
10299
  body
10298
10300
  );
10299
- addTemplateId(fnDecl, meta.id);
10301
+ addTypeCheckId(fnDecl, meta.id);
10300
10302
  return fnDecl;
10301
10303
  }
10302
10304
  var TcbOp = class {
@@ -11260,7 +11262,7 @@ var Context = class {
11260
11262
  return ts41.factory.createIdentifier(`_t${this.nextId++}`);
11261
11263
  }
11262
11264
  getPipeByName(name) {
11263
- if (!this.pipes.has(name)) {
11265
+ if (this.pipes === null || !this.pipes.has(name)) {
11264
11266
  return null;
11265
11267
  }
11266
11268
  return this.pipes.get(name);
@@ -11942,7 +11944,7 @@ var TcbForLoopTrackTranslator = class extends TcbExpressionTranslator {
11942
11944
  }
11943
11945
  };
11944
11946
 
11945
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
11947
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
11946
11948
  import ts42 from "typescript";
11947
11949
  var TypeCheckFile = class extends Environment {
11948
11950
  fileName;
@@ -11991,7 +11993,7 @@ var TypeCheckFile = class extends Environment {
11991
11993
  }
11992
11994
  };
11993
11995
 
11994
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
11996
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
11995
11997
  var InliningMode;
11996
11998
  (function(InliningMode2) {
11997
11999
  InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
@@ -12020,18 +12022,19 @@ var TypeCheckContextImpl = class {
12020
12022
  }
12021
12023
  opMap = /* @__PURE__ */ new Map();
12022
12024
  typeCtorPending = /* @__PURE__ */ new Set();
12023
- addTemplate(ref, binder, template, pipes, schemas, sourceMapping, file, parseErrors, isStandalone, preserveWhitespaces) {
12024
- if (!this.host.shouldCheckComponent(ref.node)) {
12025
+ addDirective(ref, binder, schemas, templateContext, isStandalone) {
12026
+ var _a;
12027
+ if (!this.host.shouldCheckClass(ref.node)) {
12025
12028
  return;
12026
12029
  }
12027
12030
  const fileData = this.dataForFile(ref.node.getSourceFile());
12028
- const shimData = this.pendingShimForComponent(ref.node);
12029
- const templateId = fileData.sourceManager.getTemplateId(ref.node);
12030
- const templateDiagnostics = [];
12031
- if (parseErrors !== null) {
12032
- templateDiagnostics.push(...getTemplateDiagnostics(parseErrors, templateId, sourceMapping));
12031
+ const shimData = this.pendingShimForClass(ref.node);
12032
+ const id = fileData.sourceManager.getTypeCheckId(ref.node);
12033
+ const templateParsingDiagnostics = [];
12034
+ if (templateContext !== null && templateContext.parseErrors !== null) {
12035
+ templateParsingDiagnostics.push(...getTemplateDiagnostics(templateContext.parseErrors, id, templateContext.sourceMapping));
12033
12036
  }
12034
- const boundTarget = binder.bind({ template });
12037
+ const boundTarget = binder.bind({ template: templateContext == null ? void 0 : templateContext.nodes });
12035
12038
  if (this.inlining === InliningMode.InlineOps) {
12036
12039
  for (const dir of boundTarget.getUsedDirectives()) {
12037
12040
  const dirRef = dir.ref;
@@ -12050,31 +12053,35 @@ var TypeCheckContextImpl = class {
12050
12053
  });
12051
12054
  }
12052
12055
  }
12053
- shimData.templates.set(templateId, {
12054
- template,
12056
+ shimData.data.set(id, {
12057
+ template: (templateContext == null ? void 0 : templateContext.nodes) || null,
12055
12058
  boundTarget,
12056
- templateDiagnostics
12059
+ templateParsingDiagnostics
12057
12060
  });
12058
12061
  const usedPipes = [];
12059
- for (const name of boundTarget.getUsedPipes()) {
12060
- if (!pipes.has(name)) {
12061
- continue;
12062
+ if (templateContext !== null) {
12063
+ for (const name of boundTarget.getUsedPipes()) {
12064
+ if (templateContext.pipes.has(name)) {
12065
+ usedPipes.push(templateContext.pipes.get(name).ref);
12066
+ }
12062
12067
  }
12063
- usedPipes.push(pipes.get(name).ref);
12064
12068
  }
12065
12069
  const inliningRequirement = requiresInlineTypeCheckBlock(ref, shimData.file, usedPipes, this.reflector);
12066
12070
  if (this.inlining === InliningMode.Error && inliningRequirement === TcbInliningRequirement.MustInline) {
12067
- shimData.oobRecorder.requiresInlineTcb(templateId, ref.node);
12071
+ shimData.oobRecorder.requiresInlineTcb(id, ref.node);
12068
12072
  this.perf.eventCount(PerfEvent.SkipGenerateTcbNoInline);
12069
12073
  return;
12070
12074
  }
12075
+ if (templateContext !== null) {
12076
+ fileData.sourceManager.captureTemplateSource(id, templateContext.sourceMapping, templateContext.file);
12077
+ }
12071
12078
  const meta = {
12072
- id: fileData.sourceManager.captureSource(ref.node, sourceMapping, file),
12079
+ id,
12073
12080
  boundTarget,
12074
- pipes,
12081
+ pipes: (templateContext == null ? void 0 : templateContext.pipes) || null,
12075
12082
  schemas,
12076
12083
  isStandalone,
12077
- preserveWhitespaces
12084
+ preserveWhitespaces: (_a = templateContext == null ? void 0 : templateContext.preserveWhitespaces) != null ? _a : false
12078
12085
  };
12079
12086
  this.perf.eventCount(PerfEvent.GenerateTcb);
12080
12087
  if (inliningRequirement !== TcbInliningRequirement.None && this.inlining === InliningMode.InlineOps) {
@@ -12160,7 +12167,7 @@ var TypeCheckContextImpl = class {
12160
12167
  ],
12161
12168
  hasInlines: pendingFileData.hasInlines,
12162
12169
  path: pendingShimData.file.fileName,
12163
- templates: pendingShimData.templates
12170
+ data: pendingShimData.data
12164
12171
  });
12165
12172
  const sfText = pendingShimData.file.render(false);
12166
12173
  updates.set(pendingShimData.file.fileName, {
@@ -12180,7 +12187,7 @@ var TypeCheckContextImpl = class {
12180
12187
  ops.push(new InlineTcbOp(ref, tcbMeta, this.config, this.reflector, shimData.domSchemaChecker, shimData.oobRecorder));
12181
12188
  fileData.hasInlines = true;
12182
12189
  }
12183
- pendingShimForComponent(node) {
12190
+ pendingShimForClass(node) {
12184
12191
  const fileData = this.dataForFile(node.getSourceFile());
12185
12192
  const shimPath = TypeCheckShimGenerator.shimFor(absoluteFromSourceFile(node.getSourceFile()));
12186
12193
  if (!fileData.shimData.has(shimPath)) {
@@ -12188,7 +12195,7 @@ var TypeCheckContextImpl = class {
12188
12195
  domSchemaChecker: new RegistryDomSchemaChecker(fileData.sourceManager),
12189
12196
  oobRecorder: new OutOfBandDiagnosticRecorderImpl(fileData.sourceManager),
12190
12197
  file: new TypeCheckFile(shimPath, this.config, this.refEmitter, this.reflector, this.compilerHost),
12191
- templates: /* @__PURE__ */ new Map()
12198
+ data: /* @__PURE__ */ new Map()
12192
12199
  });
12193
12200
  }
12194
12201
  return fileData.shimData.get(shimPath);
@@ -12259,10 +12266,10 @@ var TypeCtorOp = class {
12259
12266
  }
12260
12267
  };
12261
12268
 
12262
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
12269
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
12263
12270
  import { ParseLocation as ParseLocation2, ParseSourceSpan as ParseSourceSpan2 } from "@angular/compiler";
12264
12271
 
12265
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
12272
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
12266
12273
  var LF_CHAR = 10;
12267
12274
  var CR_CHAR = 13;
12268
12275
  var LINE_SEP_CHAR = 8232;
@@ -12303,7 +12310,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
12303
12310
  return low - 1;
12304
12311
  }
12305
12312
 
12306
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
12313
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
12307
12314
  var TemplateSource = class {
12308
12315
  mapping;
12309
12316
  file;
@@ -12329,23 +12336,21 @@ var TemplateSource = class {
12329
12336
  return this.lineStarts;
12330
12337
  }
12331
12338
  };
12332
- var TemplateSourceManager = class {
12339
+ var DirectiveSourceManager = class {
12333
12340
  templateSources = /* @__PURE__ */ new Map();
12334
- getTemplateId(node) {
12335
- return getTemplateId(node);
12341
+ getTypeCheckId(node) {
12342
+ return getTypeCheckId(node);
12336
12343
  }
12337
- captureSource(node, mapping, file) {
12338
- const id = getTemplateId(node);
12344
+ captureTemplateSource(id, mapping, file) {
12339
12345
  this.templateSources.set(id, new TemplateSource(mapping, file));
12340
- return id;
12341
12346
  }
12342
- getSourceMapping(id) {
12347
+ getTemplateSourceMapping(id) {
12343
12348
  if (!this.templateSources.has(id)) {
12344
- throw new Error(`Unexpected unknown template ID: ${id}`);
12349
+ throw new Error(`Unexpected unknown type check ID: ${id}`);
12345
12350
  }
12346
12351
  return this.templateSources.get(id).mapping;
12347
12352
  }
12348
- toParseSourceSpan(id, span) {
12353
+ toTemplateParseSourceSpan(id, span) {
12349
12354
  if (!this.templateSources.has(id)) {
12350
12355
  return null;
12351
12356
  }
@@ -12354,22 +12359,22 @@ var TemplateSourceManager = class {
12354
12359
  }
12355
12360
  };
12356
12361
 
12357
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
12362
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
12358
12363
  import { AST, ASTWithName, ASTWithSource as ASTWithSource2, BindingPipe as BindingPipe2, PropertyRead as PropertyRead4, PropertyWrite as PropertyWrite3, R3Identifiers as R3Identifiers5, SafePropertyRead as SafePropertyRead4, TmplAstBoundAttribute as TmplAstBoundAttribute2, TmplAstBoundEvent, TmplAstElement as TmplAstElement3, TmplAstLetDeclaration as TmplAstLetDeclaration3, TmplAstReference as TmplAstReference3, TmplAstTemplate as TmplAstTemplate2, TmplAstTextAttribute as TmplAstTextAttribute3, TmplAstVariable as TmplAstVariable2 } from "@angular/compiler";
12359
12364
  import ts44 from "typescript";
12360
12365
  var SymbolBuilder = class {
12361
12366
  tcbPath;
12362
12367
  tcbIsShim;
12363
12368
  typeCheckBlock;
12364
- templateData;
12369
+ typeCheckData;
12365
12370
  componentScopeReader;
12366
12371
  getTypeChecker;
12367
12372
  symbolCache = /* @__PURE__ */ new Map();
12368
- constructor(tcbPath, tcbIsShim, typeCheckBlock, templateData, componentScopeReader, getTypeChecker) {
12373
+ constructor(tcbPath, tcbIsShim, typeCheckBlock, typeCheckData, componentScopeReader, getTypeChecker) {
12369
12374
  this.tcbPath = tcbPath;
12370
12375
  this.tcbIsShim = tcbIsShim;
12371
12376
  this.typeCheckBlock = typeCheckBlock;
12372
- this.templateData = templateData;
12377
+ this.typeCheckData = typeCheckData;
12373
12378
  this.componentScopeReader = componentScopeReader;
12374
12379
  this.getTypeChecker = getTypeChecker;
12375
12380
  }
@@ -12499,12 +12504,12 @@ var SymbolBuilder = class {
12499
12504
  }
12500
12505
  getDirectiveMeta(host, directiveDeclaration) {
12501
12506
  var _a;
12502
- let directives = this.templateData.boundTarget.getDirectivesOfNode(host);
12507
+ let directives = this.typeCheckData.boundTarget.getDirectivesOfNode(host);
12503
12508
  const firstChild = host.children[0];
12504
12509
  if (firstChild instanceof TmplAstElement3) {
12505
12510
  const isMicrosyntaxTemplate = host instanceof TmplAstTemplate2 && sourceSpanEqual(firstChild.sourceSpan, host.sourceSpan);
12506
12511
  if (isMicrosyntaxTemplate) {
12507
- const firstChildDirectives = this.templateData.boundTarget.getDirectivesOfNode(firstChild);
12512
+ const firstChildDirectives = this.typeCheckData.boundTarget.getDirectivesOfNode(firstChild);
12508
12513
  if (firstChildDirectives !== null && directives !== null) {
12509
12514
  directives = directives.concat(firstChildDirectives);
12510
12515
  } else {
@@ -12525,7 +12530,7 @@ var SymbolBuilder = class {
12525
12530
  return scope.ngModule;
12526
12531
  }
12527
12532
  getSymbolOfBoundEvent(eventBinding) {
12528
- const consumer = this.templateData.boundTarget.getConsumerOfBinding(eventBinding);
12533
+ const consumer = this.typeCheckData.boundTarget.getConsumerOfBinding(eventBinding);
12529
12534
  if (consumer === null) {
12530
12535
  return null;
12531
12536
  }
@@ -12611,7 +12616,7 @@ var SymbolBuilder = class {
12611
12616
  return { kind: SymbolKind.Output, bindings };
12612
12617
  }
12613
12618
  getSymbolOfInputBinding(binding) {
12614
- const consumer = this.templateData.boundTarget.getConsumerOfBinding(binding);
12619
+ const consumer = this.typeCheckData.boundTarget.getConsumerOfBinding(binding);
12615
12620
  if (consumer === null) {
12616
12621
  return null;
12617
12622
  }
@@ -12731,7 +12736,7 @@ var SymbolBuilder = class {
12731
12736
  };
12732
12737
  }
12733
12738
  getSymbolOfReference(ref) {
12734
- const target = this.templateData.boundTarget.getReferenceTarget(ref);
12739
+ const target = this.typeCheckData.boundTarget.getReferenceTarget(ref);
12735
12740
  let node = findFirstMatchingNode(this.typeCheckBlock, {
12736
12741
  withSpan: ref.sourceSpan,
12737
12742
  filter: ts44.isVariableDeclaration
@@ -12836,7 +12841,7 @@ var SymbolBuilder = class {
12836
12841
  if (expression instanceof ASTWithSource2) {
12837
12842
  expression = expression.ast;
12838
12843
  }
12839
- const expressionTarget = this.templateData.boundTarget.getExpressionTarget(expression);
12844
+ const expressionTarget = this.typeCheckData.boundTarget.getExpressionTarget(expression);
12840
12845
  if (expressionTarget !== null) {
12841
12846
  return this.getSymbol(expressionTarget);
12842
12847
  }
@@ -12936,7 +12941,7 @@ function unwrapSignalInputWriteTAccessor(expr) {
12936
12941
  };
12937
12942
  }
12938
12943
 
12939
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
12944
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
12940
12945
  var REGISTRY2 = new DomElementSchemaRegistry2();
12941
12946
  var TemplateTypeCheckerImpl = class {
12942
12947
  originalProgram;
@@ -13006,9 +13011,8 @@ var TemplateTypeCheckerImpl = class {
13006
13011
  if (!fileRecord.shimData.has(shimPath)) {
13007
13012
  return { data: null, tcb: null, tcbPath: shimPath, tcbIsShim: true };
13008
13013
  }
13009
- const templateId = fileRecord.sourceManager.getTemplateId(component);
13014
+ const id = fileRecord.sourceManager.getTypeCheckId(component);
13010
13015
  const shimRecord = fileRecord.shimData.get(shimPath);
13011
- const id = fileRecord.sourceManager.getTemplateId(component);
13012
13016
  const program = this.programDriver.getProgram();
13013
13017
  const shimSf = getSourceFileOrNull(program, shimPath);
13014
13018
  if (shimSf === null || !fileRecord.shimData.has(shimPath)) {
@@ -13024,8 +13028,8 @@ var TemplateTypeCheckerImpl = class {
13024
13028
  }
13025
13029
  }
13026
13030
  let data = null;
13027
- if (shimRecord.templates.has(templateId)) {
13028
- data = shimRecord.templates.get(templateId);
13031
+ if (shimRecord.data.has(id)) {
13032
+ data = shimRecord.data.get(id);
13029
13033
  }
13030
13034
  return { data, tcb, tcbPath, tcbIsShim: tcbPath === shimPath };
13031
13035
  }
@@ -13055,7 +13059,7 @@ var TemplateTypeCheckerImpl = class {
13055
13059
  }
13056
13060
  return null;
13057
13061
  }
13058
- getTemplateMappingAtTcbLocation(tcbLocation) {
13062
+ getSourceMappingAtTcbLocation(tcbLocation) {
13059
13063
  const fileRecord = this.getFileRecordForTcbLocation(tcbLocation);
13060
13064
  if (fileRecord === null) {
13061
13065
  return null;
@@ -13064,7 +13068,7 @@ var TemplateTypeCheckerImpl = class {
13064
13068
  if (shimSf === void 0) {
13065
13069
  return null;
13066
13070
  }
13067
- return getTemplateMapping(
13071
+ return getSourceMapping(
13068
13072
  shimSf,
13069
13073
  tcbLocation.positionInFile,
13070
13074
  fileRecord.sourceManager,
@@ -13096,8 +13100,8 @@ var TemplateTypeCheckerImpl = class {
13096
13100
  const shimSf = getSourceFileOrError(typeCheckProgram, shimPath);
13097
13101
  diagnostics.push(...typeCheckProgram.getSemanticDiagnostics(shimSf).map((diag) => convertDiagnostic(diag, fileRecord.sourceManager)));
13098
13102
  diagnostics.push(...shimRecord.genesisDiagnostics);
13099
- for (const templateData of shimRecord.templates.values()) {
13100
- diagnostics.push(...templateData.templateDiagnostics);
13103
+ for (const templateData of shimRecord.data.values()) {
13104
+ diagnostics.push(...templateData.templateParsingDiagnostics);
13101
13105
  }
13102
13106
  }
13103
13107
  return diagnostics.filter((diag) => diag !== null);
@@ -13113,7 +13117,7 @@ var TemplateTypeCheckerImpl = class {
13113
13117
  if (!fileRecord.shimData.has(shimPath)) {
13114
13118
  return [];
13115
13119
  }
13116
- const templateId = fileRecord.sourceManager.getTemplateId(component);
13120
+ const id = fileRecord.sourceManager.getTypeCheckId(component);
13117
13121
  const shimRecord = fileRecord.shimData.get(shimPath);
13118
13122
  const typeCheckProgram = this.programDriver.getProgram();
13119
13123
  const diagnostics = [];
@@ -13124,10 +13128,10 @@ var TemplateTypeCheckerImpl = class {
13124
13128
  const shimSf = getSourceFileOrError(typeCheckProgram, shimPath);
13125
13129
  diagnostics.push(...typeCheckProgram.getSemanticDiagnostics(shimSf).map((diag) => convertDiagnostic(diag, fileRecord.sourceManager)));
13126
13130
  diagnostics.push(...shimRecord.genesisDiagnostics);
13127
- for (const templateData of shimRecord.templates.values()) {
13128
- diagnostics.push(...templateData.templateDiagnostics);
13131
+ for (const templateData of shimRecord.data.values()) {
13132
+ diagnostics.push(...templateData.templateParsingDiagnostics);
13129
13133
  }
13130
- return diagnostics.filter((diag) => diag !== null && diag.templateId === templateId);
13134
+ return diagnostics.filter((diag) => diag !== null && diag.typeCheckId === id);
13131
13135
  });
13132
13136
  }
13133
13137
  getTypeCheckBlock(component) {
@@ -13163,7 +13167,7 @@ var TemplateTypeCheckerImpl = class {
13163
13167
  const sfPath = absoluteFromSourceFile(sf);
13164
13168
  const shimPath = TypeCheckShimGenerator.shimFor(sfPath);
13165
13169
  const fileData = this.getFileData(sfPath);
13166
- const templateId = fileData.sourceManager.getTemplateId(clazz);
13170
+ const id = fileData.sourceManager.getTypeCheckId(clazz);
13167
13171
  fileData.shimData.delete(shimPath);
13168
13172
  fileData.isComplete = false;
13169
13173
  this.isComplete = false;
@@ -13175,10 +13179,10 @@ var TemplateTypeCheckerImpl = class {
13175
13179
  makeTemplateDiagnostic(clazz, sourceSpan, category, errorCode, message, relatedInformation) {
13176
13180
  const sfPath = absoluteFromSourceFile(clazz.getSourceFile());
13177
13181
  const fileRecord = this.state.get(sfPath);
13178
- const templateId = fileRecord.sourceManager.getTemplateId(clazz);
13179
- const mapping = fileRecord.sourceManager.getSourceMapping(templateId);
13182
+ const id = fileRecord.sourceManager.getTypeCheckId(clazz);
13183
+ const mapping = fileRecord.sourceManager.getTemplateSourceMapping(id);
13180
13184
  return {
13181
- ...makeTemplateDiagnostic(templateId, mapping, sourceSpan, category, ngErrorCode(errorCode), message, relatedInformation),
13185
+ ...makeTemplateDiagnostic(id, mapping, sourceSpan, category, ngErrorCode(errorCode), message, relatedInformation),
13182
13186
  __ngCode: errorCode
13183
13187
  };
13184
13188
  }
@@ -13296,7 +13300,7 @@ var TemplateTypeCheckerImpl = class {
13296
13300
  if (!this.state.has(path)) {
13297
13301
  this.state.set(path, {
13298
13302
  hasInlines: false,
13299
- sourceManager: new TemplateSourceManager(),
13303
+ sourceManager: new DirectiveSourceManager(),
13300
13304
  isComplete: false,
13301
13305
  shimData: /* @__PURE__ */ new Map()
13302
13306
  });
@@ -13584,7 +13588,7 @@ var WholeProgramTypeCheckingHost = class {
13584
13588
  getSourceManager(sfPath) {
13585
13589
  return this.impl.getFileData(sfPath).sourceManager;
13586
13590
  }
13587
- shouldCheckComponent(node) {
13591
+ shouldCheckClass(node) {
13588
13592
  const sfPath = absoluteFromSourceFile(node.getSourceFile());
13589
13593
  const shimPath = TypeCheckShimGenerator.shimFor(sfPath);
13590
13594
  const fileData = this.impl.getFileData(sfPath);
@@ -13620,7 +13624,7 @@ var SingleFileTypeCheckingHost = class {
13620
13624
  this.assertPath(sfPath);
13621
13625
  return this.fileData.sourceManager;
13622
13626
  }
13623
- shouldCheckComponent(node) {
13627
+ shouldCheckClass(node) {
13624
13628
  if (this.sfPath !== absoluteFromSourceFile(node.getSourceFile())) {
13625
13629
  return false;
13626
13630
  }
@@ -13661,17 +13665,17 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
13661
13665
  }
13662
13666
  };
13663
13667
 
13664
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/hmr/src/metadata.mjs
13668
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/hmr/src/metadata.mjs
13665
13669
  import { outputAst as o3 } from "@angular/compiler";
13666
13670
 
13667
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/hmr/src/extract_dependencies.mjs
13671
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/hmr/src/extract_dependencies.mjs
13668
13672
  import { outputAst as o2 } from "@angular/compiler";
13669
13673
  import ts45 from "typescript";
13670
13674
  function extractHmrDependencies(node, definition, factory, deferBlockMetadata, classMetadata, debugInfo, reflection, evaluator) {
13671
13675
  var _a, _b;
13672
13676
  const name = ts45.isClassDeclaration(node) && node.name ? node.name.text : null;
13673
13677
  const visitor = new PotentialTopLevelReadsVisitor();
13674
- const sourceFile = node.getSourceFile();
13678
+ const sourceFile = ts45.getOriginalNode(node).getSourceFile();
13675
13679
  definition.expression.visitExpression(visitor, null);
13676
13680
  definition.statements.forEach((statement) => statement.visitStatement(visitor, null));
13677
13681
  (_a = factory.initializer) == null ? void 0 : _a.visitExpression(visitor, null);
@@ -13876,12 +13880,13 @@ function isConstEnumReference(node, reflection) {
13876
13880
  return declaration !== null && ts45.isEnumDeclaration(declaration.node) && !!((_a = declaration.node.modifiers) == null ? void 0 : _a.some((m) => m.kind === ts45.SyntaxKind.ConstKeyword));
13877
13881
  }
13878
13882
 
13879
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/hmr/src/metadata.mjs
13883
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/hmr/src/metadata.mjs
13884
+ import ts46 from "typescript";
13880
13885
  function extractHmrMetatadata(clazz, reflection, evaluator, compilerHost, rootDirs, definition, factory, deferBlockMetadata, classMetadata, debugInfo) {
13881
13886
  if (!reflection.isClass(clazz)) {
13882
13887
  return null;
13883
13888
  }
13884
- const sourceFile = clazz.getSourceFile();
13889
+ const sourceFile = ts46.getOriginalNode(clazz).getSourceFile();
13885
13890
  const filePath = getProjectRelativePath(sourceFile.fileName, rootDirs, compilerHost) || compilerHost.getCanonicalFileName(sourceFile.fileName);
13886
13891
  const dependencies = extractHmrDependencies(clazz, definition, factory, deferBlockMetadata, classMetadata, debugInfo, reflection, evaluator);
13887
13892
  if (dependencies === null) {
@@ -13897,10 +13902,10 @@ function extractHmrMetatadata(clazz, reflection, evaluator, compilerHost, rootDi
13897
13902
  return meta;
13898
13903
  }
13899
13904
 
13900
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/hmr/src/update_declaration.mjs
13905
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/hmr/src/update_declaration.mjs
13901
13906
  import { compileHmrUpdateCallback } from "@angular/compiler";
13902
- import ts46 from "typescript";
13903
- function getHmrUpdateDeclaration(compilationResults, constantStatements, meta, sourceFile) {
13907
+ import ts47 from "typescript";
13908
+ function getHmrUpdateDeclaration(compilationResults, constantStatements, meta, declaration) {
13904
13909
  const namespaceSpecifiers = meta.namespaceDependencies.reduce((result, current) => {
13905
13910
  result.set(current.moduleName, current.assignedName);
13906
13911
  return result;
@@ -13911,10 +13916,11 @@ function getHmrUpdateDeclaration(compilationResults, constantStatements, meta, s
13911
13916
  rewriter: importRewriter
13912
13917
  });
13913
13918
  const callback = compileHmrUpdateCallback(compilationResults, constantStatements, meta);
13919
+ const sourceFile = ts47.getOriginalNode(declaration).getSourceFile();
13914
13920
  const node = translateStatement(sourceFile, callback, importManager);
13915
- return ts46.factory.updateFunctionDeclaration(node, [
13916
- ts46.factory.createToken(ts46.SyntaxKind.ExportKeyword),
13917
- ts46.factory.createToken(ts46.SyntaxKind.DefaultKeyword)
13921
+ return ts47.factory.updateFunctionDeclaration(node, [
13922
+ ts47.factory.createToken(ts47.SyntaxKind.ExportKeyword),
13923
+ ts47.factory.createToken(ts47.SyntaxKind.DefaultKeyword)
13918
13924
  ], node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body);
13919
13925
  }
13920
13926
  var HmrModuleImportRewriter = class {
@@ -13933,7 +13939,7 @@ var HmrModuleImportRewriter = class {
13933
13939
  }
13934
13940
  };
13935
13941
 
13936
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
13942
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
13937
13943
  var EMPTY_ARRAY2 = [];
13938
13944
  var isUsedDirective = (decl) => decl.kind === R3TemplateDependencyKind.Directive;
13939
13945
  var isUsedPipe = (decl) => decl.kind === R3TemplateDependencyKind.Pipe;
@@ -14139,10 +14145,10 @@ var ComponentDecoratorHandler = class {
14139
14145
  return {};
14140
14146
  }
14141
14147
  const { decorator: component, metadata, inputs, outputs, hostDirectives, rawHostDirectives } = directiveResult;
14142
- const encapsulation = (_a = this.compilationMode !== CompilationMode.LOCAL ? resolveEnumValue(this.evaluator, component, "encapsulation", "ViewEncapsulation") : resolveEncapsulationEnumValueLocally(component.get("encapsulation"))) != null ? _a : ViewEncapsulation2.Emulated;
14148
+ const encapsulation = (_a = this.compilationMode !== CompilationMode.LOCAL ? resolveEnumValue(this.evaluator, component, "encapsulation", "ViewEncapsulation", this.isCore) : resolveEncapsulationEnumValueLocally(component.get("encapsulation"))) != null ? _a : ViewEncapsulation2.Emulated;
14143
14149
  let changeDetection = null;
14144
14150
  if (this.compilationMode !== CompilationMode.LOCAL) {
14145
- changeDetection = resolveEnumValue(this.evaluator, component, "changeDetection", "ChangeDetectionStrategy");
14151
+ changeDetection = resolveEnumValue(this.evaluator, component, "changeDetection", "ChangeDetectionStrategy", this.isCore);
14146
14152
  } else if (component.has("changeDetection")) {
14147
14153
  changeDetection = new o4.WrappedNodeExpr(component.get("changeDetection"));
14148
14154
  }
@@ -14190,7 +14196,7 @@ var ComponentDecoratorHandler = class {
14190
14196
  } else if (this.compilationMode !== CompilationMode.LOCAL && (rawImports || rawDeferredImports)) {
14191
14197
  const importResolvers = combineResolvers([
14192
14198
  createModuleWithProvidersResolver(this.reflector, this.isCore),
14193
- forwardRefResolver
14199
+ createForwardRefResolver(this.isCore)
14194
14200
  ]);
14195
14201
  const importDiagnostics = [];
14196
14202
  if (rawImports) {
@@ -14258,7 +14264,7 @@ var ComponentDecoratorHandler = class {
14258
14264
  path: absoluteFrom(template.declaration.resolvedTemplateUrl),
14259
14265
  expression: template.sourceMapping.node
14260
14266
  };
14261
- const relativeTemplatePath = getProjectRelativePath((_d = templateResource.path) != null ? _d : ts47.getOriginalNode(node).getSourceFile().fileName, this.rootDirs, this.compilerHost);
14267
+ const relativeTemplatePath = getProjectRelativePath((_d = templateResource.path) != null ? _d : ts48.getOriginalNode(node).getSourceFile().fileName, this.rootDirs, this.compilerHost);
14262
14268
  let styles = [];
14263
14269
  const externalStyles = [];
14264
14270
  const styleResources = extractInlineStyleResources(component);
@@ -14273,7 +14279,7 @@ var ComponentDecoratorHandler = class {
14273
14279
  externalStyles.push(resourceUrl);
14274
14280
  continue;
14275
14281
  }
14276
- if (styleUrl.source === 2 && ts47.isStringLiteralLike(styleUrl.expression)) {
14282
+ if (styleUrl.source === 2 && ts48.isStringLiteralLike(styleUrl.expression)) {
14277
14283
  styleResources.add({
14278
14284
  path: absoluteFrom(resourceUrl),
14279
14285
  expression: styleUrl.expression
@@ -14476,7 +14482,7 @@ var ComponentDecoratorHandler = class {
14476
14482
  }
14477
14483
  typeCheck(ctx, node, meta) {
14478
14484
  var _a;
14479
- if (this.typeCheckScopeRegistry === null || !ts47.isClassDeclaration(node)) {
14485
+ if (this.typeCheckScopeRegistry === null || !ts48.isClassDeclaration(node)) {
14480
14486
  return;
14481
14487
  }
14482
14488
  if (meta.isPoisoned && !this.usePoisonedData) {
@@ -14487,7 +14493,15 @@ var ComponentDecoratorHandler = class {
14487
14493
  return;
14488
14494
  }
14489
14495
  const binder = new R3TargetBinder(scope.matcher);
14490
- ctx.addTemplate(new Reference(node), binder, meta.template.diagNodes, scope.pipes, scope.schemas, meta.template.sourceMapping, meta.template.file, meta.template.errors, meta.meta.isStandalone, (_a = meta.meta.template.preserveWhitespaces) != null ? _a : false);
14496
+ const templateContext = {
14497
+ nodes: meta.template.diagNodes,
14498
+ pipes: scope.pipes,
14499
+ sourceMapping: meta.template.sourceMapping,
14500
+ file: meta.template.file,
14501
+ parseErrors: meta.template.errors,
14502
+ preserveWhitespaces: (_a = meta.meta.template.preserveWhitespaces) != null ? _a : false
14503
+ };
14504
+ ctx.addDirective(new Reference(node), binder, scope.schemas, templateContext, meta.meta.isStandalone);
14491
14505
  }
14492
14506
  extendedTemplateCheck(component, extendedTemplateChecker) {
14493
14507
  return extendedTemplateChecker.getDiagnosticsForComponent(component);
@@ -14867,7 +14881,7 @@ var ComponentDecoratorHandler = class {
14867
14881
  const debugInfo = analysis.classDebugInfo !== null ? compileClassDebugInfo(analysis.classDebugInfo).toStmt() : null;
14868
14882
  const hmrMeta = this.enableHmr ? extractHmrMetatadata(node, this.reflector, this.evaluator, this.compilerHost, this.rootDirs, def, fac, defer, classMetadata, debugInfo) : null;
14869
14883
  const res = compileResults(fac, def, classMetadata, "\u0275cmp", null, null, debugInfo, null);
14870
- return hmrMeta === null || res.length === 0 ? null : getHmrUpdateDeclaration(res, pool.statements, hmrMeta, node.getSourceFile());
14884
+ return hmrMeta === null || res.length === 0 ? null : getHmrUpdateDeclaration(res, pool.statements, hmrMeta, node);
14871
14885
  }
14872
14886
  locateDeferBlocksWithoutScope(template) {
14873
14887
  const deferBlocks = /* @__PURE__ */ new Map();
@@ -14902,12 +14916,12 @@ var ComponentDecoratorHandler = class {
14902
14916
  }
14903
14917
  collectExplicitlyDeferredSymbols(rawDeferredImports) {
14904
14918
  const deferredTypes = /* @__PURE__ */ new Map();
14905
- if (!ts47.isArrayLiteralExpression(rawDeferredImports)) {
14919
+ if (!ts48.isArrayLiteralExpression(rawDeferredImports)) {
14906
14920
  return deferredTypes;
14907
14921
  }
14908
14922
  for (const element of rawDeferredImports.elements) {
14909
14923
  const node = tryUnwrapForwardRef(element, this.reflector) || element;
14910
- if (!ts47.isIdentifier(node)) {
14924
+ if (!ts48.isIdentifier(node)) {
14911
14925
  continue;
14912
14926
  }
14913
14927
  const imp = this.reflector.getImportOfIdentifier(node);
@@ -14974,12 +14988,12 @@ var ComponentDecoratorHandler = class {
14974
14988
  }
14975
14989
  }
14976
14990
  registerDeferrableCandidates(componentClassDecl, importsExpr, isDeferredImport, allDeferredDecls, eagerlyUsedDecls, resolutionData) {
14977
- if (!ts47.isArrayLiteralExpression(importsExpr)) {
14991
+ if (!ts48.isArrayLiteralExpression(importsExpr)) {
14978
14992
  return;
14979
14993
  }
14980
14994
  for (const element of importsExpr.elements) {
14981
14995
  const node = tryUnwrapForwardRef(element, this.reflector) || element;
14982
- if (!ts47.isIdentifier(node)) {
14996
+ if (!ts48.isIdentifier(node)) {
14983
14997
  continue;
14984
14998
  }
14985
14999
  const imp = this.reflector.getImportOfIdentifier(node);
@@ -15111,9 +15125,9 @@ function isDefaultImport(node) {
15111
15125
  return node.importClause !== void 0 && node.importClause.namedBindings === void 0;
15112
15126
  }
15113
15127
 
15114
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
15128
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
15115
15129
  import { compileClassMetadata as compileClassMetadata3, compileDeclareClassMetadata as compileDeclareClassMetadata3, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression3, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr10 } from "@angular/compiler";
15116
- import ts48 from "typescript";
15130
+ import ts49 from "typescript";
15117
15131
  var InjectableDecoratorHandler = class {
15118
15132
  reflector;
15119
15133
  evaluator;
@@ -15242,7 +15256,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
15242
15256
  };
15243
15257
  } else if (decorator.args.length === 1) {
15244
15258
  const metaNode = decorator.args[0];
15245
- if (!ts48.isObjectLiteralExpression(metaNode)) {
15259
+ if (!ts49.isObjectLiteralExpression(metaNode)) {
15246
15260
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, metaNode, `@Injectable argument must be an object literal`);
15247
15261
  }
15248
15262
  const meta = reflectObjectLiteral(metaNode);
@@ -15250,7 +15264,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
15250
15264
  let deps = void 0;
15251
15265
  if ((meta.has("useClass") || meta.has("useFactory")) && meta.has("deps")) {
15252
15266
  const depsExpr = meta.get("deps");
15253
- if (!ts48.isArrayLiteralExpression(depsExpr)) {
15267
+ if (!ts49.isArrayLiteralExpression(depsExpr)) {
15254
15268
  throw new FatalDiagnosticError(ErrorCode.VALUE_NOT_LITERAL, depsExpr, `@Injectable deps metadata must be an inline array`);
15255
15269
  }
15256
15270
  deps = depsExpr.elements.map((dep) => getDep(dep, reflector));
@@ -15335,12 +15349,12 @@ function getDep(dep, reflector) {
15335
15349
  }
15336
15350
  return true;
15337
15351
  }
15338
- if (ts48.isArrayLiteralExpression(dep)) {
15352
+ if (ts49.isArrayLiteralExpression(dep)) {
15339
15353
  dep.elements.forEach((el) => {
15340
15354
  let isDecorator = false;
15341
- if (ts48.isIdentifier(el)) {
15355
+ if (ts49.isIdentifier(el)) {
15342
15356
  isDecorator = maybeUpdateDecorator(el, reflector);
15343
- } else if (ts48.isNewExpression(el) && ts48.isIdentifier(el.expression)) {
15357
+ } else if (ts49.isNewExpression(el) && ts49.isIdentifier(el.expression)) {
15344
15358
  const token = el.arguments && el.arguments.length > 0 && el.arguments[0] || void 0;
15345
15359
  isDecorator = maybeUpdateDecorator(el.expression, reflector, token);
15346
15360
  }
@@ -15352,9 +15366,9 @@ function getDep(dep, reflector) {
15352
15366
  return meta;
15353
15367
  }
15354
15368
 
15355
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
15369
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
15356
15370
  import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5 } from "@angular/compiler";
15357
- import ts49 from "typescript";
15371
+ import ts50 from "typescript";
15358
15372
  var PipeSymbol = class extends SemanticSymbol {
15359
15373
  name;
15360
15374
  constructor(decl, name) {
@@ -15427,7 +15441,7 @@ var PipeDecoratorHandler = class {
15427
15441
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, decorator.node, "@Pipe must have exactly one argument");
15428
15442
  }
15429
15443
  const meta = unwrapExpression(decorator.args[0]);
15430
- if (!ts49.isObjectLiteralExpression(meta)) {
15444
+ if (!ts50.isObjectLiteralExpression(meta)) {
15431
15445
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, meta, "@Pipe must have a literal argument");
15432
15446
  }
15433
15447
  const pipe = reflectObjectLiteral(meta);
@@ -15530,7 +15544,7 @@ var PipeDecoratorHandler = class {
15530
15544
  export {
15531
15545
  isAngularDecorator,
15532
15546
  getAngularDecorators,
15533
- forwardRefResolver,
15547
+ createForwardRefResolver,
15534
15548
  MetaKind,
15535
15549
  CompoundMetadataReader,
15536
15550
  DtsMetadataReader,
@@ -15600,4 +15614,4 @@ export {
15600
15614
  * Use of this source code is governed by an MIT-style license that can be
15601
15615
  * found in the LICENSE file at https://angular.dev/license
15602
15616
  */
15603
- //# sourceMappingURL=chunk-J43IYRBM.js.map
15617
+ //# sourceMappingURL=chunk-RPCYQIAM.js.map