@angular/compiler-cli 14.1.0-next.0 → 14.1.0-next.1

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 (57) hide show
  1. package/bundles/{chunk-ZJCM37WF.js → chunk-2IMT6JFI.js} +6 -6
  2. package/bundles/{chunk-ZJCM37WF.js.map → chunk-2IMT6JFI.js.map} +0 -0
  3. package/bundles/{chunk-UERCMXQE.js → chunk-32MQTE7C.js} +74 -71
  4. package/bundles/{chunk-UERCMXQE.js.map → chunk-32MQTE7C.js.map} +1 -1
  5. package/bundles/{chunk-GIDRICZE.js → chunk-5OLIDMUF.js} +5 -5
  6. package/bundles/{chunk-GIDRICZE.js.map → chunk-5OLIDMUF.js.map} +0 -0
  7. package/bundles/{chunk-VAPEAGED.js → chunk-DSIJ6FBS.js} +146 -126
  8. package/bundles/chunk-DSIJ6FBS.js.map +6 -0
  9. package/bundles/{chunk-SFACRVMZ.js → chunk-KGCKQ2PH.js} +28 -26
  10. package/bundles/chunk-KGCKQ2PH.js.map +6 -0
  11. package/bundles/{chunk-7J66ZDC5.js → chunk-LX5Q27EF.js} +3 -3
  12. package/bundles/{chunk-7J66ZDC5.js.map → chunk-LX5Q27EF.js.map} +0 -0
  13. package/bundles/{chunk-U2VFXNL7.js → chunk-OLGEBPBY.js} +4 -4
  14. package/bundles/{chunk-U2VFXNL7.js.map → chunk-OLGEBPBY.js.map} +0 -0
  15. package/bundles/{chunk-PI2777Z6.js → chunk-QGR2YCRK.js} +70 -70
  16. package/bundles/{chunk-PI2777Z6.js.map → chunk-QGR2YCRK.js.map} +0 -0
  17. package/bundles/{chunk-HMWNYAAE.js → chunk-R3C7RFJ4.js} +2 -2
  18. package/bundles/{chunk-HMWNYAAE.js.map → chunk-R3C7RFJ4.js.map} +0 -0
  19. package/bundles/{chunk-QK4SXRQA.js → chunk-R4NY3TJC.js} +5 -5
  20. package/bundles/{chunk-QK4SXRQA.js.map → chunk-R4NY3TJC.js.map} +0 -0
  21. package/bundles/{chunk-JJOKGPPP.js → chunk-SO3HP2WO.js} +31 -31
  22. package/bundles/{chunk-JJOKGPPP.js.map → chunk-SO3HP2WO.js.map} +0 -0
  23. package/bundles/{chunk-MURZUYM7.js → chunk-T7MYRXIE.js} +7 -7
  24. package/bundles/{chunk-MURZUYM7.js.map → chunk-T7MYRXIE.js.map} +0 -0
  25. package/bundles/{chunk-CFXFF2GM.js → chunk-U2GR6UX6.js} +40 -40
  26. package/bundles/{chunk-CFXFF2GM.js.map → chunk-U2GR6UX6.js.map} +0 -0
  27. package/bundles/{chunk-AKU7LV22.js → chunk-W6KM7BUM.js} +6 -6
  28. package/bundles/{chunk-AKU7LV22.js.map → chunk-W6KM7BUM.js.map} +0 -0
  29. package/bundles/{chunk-BFPVXDJN.js → chunk-WGBFSDVQ.js} +7 -7
  30. package/bundles/{chunk-BFPVXDJN.js.map → chunk-WGBFSDVQ.js.map} +0 -0
  31. package/bundles/index.js +12 -12
  32. package/bundles/linker/babel/index.js +12 -12
  33. package/bundles/linker/index.js +4 -4
  34. package/bundles/ngcc/index.js +12 -12
  35. package/bundles/ngcc/main-ngcc.js +13 -13
  36. package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +13 -13
  37. package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +4 -4
  38. package/bundles/private/bazel.js +1 -1
  39. package/bundles/private/localize.js +3 -3
  40. package/bundles/private/migrations.js +5 -5
  41. package/bundles/private/tooling.js +2 -2
  42. package/bundles/src/bin/ng_xi18n.js +10 -10
  43. package/bundles/src/bin/ngc.js +8 -8
  44. package/bundles_metadata.json +1 -1
  45. package/ngcc/src/packages/build_marker.d.ts +1 -1
  46. package/package.json +2 -2
  47. package/src/ngtsc/diagnostics/src/error_code.d.ts +5 -0
  48. package/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.d.ts +2 -1
  49. package/src/ngtsc/program.d.ts +1 -0
  50. package/src/ngtsc/typecheck/api/api.d.ts +1 -0
  51. package/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.d.ts +11 -0
  52. package/src/ngtsc/typecheck/src/tcb_util.d.ts +1 -1
  53. package/src/ngtsc/typecheck/src/ts_util.d.ts +0 -3
  54. package/src/perform_compile.d.ts +2 -1
  55. package/src/transformers/api.d.ts +2 -1
  56. package/bundles/chunk-SFACRVMZ.js.map +0 -6
  57. package/bundles/chunk-VAPEAGED.js.map +0 -6
