@angular/compiler-cli 15.0.0-next.3 → 15.0.0-next.5

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 (58) hide show
  1. package/bundles/{chunk-RCXOJZDO.js → chunk-2HPI44CB.js} +5 -5
  2. package/bundles/{chunk-RCXOJZDO.js.map → chunk-2HPI44CB.js.map} +0 -0
  3. package/bundles/{chunk-JTAGML7U.js → chunk-2RROWOZG.js} +71 -71
  4. package/bundles/{chunk-JTAGML7U.js.map → chunk-2RROWOZG.js.map} +0 -0
  5. package/bundles/{chunk-DM4TYSFG.js → chunk-7YHMCUJT.js} +2 -2
  6. package/bundles/{chunk-DM4TYSFG.js.map → chunk-7YHMCUJT.js.map} +0 -0
  7. package/bundles/{chunk-56O2PTWU.js → chunk-CYVTLM4Z.js} +7 -7
  8. package/bundles/{chunk-56O2PTWU.js.map → chunk-CYVTLM4Z.js.map} +0 -0
  9. package/bundles/{chunk-5FZBUSFV.js → chunk-E7NQQTT7.js} +3 -3
  10. package/bundles/{chunk-5FZBUSFV.js.map → chunk-E7NQQTT7.js.map} +0 -0
  11. package/bundles/{chunk-ERNK3SQG.js → chunk-FHVSPC32.js} +31 -31
  12. package/bundles/{chunk-ERNK3SQG.js.map → chunk-FHVSPC32.js.map} +0 -0
  13. package/bundles/{chunk-ICPLY7FO.js → chunk-FM6NPN5V.js} +4 -4
  14. package/bundles/{chunk-ICPLY7FO.js.map → chunk-FM6NPN5V.js.map} +0 -0
  15. package/bundles/{chunk-V7FBNIO3.js → chunk-LBWAABMF.js} +40 -40
  16. package/bundles/{chunk-V7FBNIO3.js.map → chunk-LBWAABMF.js.map} +0 -0
  17. package/bundles/{chunk-C7SYDZNO.js → chunk-OZM4WUIW.js} +5 -5
  18. package/bundles/{chunk-C7SYDZNO.js.map → chunk-OZM4WUIW.js.map} +0 -0
  19. package/bundles/{chunk-HMWNYAAE.js → chunk-R3C7RFJ4.js} +2 -2
  20. package/bundles/{chunk-HMWNYAAE.js.map → chunk-R3C7RFJ4.js.map} +0 -0
  21. package/bundles/{chunk-FPKAMI6D.js → chunk-TF2TR2WS.js} +26 -26
  22. package/bundles/{chunk-FPKAMI6D.js.map → chunk-TF2TR2WS.js.map} +0 -0
  23. package/bundles/{chunk-4NRCP3Y6.js → chunk-TOKOIIBI.js} +7 -7
  24. package/bundles/{chunk-4NRCP3Y6.js.map → chunk-TOKOIIBI.js.map} +0 -0
  25. package/bundles/{chunk-JN4TT3OU.js → chunk-UZLFREET.js} +7 -7
  26. package/bundles/{chunk-JN4TT3OU.js.map → chunk-UZLFREET.js.map} +0 -0
  27. package/bundles/{chunk-A5S5H2MN.js → chunk-VSAO3EZ7.js} +74 -71
  28. package/bundles/chunk-VSAO3EZ7.js.map +6 -0
  29. package/bundles/{chunk-MOE5WKIA.js → chunk-XDX5RDY5.js} +7 -7
  30. package/bundles/{chunk-MOE5WKIA.js.map → chunk-XDX5RDY5.js.map} +0 -0
  31. package/bundles/{chunk-TC3DKEFP.js → chunk-YEQI6VDV.js} +156 -125
  32. package/bundles/chunk-YEQI6VDV.js.map +6 -0
  33. package/bundles/index.js +13 -13
  34. package/bundles/linker/babel/index.js +13 -13
  35. package/bundles/linker/index.js +5 -5
  36. package/bundles/ngcc/index.js +13 -13
  37. package/bundles/ngcc/main-ngcc.js +14 -14
  38. package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +14 -14
  39. package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +4 -4
  40. package/bundles/private/bazel.js +1 -1
  41. package/bundles/private/localize.js +3 -3
  42. package/bundles/private/migrations.js +6 -6
  43. package/bundles/private/tooling.js +3 -3
  44. package/bundles/src/bin/ng_xi18n.js +11 -11
  45. package/bundles/src/bin/ngc.js +9 -9
  46. package/bundles_metadata.json +1 -1
  47. package/ngcc/src/packages/build_marker.d.ts +1 -1
  48. package/package.json +2 -2
  49. package/src/ngtsc/core/src/host.d.ts +1 -0
  50. package/src/ngtsc/metadata/src/api.d.ts +6 -0
  51. package/src/ngtsc/metadata/src/registry.d.ts +3 -2
  52. package/src/ngtsc/program_driver/src/ts_create_program_driver.d.ts +1 -0
  53. package/src/ngtsc/typecheck/api/checker.d.ts +7 -6
  54. package/src/ngtsc/typecheck/api/scope.d.ts +14 -4
  55. package/src/ngtsc/typecheck/api/symbols.d.ts +2 -2
  56. package/src/ngtsc/typecheck/src/checker.d.ts +8 -6
  57. package/bundles/chunk-A5S5H2MN.js.map +0 -6
  58. package/bundles/chunk-TC3DKEFP.js.map +0 -6