@@ -30,11 +30,11 @@ import {
30
30
  aliasTransformFactory,
31
31
  declarationTransformFactory,
32
32
  ivyTransformFactory
33
- } from "./chunk-UERCMXQE.js";
33
+ } from "./chunk-32MQTE7C.js";
34
34
  import {
35
35
  TypeScriptReflectionHost,
36
36
  isNamedClassDeclaration
37
- } from "./chunk-ZJCM37WF.js";
37
+ } from "./chunk-2IMT6JFI.js";
38
38
  import {
39
39
  AbsoluteModuleStrategy,
40
40
  AliasStrategy,
@@ -73,7 +73,7 @@ import {
73
73
  toUnredirectedSourceFile,
74
74
  translateExpression,
75
75
  translateType
76
- } from "./chunk-SFACRVMZ.js";
76
+ } from "./chunk-KGCKQ2PH.js";
77
77
  import {
78
78
  LogicalFileSystem,
79
79
  absoluteFrom,
@@ -84,20 +84,20 @@ import {
84
84
  getSourceFileOrError,
85
85
  join,
86
86
  resolve
87
- } from "./chunk-MURZUYM7.js";
87
+ } from "./chunk-T7MYRXIE.js";
88
88
  import {
89
89
  ActivePerfRecorder,
90
90
  DelegatingPerfRecorder,
91
91
  PerfCheckpoint,
92
92
  PerfEvent,
93
93
  PerfPhase
94
- } from "./chunk-QK4SXRQA.js";
94
+ } from "./chunk-R4NY3TJC.js";
95
95
  import {
96
96
  __spreadProps,
97
97
  __spreadValues
98
98
  } from "./chunk-GMSUYBZP.js";
99
99
 
100
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
100
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
101
101
  var DEFAULT_ERROR_CODE = 100;
102
102
  var UNKNOWN_ERROR_CODE = 500;
103
103
  var SOURCE = "angular";
@@ -115,7 +115,7 @@ var EmitFlags;
115
115
  EmitFlags2[EmitFlags2["All"] = 31] = "All";
116
116
  })(EmitFlags || (EmitFlags = {}));
117
117
 
118
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
118
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
119
119
  import ts from "typescript";
120
120
  var wrapHostForTest = null;
121
121
  function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, true) }) {
@@ -125,21 +125,21 @@ function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, t
125
125
  return tsHost;
126
126
  }
127
127
 
128
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
128
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
129
129
  var OptimizeFor;
130
130
  (function(OptimizeFor2) {
131
131
  OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
132
132
  OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
133
133
  })(OptimizeFor || (OptimizeFor = {}));
134
134
 
135
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
135
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
136
136
  var CompletionKind;
137
137
  (function(CompletionKind2) {
138
138
  CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
139
139
  CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
140
140
  })(CompletionKind || (CompletionKind = {}));
141
141
 
142
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
142
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
143
143
  var SymbolKind;
144
144
  (function(SymbolKind2) {
145
145
  SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
@@ -155,11 +155,11 @@ var SymbolKind;
155
155
  SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
156
156
  })(SymbolKind || (SymbolKind = {}));
157
157
 
158
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
158
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
159
159
  import { HtmlParser, MessageBundle } from "@angular/compiler";
160
160
  import ts33 from "typescript";
161
161
 
162
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
162
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
163
163
  import { Xliff, Xliff2, Xmb } from "@angular/compiler";
164
164
  import * as path from "path";
165
165
  function i18nGetExtension(formatName) {
@@ -210,10 +210,10 @@ function getPathNormalizer(basePath) {
210
210
  };
211
211
  }
212
212
 
213
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
213
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
214
214
  import ts2 from "typescript";
215
215
 
216
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
216
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
217
217
  function toNumbers(value) {
218
218
  const suffixIndex = value.lastIndexOf("-");
219
219
  return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
@@ -248,7 +248,7 @@ function compareVersions(v1, v2) {
248
248
  return compareNumbers(toNumbers(v1), toNumbers(v2));
249
249
  }
250
250
 
251
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
251
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
252
252
  var MIN_TS_VERSION = "4.6.2";
253
253
  var MAX_TS_VERSION = "4.8.0";
254
254
  var tsVersion = ts2.version;
@@ -261,10 +261,10 @@ function verifySupportedTypeScriptVersion() {
261
261
  checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
262
262
  }
263
263
 
264
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
264
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
265
265
  import ts31 from "typescript";
266
266
 
267
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
267
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
268
268
  var CycleAnalyzer = class {
269
269
  constructor(importGraph) {
270
270
  this.importGraph = importGraph;
@@ -335,7 +335,7 @@ var Cycle = class {
335
335
  }
336
336
  };
337
337
 
338
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
338
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
339
339
  import ts3 from "typescript";
340
340
  var ImportGraph = class {
341
341
  constructor(checker, perf) {
@@ -427,7 +427,7 @@ var Found = class {
427
427
  }
428
428
  };
429
429
 
430
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
430
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
431
431
  import ts4 from "typescript";
432
432
  var FlatIndexGenerator = class {
433
433
  constructor(entryPoint, relativeFlatIndexPath, moduleName) {
@@ -452,7 +452,7 @@ export * from '${relativeEntryPoint}';
452
452
  }
453
453
  };
454
454
 
455
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
455
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
456
456
  function findFlatIndexEntryPoint(rootFiles) {
457
457
  const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
458
458
  let resolvedEntryPoint = null;
@@ -468,7 +468,7 @@ function findFlatIndexEntryPoint(rootFiles) {
468
468
  return resolvedEntryPoint;
469
469
  }
470
470
 
471
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
471
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
472
472
  import ts5 from "typescript";
473
473
  function checkForPrivateExports(entryPoint, checker, refGraph) {
474
474
  const diagnostics = [];
@@ -548,7 +548,7 @@ function getDescriptorOfDeclaration(decl) {
548
548
  }
549
549
  }
550
550
 
551
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
551
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
552
552
  var ReferenceGraph = class {
553
553
  constructor() {
554
554
  this.references = /* @__PURE__ */ new Map();
@@ -602,7 +602,7 @@ var ReferenceGraph = class {
602
602
  }
603
603
  };
604
604
 
605
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
605
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
606
606
  var NgOriginalFile = Symbol("NgOriginalFile");
607
607
  var UpdateMode;
608
608
  (function(UpdateMode2) {
@@ -610,13 +610,13 @@ var UpdateMode;
610
610
  UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
611
611
  })(UpdateMode || (UpdateMode = {}));
612
612
 
613
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
613
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
614
614
  import ts9 from "typescript";
615
615
 
616
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
616
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
617
617
  import ts6 from "typescript";
618
618
 
619
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
619
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
620
620
  var NgExtension = Symbol("NgExtension");
621
621
  function isExtended(sf) {
622
622
  return sf[NgExtension] !== void 0;
@@ -676,7 +676,7 @@ function retagTsFile(sf) {
676
676
  }
677
677
  }
678
678
 
679
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
679
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
680
680
  var TS_EXTENSIONS = /\.tsx?$/i;
681
681
  function makeShimFileName(fileName, suffix) {
682
682
  return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
@@ -691,7 +691,7 @@ function generatedModuleName(originalModuleName, originalFileName, genSuffix) {
691
691
  return moduleName;
692
692
  }
693
693
 
694
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
694
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
695
695
  var ShimAdapter = class {
696
696
  constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
697
697
  this.delegate = delegate;
@@ -788,7 +788,7 @@ var ShimAdapter = class {
788
788
  }
789
789
  };
790
790
 
791
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
791
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
792
792
  import ts7 from "typescript";
793
793
  var TS_DTS_SUFFIX = /(\.d)?\.ts$/;
794
794
  var STRIP_NG_FACTORY = /(.*)NgFactory$/;
@@ -935,7 +935,7 @@ function updateInitializers(stmt, update) {
935
935
  return ts7.factory.updateVariableStatement(stmt, stmt.modifiers, ts7.factory.updateVariableDeclarationList(stmt.declarationList, stmt.declarationList.declarations.map((decl) => ts7.updateVariableDeclaration(decl, decl.name, decl.type, update(decl.initializer)))));
936
936
  }
937
937
 
938
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
938
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
939
939
  var ShimReferenceTagger = class {
940
940
  constructor(shimExtensions) {
941
941
  this.tagged = /* @__PURE__ */ new Set();
@@ -969,7 +969,7 @@ var ShimReferenceTagger = class {
969
969
  }
970
970
  };
971
971
 
972
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
972
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
973
973
  import ts8 from "typescript";
974
974
  var SummaryGenerator = class {
975
975
  constructor() {
@@ -1009,7 +1009,7 @@ function isExported2(decl) {
1009
1009
  return decl.modifiers !== void 0 && decl.modifiers.some((mod) => mod.kind == ts8.SyntaxKind.ExportKeyword);
1010
1010
  }
1011
1011
 
1012
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
1012
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
1013
1013
  var DelegatingCompilerHost = class {
1014
1014
  constructor(delegate) {
1015
1015
  this.delegate = delegate;
@@ -1119,7 +1119,7 @@ var TsCreateProgramDriver = class {
1119
1119
  }
1120
1120
  };
1121
1121
 
1122
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
1122
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
1123
1123
  var FileDependencyGraph = class {
1124
1124
  constructor() {
1125
1125
  this.nodes = /* @__PURE__ */ new Map();
@@ -1186,7 +1186,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
1186
1186
  return false;
1187
1187
  }
1188
1188
 
1189
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
1189
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
1190
1190
  var IncrementalStateKind;
1191
1191
  (function(IncrementalStateKind2) {
1192
1192
  IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
@@ -1194,7 +1194,7 @@ var IncrementalStateKind;
1194
1194
  IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
1195
1195
  })(IncrementalStateKind || (IncrementalStateKind = {}));
1196
1196
 
1197
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
1197
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
1198
1198
  var PhaseKind;
1199
1199
  (function(PhaseKind2) {
1200
1200
  PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
@@ -1395,7 +1395,7 @@ function toOriginalSourceFile(sf) {
1395
1395
  }
1396
1396
  }
1397
1397
 
1398
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
1398
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
1399
1399
  var TrackedIncrementalBuildStrategy = class {
1400
1400
  constructor() {
1401
1401
  this.state = null;
@@ -1431,7 +1431,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
1431
1431
  };
1432
1432
  var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
1433
1433
 
1434
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
1434
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
1435
1435
  var IdentifierKind;
1436
1436
  (function(IdentifierKind2) {
1437
1437
  IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
@@ -1449,7 +1449,7 @@ var AbsoluteSourceSpan = class {
1449
1449
  }
1450
1450
  };
1451
1451
 
1452
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
1452
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
1453
1453
  var IndexingContext = class {
1454
1454
  constructor() {
1455
1455
  this.components = /* @__PURE__ */ new Set();
@@ -1459,10 +1459,10 @@ var IndexingContext = class {
1459
1459
  }
1460
1460
  };
1461
1461
 
1462
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1462
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1463
1463
  import { ParseSourceFile } from "@angular/compiler";
1464
1464
 
1465
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
1465
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
1466
1466
  import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate } from "@angular/compiler";
1467
1467
  var ExpressionVisitor = class extends RecursiveAstVisitor {
1468
1468
  constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
@@ -1699,7 +1699,7 @@ function getTemplateIdentifiers(boundTemplate) {
1699
1699
  return { identifiers: visitor.identifiers, errors: visitor.errors };
1700
1700
  }
1701
1701
 
1702
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1702
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1703
1703
  function generateAnalysis(context) {
1704
1704
  const analysis = /* @__PURE__ */ new Map();
1705
1705
  context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
@@ -1735,7 +1735,7 @@ function generateAnalysis(context) {
1735
1735
  return analysis;
1736
1736
  }
1737
1737
 
1738
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
1738
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
1739
1739
  import ts10 from "typescript";
1740
1740
  var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
1741
1741
  var RESOURCE_MARKER = ".$ngresource$";
@@ -1881,7 +1881,7 @@ function createLookupResolutionHost(adapter) {
1881
1881
  };
1882
1882
  }
1883
1883
 
1884
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
1884
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
1885
1885
  var StandaloneComponentScopeReader = class {
1886
1886
  constructor(metaReader, localModuleReader, dtsModuleReader) {
1887
1887
  this.metaReader = metaReader;
@@ -1959,10 +1959,10 @@ var StandaloneComponentScopeReader = class {
1959
1959
  }
1960
1960
  };
1961
1961
 
1962
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
1962
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
1963
1963
  import { CssSelector, DomElementSchemaRegistry as DomElementSchemaRegistry2 } from "@angular/compiler";
1964
1964
 
1965
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
1965
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
1966
1966
  import ts11 from "typescript";
1967
1967
  function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
1968
1968
  if (mapping.type === "direct") {
@@ -2035,7 +2035,7 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
2035
2035
  }
2036
2036
  }
2037
2037
 
2038
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
2038
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
2039
2039
  var TEMPLATE_ID = Symbol("ngTemplateId");
2040
2040
  var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
2041
2041
  function getTemplateId(clazz) {
@@ -2052,11 +2052,11 @@ function allocateTemplateId(sf) {
2052
2052
  return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
2053
2053
  }
2054
2054
 
2055
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
2055
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
2056
2056
  import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
2057
2057
  import ts13 from "typescript";
2058
2058
 
2059
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
2059
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
2060
2060
  import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
2061
2061
  import ts12 from "typescript";
2062
2062
  var parseSpanComment = /^(\d+),(\d+)$/;
@@ -2176,7 +2176,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
2176
2176
  }) || false;
2177
2177
  }
2178
2178
 
2179
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
2179
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
2180
2180
  var CompletionEngine = class {
2181
2181
  constructor(tcb, data, tcbPath, tcbIsShim) {
2182
2182
  this.tcb = tcb;
@@ -2333,10 +2333,10 @@ var CompletionEngine = class {
2333
2333
  }
2334
2334
  };
2335
2335
 
2336
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
2336
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
2337
2337
  import ts27 from "typescript";
2338
2338
 
2339
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
2339
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
2340
2340
  import { DomElementSchemaRegistry } from "@angular/compiler";
2341
2341
  import ts14 from "typescript";
2342
2342
  var REGISTRY = new DomElementSchemaRegistry();
@@ -2389,11 +2389,11 @@ var RegistryDomSchemaChecker = class {
2389
2389
  }
2390
2390
  };
2391
2391
 
2392
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
2392
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
2393
2393
  import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
2394
2394
  import ts20 from "typescript";
2395
2395
 
2396
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
2396
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
2397
2397
  import ts15 from "typescript";
2398
2398
  var PARSED_TS_VERSION = parseFloat(ts15.versionMajorMinor);
2399
2399
  var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
@@ -2440,42 +2440,20 @@ function tsCallMethod(receiver, methodName, args = []) {
2440
2440
  function tsUpdateTypeParameterDeclaration(node, name, constraint, defaultType) {
2441
2441
  return PARSED_TS_VERSION < 4.7 ? ts15.factory.updateTypeParameterDeclaration(node, name, constraint, defaultType) : ts15.factory.updateTypeParameterDeclaration(node, [], name, constraint, defaultType);
2442
2442
  }
2443
- function checkIfClassIsExported(node) {
2444
- if (node.modifiers !== void 0 && node.modifiers.some((mod) => mod.kind === ts15.SyntaxKind.ExportKeyword)) {
2445
- return true;
2446
- } else if (node.parent !== void 0 && ts15.isSourceFile(node.parent) && checkIfFileHasExport(node.parent, node.name.text)) {
2447
- return true;
2448
- }
2449
- return false;
2450
- }
2451
- function checkIfFileHasExport(sf, name) {
2452
- for (const stmt of sf.statements) {
2453
- if (ts15.isExportDeclaration(stmt) && stmt.exportClause !== void 0 && ts15.isNamedExports(stmt.exportClause)) {
2454
- for (const element of stmt.exportClause.elements) {
2455
- if (element.propertyName === void 0 && element.name.text === name) {
2456
- return true;
2457
- } else if (element.propertyName !== void 0 && element.propertyName.text == name) {
2458
- return true;
2459
- }
2460
- }
2461
- }
2462
- }
2463
- return false;
2464
- }
2465
2443
  function isAccessExpression(node) {
2466
2444
  return ts15.isPropertyAccessExpression(node) || ts15.isElementAccessExpression(node);
2467
2445
  }
2468
2446
 
2469
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
2447
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
2470
2448
  import ts19 from "typescript";
2471
2449
 
2472
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
2450
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
2473
2451
  import ts18 from "typescript";
2474
2452
 
2475
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
2453
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
2476
2454
  import ts17 from "typescript";
2477
2455
 
2478
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
2456
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
2479
2457
  import ts16 from "typescript";
2480
2458
  var INELIGIBLE = {};
2481
2459
  function canEmitType(type, canEmit) {
@@ -2537,7 +2515,7 @@ var TypeEmitter = class {
2537
2515
  }
2538
2516
  };
2539
2517
 
2540
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
2518
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
2541
2519
  var TypeParameterEmitter = class {
2542
2520
  constructor(typeParameters, reflector) {
2543
2521
  this.typeParameters = typeParameters;
@@ -2614,19 +2592,19 @@ var TypeParameterEmitter = class {
2614
2592
  }
2615
2593
  };
2616
2594
 
2617
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
2595
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
2618
2596
  var TcbInliningRequirement;
2619
2597
  (function(TcbInliningRequirement2) {
2620
2598
  TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
2621
2599
  TcbInliningRequirement2[TcbInliningRequirement2["ShouldInlineForGenericBounds"] = 1] = "ShouldInlineForGenericBounds";
2622
2600
  TcbInliningRequirement2[TcbInliningRequirement2["None"] = 2] = "None";
2623
2601
  })(TcbInliningRequirement || (TcbInliningRequirement = {}));
2624
- function requiresInlineTypeCheckBlock(node, env, usedPipes, reflector) {
2625
- if (!checkIfClassIsExported(node)) {
2602
+ function requiresInlineTypeCheckBlock(ref, env, usedPipes, reflector) {
2603
+ if (!env.canReferenceType(ref)) {
2626
2604
  return TcbInliningRequirement.MustInline;
2627
- } else if (!checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env)) {
2605
+ } else if (!checkIfGenericTypeBoundsCanBeEmitted(ref.node, reflector, env)) {
2628
2606
  return TcbInliningRequirement.ShouldInlineForGenericBounds;
2629
- } else if (Array.from(usedPipes.values()).some((pipeRef) => !checkIfClassIsExported(pipeRef.node))) {
2607
+ } else if (Array.from(usedPipes.values()).some((pipeRef) => !env.canReferenceType(pipeRef))) {
2630
2608
  return TcbInliningRequirement.MustInline;
2631
2609
  } else {
2632
2610
  return TcbInliningRequirement.None;
@@ -2694,7 +2672,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
2694
2672
  return emitter.canEmit((ref) => env.canReferenceType(ref));
2695
2673
  }
2696
2674
 
2697
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
2675
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
2698
2676
  function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
2699
2677
  const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
2700
2678
  const rawType = ts19.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
@@ -2765,7 +2743,7 @@ function typeParametersWithDefaultTypes(params) {
2765
2743
  });
2766
2744
  }
2767
2745
 
2768
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
2746
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
2769
2747
  var Environment = class {
2770
2748
  constructor(config, importManager, refEmitter, reflector, contextFile) {
2771
2749
  this.config = config;
@@ -2857,7 +2835,7 @@ var Environment = class {
2857
2835
  }
2858
2836
  };
2859
2837
 
2860
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
2838
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
2861
2839
  import { TmplAstElement as TmplAstElement2 } from "@angular/compiler";
2862
2840
  import ts21 from "typescript";
2863
2841
  var OutOfBandDiagnosticRecorderImpl = class {
@@ -2989,7 +2967,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
2989
2967
  });
2990
2968
  }
2991
2969
 
2992
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
2970
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
2993
2971
  import ts22 from "typescript";
2994
2972
  var TypeCheckShimGenerator = class {
2995
2973
  constructor() {
@@ -3007,11 +2985,11 @@ var TypeCheckShimGenerator = class {
3007
2985
  }
3008
2986
  };
3009
2987
 
3010
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
2988
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
3011
2989
  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";
3012
2990
  import ts25 from "typescript";
3013
2991
 
3014
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
2992
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
3015
2993
  import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
3016
2994
  import ts23 from "typescript";
3017
2995
  function wrapForDiagnostics(expr) {
@@ -3057,7 +3035,7 @@ function translateDiagnostic(diagnostic, resolver) {
3057
3035
  return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
3058
3036
  }
3059
3037
 
3060
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
3038
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
3061
3039
  import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
3062
3040
  import ts24 from "typescript";
3063
3041
  var NULL_AS_ANY = ts24.factory.createAsExpression(ts24.factory.createNull(), ts24.factory.createKeywordTypeNode(ts24.SyntaxKind.AnyKeyword));
@@ -3387,7 +3365,7 @@ var VeSafeLhsInferenceBugDetector = class {
3387
3365
  };
3388
3366
  VeSafeLhsInferenceBugDetector.SINGLETON = new VeSafeLhsInferenceBugDetector();
3389
3367
 
3390
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
3368
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
3391
3369
  import { ImplicitReceiver as ImplicitReceiver3, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstVariable } from "@angular/compiler";
3392
3370
  var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
3393
3371
  constructor(templateId, boundTarget, oob) {
@@ -3411,7 +3389,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
3411
3389
  }
3412
3390
  };
3413
3391
 
3414
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
3392
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
3415
3393
  var TcbGenericContextBehavior;
3416
3394
  (function(TcbGenericContextBehavior2) {
3417
3395
  TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
@@ -4462,7 +4440,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
4462
4440
  }
4463
4441
  };
4464
4442
 
4465
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
4443
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
4466
4444
  import ts26 from "typescript";
4467
4445
  var TypeCheckFile = class extends Environment {
4468
4446
  constructor(fileName, config, refEmitter, reflector, compilerHost) {
@@ -4498,7 +4476,7 @@ var TypeCheckFile = class extends Environment {
4498
4476
  }
4499
4477
  };
4500
4478
 
4501
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
4479
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
4502
4480
  var InliningMode;
4503
4481
  (function(InliningMode2) {
4504
4482
  InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
@@ -4556,7 +4534,7 @@ var TypeCheckContextImpl = class {
4556
4534
  boundTarget,
4557
4535
  templateDiagnostics
4558
4536
  });
4559
- const inliningRequirement = requiresInlineTypeCheckBlock(ref.node, shimData.file, pipes, this.reflector);
4537
+ const inliningRequirement = requiresInlineTypeCheckBlock(ref, shimData.file, pipes, this.reflector);
4560
4538
  if (this.inlining === InliningMode.Error && inliningRequirement === TcbInliningRequirement.MustInline) {
4561
4539
  shimData.oobRecorder.requiresInlineTcb(templateId, ref.node);
4562
4540
  this.perf.eventCount(PerfEvent.SkipGenerateTcbNoInline);
@@ -4729,10 +4707,10 @@ function splitStringAtPoints(str, points) {
4729
4707
  return splits;
4730
4708
  }
4731
4709
 
4732
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
4710
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
4733
4711
  import { ParseLocation, ParseSourceSpan } from "@angular/compiler";
4734
4712
 
4735
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
4713
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
4736
4714
  var LF_CHAR = 10;
4737
4715
  var CR_CHAR = 13;
4738
4716
  var LINE_SEP_CHAR = 8232;
@@ -4773,7 +4751,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
4773
4751
  return low - 1;
4774
4752
  }
4775
4753
 
4776
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
4754
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
4777
4755
  var TemplateSource = class {
4778
4756
  constructor(mapping, file) {
4779
4757
  this.mapping = mapping;
@@ -4824,7 +4802,7 @@ var TemplateSourceManager = class {
4824
4802
  }
4825
4803
  };
4826
4804
 
4827
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
4805
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
4828
4806
  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";
4829
4807
  import ts28 from "typescript";
4830
4808
  var SymbolBuilder = class {
@@ -5264,7 +5242,7 @@ function sourceSpanEqual(a, b) {
5264
5242
  return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
5265
5243
  }
5266
5244
 
5267
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
5245
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
5268
5246
  var REGISTRY2 = new DomElementSchemaRegistry2();
5269
5247
  var TemplateTypeCheckerImpl = class {
5270
5248
  constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, componentScopeReader, typeCheckScopeRegistry, perf) {
@@ -5800,10 +5778,10 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
5800
5778
  }
5801
5779
  };
5802
5780
 
5803
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
5781
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
5804
5782
  import { TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
5805
5783
 
5806
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
5784
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
5807
5785
  import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor3 } from "@angular/compiler";
5808
5786
  var TemplateCheckWithVisitor = class {
5809
5787
  run(ctx, component, template) {
@@ -5880,7 +5858,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor3 {
5880
5858
  }
5881
5859
  };
5882
5860
 
5883
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
5861
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
5884
5862
  var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
5885
5863
  constructor() {
5886
5864
  super(...arguments);
@@ -5905,7 +5883,46 @@ var factory = {
5905
5883
  create: () => new InvalidBananaInBoxCheck()
5906
5884
  };
5907
5885
 
5908
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
5886
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
5887
+ import { TmplAstTemplate as TmplAstTemplate4 } from "@angular/compiler";
5888
+ var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Set(["ngIf", "ngFor", "ngSwitchCase", "ngSwitchDefault"]);
5889
+ var MissingControlFlowDirectiveCheck = class extends TemplateCheckWithVisitor {
5890
+ constructor() {
5891
+ super(...arguments);
5892
+ this.code = ErrorCode.MISSING_CONTROL_FLOW_DIRECTIVE;
5893
+ }
5894
+ run(ctx, component, template) {
5895
+ const componentMetadata = ctx.templateTypeChecker.getDirectiveMetadata(component);
5896
+ if (!componentMetadata || !componentMetadata.isStandalone) {
5897
+ return [];
5898
+ }
5899
+ return super.run(ctx, component, template);
5900
+ }
5901
+ visitNode(ctx, component, node) {
5902
+ if (!(node instanceof TmplAstTemplate4))
5903
+ return [];
5904
+ const controlFlowAttr = node.templateAttrs.find((attr) => KNOWN_CONTROL_FLOW_DIRECTIVES.has(attr.name));
5905
+ if (!controlFlowAttr)
5906
+ return [];
5907
+ const symbol = ctx.templateTypeChecker.getSymbolOfNode(node, component);
5908
+ if (symbol === null || symbol.directives.length > 0) {
5909
+ return [];
5910
+ }
5911
+ const sourceSpan = controlFlowAttr.keySpan || controlFlowAttr.sourceSpan;
5912
+ const errorMessage = `The \`*${controlFlowAttr.name}\` directive was used in the template, but the \`CommonModule\` was not imported. Please make sure that the \`CommonModule\` is included into the \`@Component.imports\` array of this component.`;
5913
+ const diagnostic = ctx.makeTemplateDiagnostic(sourceSpan, errorMessage);
5914
+ return [diagnostic];
5915
+ }
5916
+ };
5917
+ var factory2 = {
5918
+ code: ErrorCode.MISSING_CONTROL_FLOW_DIRECTIVE,
5919
+ name: ExtendedTemplateDiagnosticName.MISSING_CONTROL_FLOW_DIRECTIVE,
5920
+ create: (options) => {
5921
+ return new MissingControlFlowDirectiveCheck();
5922
+ }
5923
+ };
5924
+
5925
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
5909
5926
  import { Binary } from "@angular/compiler";
5910
5927
  import ts29 from "typescript";
5911
5928
  var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
@@ -5938,7 +5955,7 @@ var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
5938
5955
  return [diagnostic];
5939
5956
  }
5940
5957
  };
5941
- var factory2 = {
5958
+ var factory3 = {
5942
5959
  code: ErrorCode.NULLISH_COALESCING_NOT_NULLABLE,
5943
5960
  name: ExtendedTemplateDiagnosticName.NULLISH_COALESCING_NOT_NULLABLE,
5944
5961
  create: (options) => {
@@ -5950,10 +5967,10 @@ var factory2 = {
5950
5967
  }
5951
5968
  };
5952
5969
 
5953
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
5970
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
5954
5971
  import ts30 from "typescript";
5955
5972
 
5956
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
5973
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
5957
5974
  var DiagnosticCategoryLabel;
5958
5975
  (function(DiagnosticCategoryLabel2) {
5959
5976
  DiagnosticCategoryLabel2["Warning"] = "warning";
@@ -5961,18 +5978,18 @@ var DiagnosticCategoryLabel;
5961
5978
  DiagnosticCategoryLabel2["Suppress"] = "suppress";
5962
5979
  })(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
5963
5980
 
5964
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
5981
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
5965
5982
  var ExtendedTemplateCheckerImpl = class {
5966
5983
  constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
5967
5984
  var _a, _b, _c, _d, _e;
5968
5985
  this.partialCtx = { templateTypeChecker, typeChecker };
5969
5986
  this.templateChecks = /* @__PURE__ */ new Map();
5970
- for (const factory3 of templateCheckFactories) {
5971
- const category = diagnosticLabelToCategory((_e = (_d = (_b = (_a = options == null ? void 0 : options.extendedDiagnostics) == null ? void 0 : _a.checks) == null ? void 0 : _b[factory3.name]) != null ? _d : (_c = options == null ? void 0 : options.extendedDiagnostics) == null ? void 0 : _c.defaultCategory) != null ? _e : DiagnosticCategoryLabel.Warning);
5987
+ for (const factory4 of templateCheckFactories) {
5988
+ const category = diagnosticLabelToCategory((_e = (_d = (_b = (_a = options == null ? void 0 : options.extendedDiagnostics) == null ? void 0 : _a.checks) == null ? void 0 : _b[factory4.name]) != null ? _d : (_c = options == null ? void 0 : options.extendedDiagnostics) == null ? void 0 : _c.defaultCategory) != null ? _e : DiagnosticCategoryLabel.Warning);
5972
5989
  if (category === null) {
5973
5990
  continue;
5974
5991
  }
5975
- const check = factory3.create(options);
5992
+ const check = factory4.create(options);
5976
5993
  if (check === null) {
5977
5994
  continue;
5978
5995
  }
@@ -6013,13 +6030,14 @@ function assertNever(value) {
6013
6030
  ${value}`);
6014
6031
  }
6015
6032
 
6016
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
6033
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
6017
6034
  var ALL_DIAGNOSTIC_FACTORIES = [
6018
6035
  factory,
6036
+ factory3,
6019
6037
  factory2
6020
6038
  ];
6021
6039
 
6022
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
6040
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
6023
6041
  var CompilationTicketKind;
6024
6042
  (function(CompilationTicketKind2) {
6025
6043
  CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
@@ -6632,7 +6650,7 @@ ${allowedCategoryLabels.join("\n")}
6632
6650
  `.trim()
6633
6651
  });
6634
6652
  }
6635
- const allExtendedDiagnosticNames = ALL_DIAGNOSTIC_FACTORIES.map((factory3) => factory3.name);
6653
+ const allExtendedDiagnosticNames = ALL_DIAGNOSTIC_FACTORIES.map((factory4) => factory4.name);
6636
6654
  for (const [checkName, category] of Object.entries((_c = (_b = options.extendedDiagnostics) == null ? void 0 : _b.checks) != null ? _c : {})) {
6637
6655
  if (!allExtendedDiagnosticNames.includes(checkName)) {
6638
6656
  yield makeConfigDiagnostic({
@@ -6716,7 +6734,7 @@ function versionMapFromProgram(program, driver) {
6716
6734
  return versions;
6717
6735
  }
6718
6736
 
6719
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
6737
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
6720
6738
  import ts32 from "typescript";
6721
6739
  var DelegatingCompilerHost2 = class {
6722
6740
  constructor(delegate) {
@@ -6860,7 +6878,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
6860
6878
  }
6861
6879
  };
6862
6880
 
6863
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
6881
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
6864
6882
  var NgtscProgram = class {
6865
6883
  constructor(rootNames, options, delegateHost, oldProgram) {
6866
6884
  this.options = options;
@@ -6982,6 +7000,7 @@ var NgtscProgram = class {
6982
7000
  i18nExtract((_b = this.options.i18nOutFormat) != null ? _b : null, (_c = this.options.i18nOutFile) != null ? _c : null, this.host, this.options, ctx, resolve);
6983
7001
  }
6984
7002
  emit(opts) {
7003
+ var _a;
6985
7004
  if (opts !== void 0 && opts.emitFlags !== void 0 && opts.emitFlags & EmitFlags.I18nBundle) {
6986
7005
  this.emitXi18n();
6987
7006
  if (!(opts.emitFlags & EmitFlags.JS)) {
@@ -6992,6 +7011,7 @@ var NgtscProgram = class {
6992
7011
  };
6993
7012
  }
6994
7013
  }
7014
+ const forceEmit = (_a = opts == null ? void 0 : opts.forceEmit) != null ? _a : false;
6995
7015
  this.compiler.perfRecorder.memory(PerfCheckpoint.PreEmit);
6996
7016
  const res = this.compiler.perfRecorder.inPhase(PerfPhase.TypeScriptEmit, () => {
6997
7017
  const { transformers } = this.compiler.prepareEmit();
@@ -7019,7 +7039,7 @@ var NgtscProgram = class {
7019
7039
  if (targetSourceFile.isDeclarationFile || ignoreFiles.has(targetSourceFile)) {
7020
7040
  continue;
7021
7041
  }
7022
- if (this.compiler.incrementalCompilation.safeToSkipEmit(targetSourceFile)) {
7042
+ if (!forceEmit && this.compiler.incrementalCompilation.safeToSkipEmit(targetSourceFile)) {
7023
7043
  this.compiler.perfRecorder.eventCount(PerfEvent.EmitSkipSourceFile);
7024
7044
  continue;
7025
7045
  }
@@ -7067,15 +7087,15 @@ function mergeEmitResults(emitResults) {
7067
7087
  return { diagnostics, emitSkipped, emittedFiles };
7068
7088
  }
7069
7089
 
7070
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
7090
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
7071
7091
  function createProgram({ rootNames, options, host, oldProgram }) {
7072
7092
  return new NgtscProgram(rootNames, options, host, oldProgram);
7073
7093
  }
7074
7094
 
7075
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
7095
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
7076
7096
  import ts35 from "typescript";
7077
7097
 
7078
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
7098
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
7079
7099
  import ts34 from "typescript";
7080
7100
  var GENERATED_FILES = /(.*?)\.(ngfactory|shim\.ngstyle|ngstyle|ngsummary)\.(js|d\.ts|ts)$/;
7081
7101
  function createMessageDiagnostic(messageText) {
@@ -7090,7 +7110,7 @@ function createMessageDiagnostic(messageText) {
7090
7110
  };
7091
7111
  }
7092
7112
 
7093
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
7113
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
7094
7114
  var defaultFormatHost = {
7095
7115
  getCurrentDirectory: () => ts35.sys.getCurrentDirectory(),
7096
7116
  getCanonicalFileName: (fileName) => fileName,
@@ -7208,7 +7228,7 @@ function exitCodeFromResult(diags) {
7208
7228
  }
7209
7229
  return diags.some((d) => d.source === "angular" && d.code === UNKNOWN_ERROR_CODE) ? 2 : 1;
7210
7230
  }
7211
- function performCompilation({ rootNames, options, host, oldProgram, emitCallback, mergeEmitResultsCallback, gatherDiagnostics = defaultGatherDiagnostics, customTransformers, emitFlags = EmitFlags.Default, modifiedResourceFiles = null }) {
7231
+ function performCompilation({ rootNames, options, host, oldProgram, emitCallback, mergeEmitResultsCallback, gatherDiagnostics = defaultGatherDiagnostics, customTransformers, emitFlags = EmitFlags.Default, forceEmit = false, modifiedResourceFiles = null }) {
7212
7232
  var _a;
7213
7233
  let program;
7214
7234
  let emitResult;
@@ -7228,7 +7248,7 @@ function performCompilation({ rootNames, options, host, oldProgram, emitCallback
7228
7248
  allDiagnostics.push(createMessageDiagnostic(`Time for diagnostics: ${afterDiags - beforeDiags}ms.`));
7229
7249
  }
7230
7250
  if (!hasErrors(allDiagnostics)) {
7231
- emitResult = program.emit({ emitCallback, mergeEmitResultsCallback, customTransformers, emitFlags });
7251
+ emitResult = program.emit({ emitCallback, mergeEmitResultsCallback, customTransformers, emitFlags, forceEmit });
7232
7252
  allDiagnostics.push(...emitResult.diagnostics);
7233
7253
  return { diagnostics: allDiagnostics, program, emitResult };
7234
7254
  }
@@ -7303,4 +7323,4 @@ export {
7303
7323
  * found in the LICENSE file at https://angular.io/license
7304
7324
  */
7305
7325
  // Closure Compiler ignores @suppress and similar if the comment contains @license.
7306
- //# sourceMappingURL=chunk-VAPEAGED.js.map
7326
+ //# sourceMappingURL=chunk-DSIJ6FBS.js.map