@@ -31,11 +31,11 @@ import {
31
31
  aliasTransformFactory,
32
32
  declarationTransformFactory,
33
33
  ivyTransformFactory
34
- } from "./chunk-A5S5H2MN.js";
34
+ } from "./chunk-VSAO3EZ7.js";
35
35
  import {
36
36
  TypeScriptReflectionHost,
37
37
  isNamedClassDeclaration
38
- } from "./chunk-MOE5WKIA.js";
38
+ } from "./chunk-XDX5RDY5.js";
39
39
  import {
40
40
  AbsoluteModuleStrategy,
41
41
  AliasStrategy,
@@ -76,13 +76,13 @@ import {
76
76
  toUnredirectedSourceFile,
77
77
  translateExpression,
78
78
  translateType
79
- } from "./chunk-FPKAMI6D.js";
79
+ } from "./chunk-TF2TR2WS.js";
80
80
  import {
81
81
  getDecorators,
82
82
  getModifiers,
83
83
  updateImportDeclaration,
84
84
  updateTypeParameterDeclaration
85
- } from "./chunk-DM4TYSFG.js";
85
+ } from "./chunk-7YHMCUJT.js";
86
86
  import {
87
87
  LogicalFileSystem,
88
88
  absoluteFrom,
@@ -93,16 +93,16 @@ import {
93
93
  getSourceFileOrError,
94
94
  join,
95
95
  resolve
96
- } from "./chunk-4NRCP3Y6.js";
96
+ } from "./chunk-TOKOIIBI.js";
97
97
  import {
98
98
  ActivePerfRecorder,
99
99
  DelegatingPerfRecorder,
100
100
  PerfCheckpoint,
101
101
  PerfEvent,
102
102
  PerfPhase
103
- } from "./chunk-RCXOJZDO.js";
103
+ } from "./chunk-2HPI44CB.js";
104
104
 
105
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
105
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
106
106
  var DEFAULT_ERROR_CODE = 100;
107
107
  var UNKNOWN_ERROR_CODE = 500;
108
108
  var SOURCE = "angular";
@@ -120,7 +120,7 @@ var EmitFlags;
120
120
  EmitFlags2[EmitFlags2["All"] = 31] = "All";
121
121
  })(EmitFlags || (EmitFlags = {}));
122
122
 
123
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
123
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
124
124
  import ts from "typescript";
125
125
  var wrapHostForTest = null;
126
126
  function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, true) }) {
@@ -130,21 +130,21 @@ function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, t
130
130
  return tsHost;
131
131
  }
132
132
 
133
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
133
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
134
134
  var OptimizeFor;
135
135
  (function(OptimizeFor2) {
136
136
  OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
137
137
  OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
138
138
  })(OptimizeFor || (OptimizeFor = {}));
139
139
 
140
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
140
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
141
141
  var CompletionKind;
142
142
  (function(CompletionKind2) {
143
143
  CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
144
144
  CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
145
145
  })(CompletionKind || (CompletionKind = {}));
146
146
 
147
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
147
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
148
148
  var SymbolKind;
149
149
  (function(SymbolKind2) {
150
150
  SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
@@ -160,11 +160,11 @@ var SymbolKind;
160
160
  SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
161
161
  })(SymbolKind || (SymbolKind = {}));
162
162
 
163
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
163
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
164
164
  import { HtmlParser, MessageBundle } from "@angular/compiler";
165
165
  import ts34 from "typescript";
166
166
 
167
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
167
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
168
168
  import { Xliff, Xliff2, Xmb } from "@angular/compiler";
169
169
  import * as path from "path";
170
170
  function i18nGetExtension(formatName) {
@@ -215,10 +215,10 @@ function getPathNormalizer(basePath) {
215
215
  };
216
216
  }
217
217
 
218
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
218
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
219
219
  import ts2 from "typescript";
220
220
 
221
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
221
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
222
222
  function toNumbers(value) {
223
223
  const suffixIndex = value.lastIndexOf("-");
224
224
  return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
@@ -253,7 +253,7 @@ function compareVersions(v1, v2) {
253
253
  return compareNumbers(toNumbers(v1), toNumbers(v2));
254
254
  }
255
255
 
256
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
256
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
257
257
  var MIN_TS_VERSION = "4.6.2";
258
258
  var MAX_TS_VERSION = "4.9.0";
259
259
  var tsVersion = ts2.version;
@@ -266,10 +266,10 @@ function verifySupportedTypeScriptVersion() {
266
266
  checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
267
267
  }
268
268
 
269
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
269
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
270
270
  import ts32 from "typescript";
271
271
 
272
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
272
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
273
273
  var CycleAnalyzer = class {
274
274
  constructor(importGraph) {
275
275
  this.importGraph = importGraph;
@@ -340,7 +340,7 @@ var Cycle = class {
340
340
  }
341
341
  };
342
342
 
343
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
343
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
344
344
  import ts3 from "typescript";
345
345
  var ImportGraph = class {
346
346
  constructor(checker, perf) {
@@ -432,7 +432,7 @@ var Found = class {
432
432
  }
433
433
  };
434
434
 
435
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
435
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
436
436
  import ts4 from "typescript";
437
437
  var FlatIndexGenerator = class {
438
438
  constructor(entryPoint, relativeFlatIndexPath, moduleName) {
@@ -457,7 +457,7 @@ export * from '${relativeEntryPoint}';
457
457
  }
458
458
  };
459
459
 
460
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
460
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
461
461
  function findFlatIndexEntryPoint(rootFiles) {
462
462
  const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
463
463
  let resolvedEntryPoint = null;
@@ -473,7 +473,7 @@ function findFlatIndexEntryPoint(rootFiles) {
473
473
  return resolvedEntryPoint;
474
474
  }
475
475
 
476
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
476
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
477
477
  import ts5 from "typescript";
478
478
  function checkForPrivateExports(entryPoint, checker, refGraph) {
479
479
  const diagnostics = [];
@@ -553,7 +553,7 @@ function getDescriptorOfDeclaration(decl) {
553
553
  }
554
554
  }
555
555
 
556
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
556
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
557
557
  var ReferenceGraph = class {
558
558
  constructor() {
559
559
  this.references = /* @__PURE__ */ new Map();
@@ -607,7 +607,7 @@ var ReferenceGraph = class {
607
607
  }
608
608
  };
609
609
 
610
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
610
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
611
611
  var NgOriginalFile = Symbol("NgOriginalFile");
612
612
  var UpdateMode;
613
613
  (function(UpdateMode2) {
@@ -615,13 +615,13 @@ var UpdateMode;
615
615
  UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
616
616
  })(UpdateMode || (UpdateMode = {}));
617
617
 
618
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
618
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
619
619
  import ts9 from "typescript";
620
620
 
621
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
621
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
622
622
  import ts6 from "typescript";
623
623
 
624
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
624
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
625
625
  var NgExtension = Symbol("NgExtension");
626
626
  function isExtended(sf) {
627
627
  return sf[NgExtension] !== void 0;
@@ -681,7 +681,7 @@ function retagTsFile(sf) {
681
681
  }
682
682
  }
683
683
 
684
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
684
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
685
685
  var TS_EXTENSIONS = /\.tsx?$/i;
686
686
  function makeShimFileName(fileName, suffix) {
687
687
  return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
@@ -696,7 +696,7 @@ function generatedModuleName(originalModuleName, originalFileName, genSuffix) {
696
696
  return moduleName;
697
697
  }
698
698
 
699
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
699
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
700
700
  var ShimAdapter = class {
701
701
  constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
702
702
  this.delegate = delegate;
@@ -793,7 +793,7 @@ var ShimAdapter = class {
793
793
  }
794
794
  };
795
795
 
796
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
796
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
797
797
  import ts7 from "typescript";
798
798
  var TS_DTS_SUFFIX = /(\.d)?\.ts$/;
799
799
  var STRIP_NG_FACTORY = /(.*)NgFactory$/;
@@ -941,7 +941,7 @@ function updateInitializers(stmt, update) {
941
941
  return ts7.factory.updateVariableStatement(stmt, getModifiers(stmt), ts7.factory.updateVariableDeclarationList(stmt.declarationList, stmt.declarationList.declarations.map((decl) => ts7.factory.updateVariableDeclaration(decl, decl.name, decl.exclamationToken, decl.type, update(decl.initializer)))));
942
942
  }
943
943
 
944
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
944
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
945
945
  var ShimReferenceTagger = class {
946
946
  constructor(shimExtensions) {
947
947
  this.tagged = /* @__PURE__ */ new Set();
@@ -975,7 +975,7 @@ var ShimReferenceTagger = class {
975
975
  }
976
976
  };
977
977
 
978
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
978
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
979
979
  import ts8 from "typescript";
980
980
  var SummaryGenerator = class {
981
981
  constructor() {
@@ -1016,7 +1016,7 @@ function isExported2(decl) {
1016
1016
  return modifiers !== void 0 && modifiers.some((mod) => mod.kind == ts8.SyntaxKind.ExportKeyword) || false;
1017
1017
  }
1018
1018
 
1019
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
1019
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
1020
1020
  var DelegatingCompilerHost = class {
1021
1021
  constructor(delegate) {
1022
1022
  this.delegate = delegate;
@@ -1040,6 +1040,7 @@ var DelegatingCompilerHost = class {
1040
1040
  this.trace = this.delegateMethod("trace");
1041
1041
  this.useCaseSensitiveFileNames = this.delegateMethod("useCaseSensitiveFileNames");
1042
1042
  this.getModuleResolutionCache = this.delegateMethod("getModuleResolutionCache");
1043
+ this.hasInvalidatedResolutions = this.delegateMethod("hasInvalidatedResolutions");
1043
1044
  }
1044
1045
  delegateMethod(name) {
1045
1046
  return this.delegate[name] !== void 0 ? this.delegate[name].bind(this.delegate) : void 0;
@@ -1126,7 +1127,7 @@ var TsCreateProgramDriver = class {
1126
1127
  }
1127
1128
  };
1128
1129
 
1129
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
1130
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
1130
1131
  var FileDependencyGraph = class {
1131
1132
  constructor() {
1132
1133
  this.nodes = /* @__PURE__ */ new Map();
@@ -1193,7 +1194,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
1193
1194
  return false;
1194
1195
  }
1195
1196
 
1196
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
1197
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
1197
1198
  var IncrementalStateKind;
1198
1199
  (function(IncrementalStateKind2) {
1199
1200
  IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
@@ -1201,7 +1202,7 @@ var IncrementalStateKind;
1201
1202
  IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
1202
1203
  })(IncrementalStateKind || (IncrementalStateKind = {}));
1203
1204
 
1204
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
1205
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
1205
1206
  var PhaseKind;
1206
1207
  (function(PhaseKind2) {
1207
1208
  PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
@@ -1402,7 +1403,7 @@ function toOriginalSourceFile(sf) {
1402
1403
  }
1403
1404
  }
1404
1405
 
1405
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
1406
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
1406
1407
  var TrackedIncrementalBuildStrategy = class {
1407
1408
  constructor() {
1408
1409
  this.state = null;
@@ -1438,7 +1439,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
1438
1439
  };
1439
1440
  var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
1440
1441
 
1441
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
1442
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
1442
1443
  var IdentifierKind;
1443
1444
  (function(IdentifierKind2) {
1444
1445
  IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
@@ -1456,7 +1457,7 @@ var AbsoluteSourceSpan = class {
1456
1457
  }
1457
1458
  };
1458
1459
 
1459
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
1460
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
1460
1461
  var IndexingContext = class {
1461
1462
  constructor() {
1462
1463
  this.components = /* @__PURE__ */ new Set();
@@ -1466,10 +1467,10 @@ var IndexingContext = class {
1466
1467
  }
1467
1468
  };
1468
1469
 
1469
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1470
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1470
1471
  import { ParseSourceFile } from "@angular/compiler";
1471
1472
 
1472
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
1473
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
1473
1474
  import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate } from "@angular/compiler";
1474
1475
  var ExpressionVisitor = class extends RecursiveAstVisitor {
1475
1476
  constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
@@ -1706,7 +1707,7 @@ function getTemplateIdentifiers(boundTemplate) {
1706
1707
  return { identifiers: visitor.identifiers, errors: visitor.errors };
1707
1708
  }
1708
1709
 
1709
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1710
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1710
1711
  function generateAnalysis(context) {
1711
1712
  const analysis = /* @__PURE__ */ new Map();
1712
1713
  context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
@@ -1742,7 +1743,7 @@ function generateAnalysis(context) {
1742
1743
  return analysis;
1743
1744
  }
1744
1745
 
1745
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
1746
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
1746
1747
  import ts10 from "typescript";
1747
1748
  var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
1748
1749
  var RESOURCE_MARKER = ".$ngresource$";
@@ -1888,7 +1889,7 @@ function createLookupResolutionHost(adapter) {
1888
1889
  };
1889
1890
  }
1890
1891
 
1891
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
1892
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
1892
1893
  var StandaloneComponentScopeReader = class {
1893
1894
  constructor(metaReader, localModuleReader, dtsModuleReader) {
1894
1895
  this.metaReader = metaReader;
@@ -1966,10 +1967,10 @@ var StandaloneComponentScopeReader = class {
1966
1967
  }
1967
1968
  };
1968
1969
 
1969
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
1970
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
1970
1971
  import { CssSelector, DomElementSchemaRegistry as DomElementSchemaRegistry2 } from "@angular/compiler";
1971
1972
 
1972
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
1973
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
1973
1974
  import ts11 from "typescript";
1974
1975
  function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
1975
1976
  var _a;
@@ -2076,7 +2077,7 @@ function parseTemplateAsSourceFile(fileName, template) {
2076
2077
  return ts11.createSourceFile(fileName, template, ts11.ScriptTarget.Latest, false, ts11.ScriptKind.JSX);
2077
2078
  }
2078
2079
 
2079
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
2080
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
2080
2081
  var TEMPLATE_ID = Symbol("ngTemplateId");
2081
2082
  var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
2082
2083
  function getTemplateId(clazz) {
@@ -2093,11 +2094,11 @@ function allocateTemplateId(sf) {
2093
2094
  return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
2094
2095
  }
2095
2096
 
2096
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
2097
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
2097
2098
  import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
2098
2099
  import ts13 from "typescript";
2099
2100
 
2100
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
2101
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
2101
2102
  import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
2102
2103
  import ts12 from "typescript";
2103
2104
  var parseSpanComment = /^(\d+),(\d+)$/;
@@ -2217,7 +2218,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
2217
2218
  }) || false;
2218
2219
  }
2219
2220
 
2220
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
2221
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
2221
2222
  var CompletionEngine = class {
2222
2223
  constructor(tcb, data, tcbPath, tcbIsShim) {
2223
2224
  this.tcb = tcb;
@@ -2374,10 +2375,10 @@ var CompletionEngine = class {
2374
2375
  }
2375
2376
  };
2376
2377
 
2377
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
2378
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
2378
2379
  import ts27 from "typescript";
2379
2380
 
2380
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
2381
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
2381
2382
  import { DomElementSchemaRegistry } from "@angular/compiler";
2382
2383
  import ts14 from "typescript";
2383
2384
  var REGISTRY = new DomElementSchemaRegistry();
@@ -2430,11 +2431,11 @@ var RegistryDomSchemaChecker = class {
2430
2431
  }
2431
2432
  };
2432
2433
 
2433
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
2434
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
2434
2435
  import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
2435
2436
  import ts20 from "typescript";
2436
2437
 
2437
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
2438
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
2438
2439
  import ts15 from "typescript";
2439
2440
  var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
2440
2441
  ts15.SyntaxKind.ParenthesizedExpression,
@@ -2481,16 +2482,16 @@ function isAccessExpression(node) {
2481
2482
  return ts15.isPropertyAccessExpression(node) || ts15.isElementAccessExpression(node);
2482
2483
  }
2483
2484
 
2484
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
2485
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
2485
2486
  import ts19 from "typescript";
2486
2487
 
2487
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
2488
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
2488
2489
  import ts18 from "typescript";
2489
2490
 
2490
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
2491
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
2491
2492
  import ts17 from "typescript";
2492
2493
 
2493
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
2494
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
2494
2495
  import ts16 from "typescript";
2495
2496
  var INELIGIBLE = {};
2496
2497
  function canEmitType(type, canEmit) {
@@ -2565,7 +2566,7 @@ var TypeEmitter = class {
2565
2566
  }
2566
2567
  };
2567
2568
 
2568
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
2569
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
2569
2570
  var TypeParameterEmitter = class {
2570
2571
  constructor(typeParameters, reflector) {
2571
2572
  this.typeParameters = typeParameters;
@@ -2642,7 +2643,7 @@ var TypeParameterEmitter = class {
2642
2643
  }
2643
2644
  };
2644
2645
 
2645
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
2646
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
2646
2647
  var TcbInliningRequirement;
2647
2648
  (function(TcbInliningRequirement2) {
2648
2649
  TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
@@ -2722,7 +2723,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
2722
2723
  return emitter.canEmit((ref) => env.canReferenceType(ref));
2723
2724
  }
2724
2725
 
2725
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
2726
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
2726
2727
  function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
2727
2728
  const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
2728
2729
  const rawType = ts19.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
@@ -2793,7 +2794,7 @@ function typeParametersWithDefaultTypes(params) {
2793
2794
  });
2794
2795
  }
2795
2796
 
2796
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
2797
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
2797
2798
  var Environment = class {
2798
2799
  constructor(config, importManager, refEmitter, reflector, contextFile) {
2799
2800
  this.config = config;
@@ -2885,7 +2886,7 @@ var Environment = class {
2885
2886
  }
2886
2887
  };
2887
2888
 
2888
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
2889
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
2889
2890
  import { TmplAstElement as TmplAstElement2 } from "@angular/compiler";
2890
2891
  import ts21 from "typescript";
2891
2892
  var OutOfBandDiagnosticRecorderImpl = class {
@@ -3018,7 +3019,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
3018
3019
  };
3019
3020
  }
3020
3021
 
3021
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
3022
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
3022
3023
  import ts22 from "typescript";
3023
3024
  var TypeCheckShimGenerator = class {
3024
3025
  constructor() {
@@ -3036,11 +3037,11 @@ var TypeCheckShimGenerator = class {
3036
3037
  }
3037
3038
  };
3038
3039
 
3039
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
3040
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
3040
3041
  import { BindingPipe, Call as Call2, DYNAMIC_TYPE, ImplicitReceiver as ImplicitReceiver4, PropertyRead as PropertyRead4, PropertyWrite as PropertyWrite3, SafeCall, SafePropertyRead as SafePropertyRead3, ThisReceiver, TmplAstBoundAttribute, TmplAstBoundText, TmplAstElement as TmplAstElement3, TmplAstIcu, TmplAstReference as TmplAstReference3, TmplAstTemplate as TmplAstTemplate2, TmplAstTextAttribute as TmplAstTextAttribute2, TmplAstVariable as TmplAstVariable2 } from "@angular/compiler";
3041
3042
  import ts25 from "typescript";
3042
3043
 
3043
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
3044
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
3044
3045
  import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
3045
3046
  import ts23 from "typescript";
3046
3047
  function wrapForDiagnostics(expr) {
@@ -3086,7 +3087,7 @@ function translateDiagnostic(diagnostic, resolver) {
3086
3087
  return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
3087
3088
  }
3088
3089
 
3089
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
3090
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
3090
3091
  import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
3091
3092
  import ts24 from "typescript";
3092
3093
  var NULL_AS_ANY = ts24.factory.createAsExpression(ts24.factory.createNull(), ts24.factory.createKeywordTypeNode(ts24.SyntaxKind.AnyKeyword));
@@ -3416,7 +3417,7 @@ var VeSafeLhsInferenceBugDetector = class {
3416
3417
  };
3417
3418
  VeSafeLhsInferenceBugDetector.SINGLETON = new VeSafeLhsInferenceBugDetector();
3418
3419
 
3419
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
3420
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
3420
3421
  import { ImplicitReceiver as ImplicitReceiver3, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstVariable } from "@angular/compiler";
3421
3422
  var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
3422
3423
  constructor(templateId, boundTarget, oob) {
@@ -3440,7 +3441,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
3440
3441
  }
3441
3442
  };
3442
3443
 
3443
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
3444
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
3444
3445
  var TcbGenericContextBehavior;
3445
3446
  (function(TcbGenericContextBehavior2) {
3446
3447
  TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
@@ -4501,7 +4502,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
4501
4502
  }
4502
4503
  };
4503
4504
 
4504
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
4505
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
4505
4506
  import ts26 from "typescript";
4506
4507
  var TypeCheckFile = class extends Environment {
4507
4508
  constructor(fileName, config, refEmitter, reflector, compilerHost) {
@@ -4537,7 +4538,7 @@ var TypeCheckFile = class extends Environment {
4537
4538
  }
4538
4539
  };
4539
4540
 
4540
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
4541
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
4541
4542
  var InliningMode;
4542
4543
  (function(InliningMode2) {
4543
4544
  InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
@@ -4775,10 +4776,10 @@ function splitStringAtPoints(str, points) {
4775
4776
  return splits;
4776
4777
  }
4777
4778
 
4778
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
4779
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
4779
4780
  import { ParseLocation, ParseSourceSpan } from "@angular/compiler";
4780
4781
 
4781
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
4782
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
4782
4783
  var LF_CHAR = 10;
4783
4784
  var CR_CHAR = 13;
4784
4785
  var LINE_SEP_CHAR = 8232;
@@ -4819,7 +4820,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
4819
4820
  return low - 1;
4820
4821
  }
4821
4822
 
4822
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
4823
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
4823
4824
  var TemplateSource = class {
4824
4825
  constructor(mapping, file) {
4825
4826
  this.mapping = mapping;
@@ -4870,7 +4871,7 @@ var TemplateSourceManager = class {
4870
4871
  }
4871
4872
  };
4872
4873
 
4873
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
4874
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
4874
4875
  import { AST, ASTWithSource as ASTWithSource3, BindingPipe as BindingPipe2, PropertyRead as PropertyRead5, PropertyWrite as PropertyWrite4, SafePropertyRead as SafePropertyRead4, TmplAstBoundAttribute as TmplAstBoundAttribute2, TmplAstBoundEvent, TmplAstElement as TmplAstElement4, TmplAstReference as TmplAstReference4, TmplAstTemplate as TmplAstTemplate3, TmplAstTextAttribute as TmplAstTextAttribute3, TmplAstVariable as TmplAstVariable3 } from "@angular/compiler";
4875
4876
  import ts28 from "typescript";
4876
4877
  var SymbolBuilder = class {
@@ -4953,14 +4954,17 @@ var SymbolBuilder = class {
4953
4954
  return null;
4954
4955
  }
4955
4956
  const isComponent = (_a2 = meta.isComponent) != null ? _a2 : null;
4957
+ const ref = new Reference(symbol.tsSymbol.valueDeclaration);
4956
4958
  const directiveSymbol = {
4957
4959
  ...symbol,
4960
+ ref,
4958
4961
  tsSymbol: symbol.tsSymbol,
4959
4962
  selector: meta.selector,
4960
4963
  isComponent,
4961
4964
  ngModule,
4962
4965
  kind: SymbolKind.Directive,
4963
- isStructural: meta.isStructural
4966
+ isStructural: meta.isStructural,
4967
+ isInScope: true
4964
4968
  };
4965
4969
  return directiveSymbol;
4966
4970
  }).filter((d) => d !== null);
@@ -5124,8 +5128,10 @@ var SymbolBuilder = class {
5124
5128
  if (symbol === null || !isSymbolWithValueDeclaration(symbol.tsSymbol) || !ts28.isClassDeclaration(symbol.tsSymbol.valueDeclaration)) {
5125
5129
  return null;
5126
5130
  }
5131
+ const ref = new Reference(symbol.tsSymbol.valueDeclaration);
5127
5132
  const ngModule = this.getDirectiveModule(symbol.tsSymbol.valueDeclaration);
5128
5133
  return {
5134
+ ref,
5129
5135
  kind: SymbolKind.Directive,
5130
5136
  tsSymbol: symbol.tsSymbol,
5131
5137
  tsType: symbol.tsType,
@@ -5133,7 +5139,8 @@ var SymbolBuilder = class {
5133
5139
  isComponent,
5134
5140
  isStructural,
5135
5141
  selector,
5136
- ngModule
5142
+ ngModule,
5143
+ isInScope: true
5137
5144
  };
5138
5145
  }
5139
5146
  getSymbolOfVariable(variable) {
@@ -5315,10 +5322,10 @@ function sourceSpanEqual(a, b) {
5315
5322
  return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
5316
5323
  }
5317
5324
 
5318
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
5325
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
5319
5326
  var REGISTRY2 = new DomElementSchemaRegistry2();
5320
5327
  var TemplateTypeCheckerImpl = class {
5321
- constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, componentScopeReader, typeCheckScopeRegistry, perf) {
5328
+ constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, componentScopeReader, typeCheckScopeRegistry, perf) {
5322
5329
  this.originalProgram = originalProgram;
5323
5330
  this.programDriver = programDriver;
5324
5331
  this.typeCheckAdapter = typeCheckAdapter;
@@ -5328,6 +5335,7 @@ var TemplateTypeCheckerImpl = class {
5328
5335
  this.compilerHost = compilerHost;
5329
5336
  this.priorBuild = priorBuild;
5330
5337
  this.metaReader = metaReader;
5338
+ this.localMetaReader = localMetaReader;
5331
5339
  this.componentScopeReader = componentScopeReader;
5332
5340
  this.typeCheckScopeRegistry = typeCheckScopeRegistry;
5333
5341
  this.perf = perf;
@@ -5661,12 +5669,26 @@ var TemplateTypeCheckerImpl = class {
5661
5669
  this.symbolBuilderCache.set(component, builder);
5662
5670
  return builder;
5663
5671
  }
5664
- getDirectivesInScope(component) {
5665
- const data = this.getScopeData(component);
5666
- if (data === null) {
5667
- return null;
5672
+ getPotentialTemplateDirectives(component) {
5673
+ var _a, _b;
5674
+ const typeChecker = this.programDriver.getProgram().getTypeChecker();
5675
+ const inScopeDirectives = (_b = (_a = this.getScopeData(component)) == null ? void 0 : _a.directives) != null ? _b : [];
5676
+ const resultingDirectives = /* @__PURE__ */ new Map();
5677
+ for (const d of inScopeDirectives) {
5678
+ resultingDirectives.set(d.ref.node, d);
5679
+ }
5680
+ for (const directiveClass of this.localMetaReader.getKnownDirectives()) {
5681
+ const directiveMeta = this.metaReader.getDirectiveMetadata(new Reference(directiveClass));
5682
+ if (directiveMeta === null)
5683
+ continue;
5684
+ if (resultingDirectives.has(directiveClass))
5685
+ continue;
5686
+ const withScope = this.scopeDataOfDirectiveMeta(typeChecker, directiveMeta);
5687
+ if (withScope === null)
5688
+ continue;
5689
+ resultingDirectives.set(directiveClass, { ...withScope, isInScope: false });
5668
5690
  }
5669
- return data.directives;
5691
+ return Array.from(resultingDirectives.values());
5670
5692
  }
5671
5693
  getPipesInScope(component) {
5672
5694
  const data = this.getScopeData(component);
@@ -5767,25 +5789,10 @@ var TemplateTypeCheckerImpl = class {
5767
5789
  const typeChecker = this.programDriver.getProgram().getTypeChecker();
5768
5790
  for (const dep of dependencies) {
5769
5791
  if (dep.kind === MetaKind.Directive) {
5770
- if (dep.selector === null) {
5771
- continue;
5772
- }
5773
- const tsSymbol = typeChecker.getSymbolAtLocation(dep.ref.node.name);
5774
- if (!isSymbolWithValueDeclaration(tsSymbol)) {
5792
+ const dirScope = this.scopeDataOfDirectiveMeta(typeChecker, dep);
5793
+ if (dirScope === null)
5775
5794
  continue;
5776
- }
5777
- let ngModule = null;
5778
- const moduleScopeOfDir = this.componentScopeReader.getScopeForComponent(dep.ref.node);
5779
- if (moduleScopeOfDir !== null && moduleScopeOfDir.kind === ComponentScopeKind.NgModule) {
5780
- ngModule = moduleScopeOfDir.ngModule;
5781
- }
5782
- data.directives.push({
5783
- isComponent: dep.isComponent,
5784
- isStructural: dep.isStructural,
5785
- selector: dep.selector,
5786
- tsSymbol,
5787
- ngModule
5788
- });
5795
+ data.directives.push({ ...dirScope, isInScope: true });
5789
5796
  } else if (dep.kind === MetaKind.Pipe) {
5790
5797
  const tsSymbol = typeChecker.getSymbolAtLocation(dep.ref.node.name);
5791
5798
  if (tsSymbol === void 0) {
@@ -5793,13 +5800,36 @@ var TemplateTypeCheckerImpl = class {
5793
5800
  }
5794
5801
  data.pipes.push({
5795
5802
  name: dep.name,
5796
- tsSymbol
5803
+ tsSymbol,
5804
+ isInScope: true
5797
5805
  });
5798
5806
  }
5799
5807
  }
5800
5808
  this.scopeCache.set(component, data);
5801
5809
  return data;
5802
5810
  }
5811
+ scopeDataOfDirectiveMeta(typeChecker, dep) {
5812
+ if (dep.selector === null) {
5813
+ return null;
5814
+ }
5815
+ const tsSymbol = typeChecker.getSymbolAtLocation(dep.ref.node.name);
5816
+ if (!isSymbolWithValueDeclaration(tsSymbol)) {
5817
+ return null;
5818
+ }
5819
+ let ngModule = null;
5820
+ const moduleScopeOfDir = this.componentScopeReader.getScopeForComponent(dep.ref.node);
5821
+ if (moduleScopeOfDir !== null && moduleScopeOfDir.kind === ComponentScopeKind.NgModule) {
5822
+ ngModule = moduleScopeOfDir.ngModule;
5823
+ }
5824
+ return {
5825
+ ref: dep.ref,
5826
+ isComponent: dep.isComponent,
5827
+ isStructural: dep.isStructural,
5828
+ selector: dep.selector,
5829
+ tsSymbol,
5830
+ ngModule
5831
+ };
5832
+ }
5803
5833
  };
5804
5834
  function convertDiagnostic(diag, sourceResolver) {
5805
5835
  if (!shouldReportDiagnostic(diag)) {
@@ -5887,10 +5917,10 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
5887
5917
  }
5888
5918
  };
5889
5919
 
5890
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
5920
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
5891
5921
  import { TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
5892
5922
 
5893
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
5923
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
5894
5924
  import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor3 } from "@angular/compiler";
5895
5925
  var TemplateCheckWithVisitor = class {
5896
5926
  run(ctx, component, template) {
@@ -5967,7 +5997,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor3 {
5967
5997
  }
5968
5998
  };
5969
5999
 
5970
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
6000
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
5971
6001
  var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
5972
6002
  constructor() {
5973
6003
  super(...arguments);
@@ -5992,7 +6022,7 @@ var factory = {
5992
6022
  create: () => new InvalidBananaInBoxCheck()
5993
6023
  };
5994
6024
 
5995
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
6025
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
5996
6026
  import { TmplAstTemplate as TmplAstTemplate4 } from "@angular/compiler";
5997
6027
  var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
5998
6028
  ["ngIf", "NgIf"],
@@ -6037,7 +6067,7 @@ var factory2 = {
6037
6067
  }
6038
6068
  };
6039
6069
 
6040
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
6070
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
6041
6071
  import { TmplAstTemplate as TmplAstTemplate5 } from "@angular/compiler";
6042
6072
  var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
6043
6073
  constructor() {
@@ -6070,7 +6100,7 @@ var factory3 = {
6070
6100
  create: () => new MissingNgForOfLetCheck()
6071
6101
  };
6072
6102
 
6073
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
6103
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
6074
6104
  import { Binary } from "@angular/compiler";
6075
6105
  import ts29 from "typescript";
6076
6106
  var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
@@ -6115,7 +6145,7 @@ var factory4 = {
6115
6145
  }
6116
6146
  };
6117
6147
 
6118
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
6148
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
6119
6149
  import { SafeCall as SafeCall2, SafeKeyedRead as SafeKeyedRead2, SafePropertyRead as SafePropertyRead5 } from "@angular/compiler";
6120
6150
  import ts30 from "typescript";
6121
6151
  var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
@@ -6161,7 +6191,7 @@ var factory5 = {
6161
6191
  }
6162
6192
  };
6163
6193
 
6164
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
6194
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
6165
6195
  import { TmplAstBoundAttribute as TmplAstBoundAttribute3 } from "@angular/compiler";
6166
6196
  var STYLE_SUFFIXES = ["px", "%", "em"];
6167
6197
  var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
@@ -6185,7 +6215,7 @@ var factory6 = {
6185
6215
  create: () => new SuffixNotSupportedCheck()
6186
6216
  };
6187
6217
 
6188
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
6218
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
6189
6219
  import { TmplAstTextAttribute as TmplAstTextAttribute4 } from "@angular/compiler";
6190
6220
  var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
6191
6221
  constructor() {
@@ -6224,10 +6254,10 @@ var factory7 = {
6224
6254
  create: () => new TextAttributeNotBindingSpec()
6225
6255
  };
6226
6256
 
6227
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
6257
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
6228
6258
  import ts31 from "typescript";
6229
6259
 
6230
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
6260
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
6231
6261
  var DiagnosticCategoryLabel;
6232
6262
  (function(DiagnosticCategoryLabel2) {
6233
6263
  DiagnosticCategoryLabel2["Warning"] = "warning";
@@ -6235,7 +6265,7 @@ var DiagnosticCategoryLabel;
6235
6265
  DiagnosticCategoryLabel2["Suppress"] = "suppress";
6236
6266
  })(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
6237
6267
 
6238
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
6268
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
6239
6269
  var ExtendedTemplateCheckerImpl = class {
6240
6270
  constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
6241
6271
  var _a, _b, _c, _d, _e;
@@ -6288,7 +6318,7 @@ function assertNever(value) {
6288
6318
  ${value}`);
6289
6319
  }
6290
6320
 
6291
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
6321
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
6292
6322
  var ALL_DIAGNOSTIC_FACTORIES = [
6293
6323
  factory,
6294
6324
  factory4,
@@ -6299,7 +6329,7 @@ var ALL_DIAGNOSTIC_FACTORIES = [
6299
6329
  factory6
6300
6330
  ];
6301
6331
 
6302
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
6332
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
6303
6333
  var CompilationTicketKind;
6304
6334
  (function(CompilationTicketKind2) {
6305
6335
  CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
@@ -6820,7 +6850,7 @@ var NgCompiler = class {
6820
6850
  this.incrementalStrategy.setIncrementalState(this.incrementalCompilation.state, program);
6821
6851
  this.currentProgram = program;
6822
6852
  });
6823
- const templateTypeChecker = new TemplateTypeCheckerImpl(this.inputProgram, notifyingDriver, traitCompiler, this.getTypeCheckingConfig(), refEmitter, reflector, this.adapter, this.incrementalCompilation, metaReader, scopeReader, typeCheckScopeRegistry, this.delegatingPerfRecorder);
6853
+ const templateTypeChecker = new TemplateTypeCheckerImpl(this.inputProgram, notifyingDriver, traitCompiler, this.getTypeCheckingConfig(), refEmitter, reflector, this.adapter, this.incrementalCompilation, metaReader, localMetaReader, scopeReader, typeCheckScopeRegistry, this.delegatingPerfRecorder);
6824
6854
  const extendedTemplateChecker = this.constructionDiagnostics.length === 0 ? new ExtendedTemplateCheckerImpl(templateTypeChecker, checker, ALL_DIAGNOSTIC_FACTORIES, this.options) : null;
6825
6855
  return {
6826
6856
  isCore,
@@ -7000,7 +7030,7 @@ function versionMapFromProgram(program, driver) {
7000
7030
  return versions;
7001
7031
  }
7002
7032
 
7003
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
7033
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
7004
7034
  import ts33 from "typescript";
7005
7035
  var DelegatingCompilerHost2 = class {
7006
7036
  constructor(delegate) {
@@ -7031,6 +7061,7 @@ var DelegatingCompilerHost2 = class {
7031
7061
  this.useCaseSensitiveFileNames = this.delegateMethod("useCaseSensitiveFileNames");
7032
7062
  this.writeFile = this.delegateMethod("writeFile");
7033
7063
  this.getModuleResolutionCache = this.delegateMethod("getModuleResolutionCache");
7064
+ this.hasInvalidatedResolutions = this.delegateMethod("hasInvalidatedResolutions");
7034
7065
  }
7035
7066
  delegateMethod(name) {
7036
7067
  return this.delegate[name] !== void 0 ? this.delegate[name].bind(this.delegate) : void 0;
@@ -7144,7 +7175,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
7144
7175
  }
7145
7176
  };
7146
7177
 
7147
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
7178
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
7148
7179
  var NgtscProgram = class {
7149
7180
  constructor(rootNames, options, delegateHost, oldProgram) {
7150
7181
  this.options = options;
@@ -7353,15 +7384,15 @@ function mergeEmitResults(emitResults) {
7353
7384
  return { diagnostics, emitSkipped, emittedFiles };
7354
7385
  }
7355
7386
 
7356
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
7387
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
7357
7388
  function createProgram({ rootNames, options, host, oldProgram }) {
7358
7389
  return new NgtscProgram(rootNames, options, host, oldProgram);
7359
7390
  }
7360
7391
 
7361
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
7392
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
7362
7393
  import ts36 from "typescript";
7363
7394
 
7364
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
7395
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
7365
7396
  import ts35 from "typescript";
7366
7397
  function createMessageDiagnostic(messageText) {
7367
7398
  return {
@@ -7375,7 +7406,7 @@ function createMessageDiagnostic(messageText) {
7375
7406
  };
7376
7407
  }
7377
7408
 
7378
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
7409
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
7379
7410
  var defaultFormatHost = {
7380
7411
  getCurrentDirectory: () => ts36.sys.getCurrentDirectory(),
7381
7412
  getCanonicalFileName: (fileName) => fileName,
@@ -7588,4 +7619,4 @@ export {
7588
7619
  * found in the LICENSE file at https://angular.io/license
7589
7620
  */
7590
7621
  // Closure Compiler ignores @suppress and similar if the comment contains @license.
7591
- //# sourceMappingURL=chunk-TC3DKEFP.js.map
7622
+ //# sourceMappingURL=chunk-YEQI6VDV.js.map