@angular/compiler-cli 14.2.0-next.1 → 14.2.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 (74) hide show
  1. package/bundles/{chunk-TXUURHQE.js → chunk-2HAEAY5C.js} +40 -40
  2. package/bundles/{chunk-TXUURHQE.js.map → chunk-2HAEAY5C.js.map} +0 -0
  3. package/bundles/{chunk-CTEVZGOM.js → chunk-2HPI44CB.js} +5 -5
  4. package/bundles/{chunk-CTEVZGOM.js.map → chunk-2HPI44CB.js.map} +0 -0
  5. package/bundles/{chunk-ZSQCUET7.js → chunk-2VBPNPMZ.js} +152 -119
  6. package/bundles/chunk-2VBPNPMZ.js.map +6 -0
  7. package/bundles/{chunk-WJ34B4FT.js → chunk-3ATQVS47.js} +75 -71
  8. package/bundles/chunk-3ATQVS47.js.map +6 -0
  9. package/bundles/{chunk-HZ5F54TQ.js → chunk-3RBYZF6O.js} +5 -5
  10. package/bundles/{chunk-HZ5F54TQ.js.map → chunk-3RBYZF6O.js.map} +0 -0
  11. package/bundles/chunk-7YHMCUJT.js +96 -0
  12. package/bundles/chunk-7YHMCUJT.js.map +6 -0
  13. package/bundles/{chunk-Z57D3OKU.js → chunk-CYVTLM4Z.js} +7 -7
  14. package/bundles/{chunk-Z57D3OKU.js.map → chunk-CYVTLM4Z.js.map} +0 -0
  15. package/bundles/{chunk-4SINIALN.js → chunk-E7NQQTT7.js} +3 -3
  16. package/bundles/{chunk-4SINIALN.js.map → chunk-E7NQQTT7.js.map} +0 -0
  17. package/bundles/{chunk-N2MCMY3J.js → chunk-FM6NPN5V.js} +4 -4
  18. package/bundles/{chunk-N2MCMY3J.js.map → chunk-FM6NPN5V.js.map} +0 -0
  19. package/bundles/{chunk-I34YWN6W.js → chunk-GG7BM2LH.js} +185 -121
  20. package/bundles/chunk-GG7BM2LH.js.map +6 -0
  21. package/bundles/{chunk-GQHLKW4T.js → chunk-L2QFSPXM.js} +31 -31
  22. package/bundles/{chunk-GQHLKW4T.js.map → chunk-L2QFSPXM.js.map} +0 -0
  23. package/bundles/{chunk-SJL5HBUW.js → chunk-R3C7RFJ4.js} +2 -2
  24. package/bundles/{chunk-SJL5HBUW.js.map → chunk-R3C7RFJ4.js.map} +0 -0
  25. package/bundles/{chunk-S4JINNFN.js → chunk-TOKOIIBI.js} +7 -7
  26. package/bundles/{chunk-S4JINNFN.js.map → chunk-TOKOIIBI.js.map} +0 -0
  27. package/bundles/{chunk-IJA2BQQH.js → chunk-UZLFREET.js} +44 -20
  28. package/bundles/chunk-UZLFREET.js.map +6 -0
  29. package/bundles/{chunk-AHYRDQYO.js → chunk-WAZH2LJQ.js} +26 -26
  30. package/bundles/{chunk-AHYRDQYO.js.map → chunk-WAZH2LJQ.js.map} +1 -1
  31. package/bundles/{chunk-AMYIDAXN.js → chunk-XDX5RDY5.js} +20 -13
  32. package/bundles/chunk-XDX5RDY5.js.map +6 -0
  33. package/bundles/index.js +13 -12
  34. package/bundles/index.js.map +1 -1
  35. package/bundles/linker/babel/index.js +13 -12
  36. package/bundles/linker/babel/index.js.map +1 -1
  37. package/bundles/linker/index.js +5 -4
  38. package/bundles/ngcc/index.js +13 -12
  39. package/bundles/ngcc/index.js.map +1 -1
  40. package/bundles/ngcc/main-ngcc.js +14 -13
  41. package/bundles/ngcc/main-ngcc.js.map +1 -1
  42. package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +14 -13
  43. package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js.map +1 -1
  44. package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +4 -4
  45. package/bundles/private/bazel.js +1 -1
  46. package/bundles/private/localize.js +3 -3
  47. package/bundles/private/migrations.js +6 -5
  48. package/bundles/private/migrations.js.map +1 -1
  49. package/bundles/private/tooling.js +3 -2
  50. package/bundles/src/bin/ng_xi18n.js +11 -10
  51. package/bundles/src/bin/ng_xi18n.js.map +1 -1
  52. package/bundles/src/bin/ngc.js +9 -8
  53. package/bundles/src/bin/ngc.js.map +1 -1
  54. package/bundles_metadata.json +1 -1
  55. package/ngcc/src/packages/build_marker.d.ts +1 -1
  56. package/package.json +3 -3
  57. package/src/ngtsc/annotations/component/src/metadata.d.ts +1 -0
  58. package/src/ngtsc/annotations/directive/src/handler.d.ts +2 -0
  59. package/src/ngtsc/annotations/ng_module/src/handler.d.ts +1 -0
  60. package/src/ngtsc/annotations/src/pipe.d.ts +1 -0
  61. package/src/ngtsc/core/api/src/options.d.ts +4 -0
  62. package/src/ngtsc/core/src/compiler.d.ts +1 -1
  63. package/src/ngtsc/metadata/src/api.d.ts +13 -0
  64. package/src/ngtsc/ts_compatibility/index.d.ts +9 -0
  65. package/src/ngtsc/ts_compatibility/src/ts_cross_version_utils.d.ts +161 -0
  66. package/src/ngtsc/typecheck/api/checker.d.ts +14 -4
  67. package/src/ngtsc/typecheck/src/checker.d.ts +5 -1
  68. package/src/ngtsc/typecheck/src/ts_util.d.ts +0 -7
  69. package/src/ngtsc/typecheck/src/type_check_block.d.ts +1 -1
  70. package/bundles/chunk-AMYIDAXN.js.map +0 -6
  71. package/bundles/chunk-I34YWN6W.js.map +0 -6
  72. package/bundles/chunk-IJA2BQQH.js.map +0 -6
  73. package/bundles/chunk-WJ34B4FT.js.map +0 -6
  74. package/bundles/chunk-ZSQCUET7.js.map +0 -6
@@ -30,11 +30,11 @@ import {
30
30
  aliasTransformFactory,
31
31
  declarationTransformFactory,
32
32
  ivyTransformFactory
33
- } from "./chunk-ZSQCUET7.js";
33
+ } from "./chunk-2VBPNPMZ.js";
34
34
  import {
35
35
  TypeScriptReflectionHost,
36
36
  isNamedClassDeclaration
37
- } from "./chunk-AMYIDAXN.js";
37
+ } from "./chunk-XDX5RDY5.js";
38
38
  import {
39
39
  AbsoluteModuleStrategy,
40
40
  AliasStrategy,
@@ -73,7 +73,13 @@ import {
73
73
  toUnredirectedSourceFile,
74
74
  translateExpression,
75
75
  translateType
76
- } from "./chunk-AHYRDQYO.js";
76
+ } from "./chunk-WAZH2LJQ.js";
77
+ import {
78
+ getDecorators,
79
+ getModifiers,
80
+ updateImportDeclaration,
81
+ updateTypeParameterDeclaration
82
+ } from "./chunk-7YHMCUJT.js";
77
83
  import {
78
84
  LogicalFileSystem,
79
85
  absoluteFrom,
@@ -84,16 +90,16 @@ import {
84
90
  getSourceFileOrError,
85
91
  join,
86
92
  resolve
87
- } from "./chunk-S4JINNFN.js";
93
+ } from "./chunk-TOKOIIBI.js";
88
94
  import {
89
95
  ActivePerfRecorder,
90
96
  DelegatingPerfRecorder,
91
97
  PerfCheckpoint,
92
98
  PerfEvent,
93
99
  PerfPhase
94
- } from "./chunk-CTEVZGOM.js";
100
+ } from "./chunk-2HPI44CB.js";
95
101
 
96
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
102
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
97
103
  var DEFAULT_ERROR_CODE = 100;
98
104
  var UNKNOWN_ERROR_CODE = 500;
99
105
  var SOURCE = "angular";
@@ -111,7 +117,7 @@ var EmitFlags;
111
117
  EmitFlags2[EmitFlags2["All"] = 31] = "All";
112
118
  })(EmitFlags || (EmitFlags = {}));
113
119
 
114
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
120
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
115
121
  import ts from "typescript";
116
122
  var wrapHostForTest = null;
117
123
  function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, true) }) {
@@ -121,21 +127,21 @@ function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, t
121
127
  return tsHost;
122
128
  }
123
129
 
124
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
130
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
125
131
  var OptimizeFor;
126
132
  (function(OptimizeFor2) {
127
133
  OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
128
134
  OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
129
135
  })(OptimizeFor || (OptimizeFor = {}));
130
136
 
131
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
137
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
132
138
  var CompletionKind;
133
139
  (function(CompletionKind2) {
134
140
  CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
135
141
  CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
136
142
  })(CompletionKind || (CompletionKind = {}));
137
143
 
138
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
144
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
139
145
  var SymbolKind;
140
146
  (function(SymbolKind2) {
141
147
  SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
@@ -151,11 +157,11 @@ var SymbolKind;
151
157
  SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
152
158
  })(SymbolKind || (SymbolKind = {}));
153
159
 
154
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
160
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
155
161
  import { HtmlParser, MessageBundle } from "@angular/compiler";
156
162
  import ts34 from "typescript";
157
163
 
158
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
164
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
159
165
  import { Xliff, Xliff2, Xmb } from "@angular/compiler";
160
166
  import * as path from "path";
161
167
  function i18nGetExtension(formatName) {
@@ -206,10 +212,10 @@ function getPathNormalizer(basePath) {
206
212
  };
207
213
  }
208
214
 
209
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
215
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
210
216
  import ts2 from "typescript";
211
217
 
212
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
218
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
213
219
  function toNumbers(value) {
214
220
  const suffixIndex = value.lastIndexOf("-");
215
221
  return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
@@ -244,9 +250,9 @@ function compareVersions(v1, v2) {
244
250
  return compareNumbers(toNumbers(v1), toNumbers(v2));
245
251
  }
246
252
 
247
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
253
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
248
254
  var MIN_TS_VERSION = "4.6.2";
249
- var MAX_TS_VERSION = "4.8.0";
255
+ var MAX_TS_VERSION = "4.9.0";
250
256
  var tsVersion = ts2.version;
251
257
  function checkVersion(version, minVersion, maxVersion) {
252
258
  if (compareVersions(version, minVersion) < 0 || compareVersions(version, maxVersion) >= 0) {
@@ -257,10 +263,10 @@ function verifySupportedTypeScriptVersion() {
257
263
  checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
258
264
  }
259
265
 
260
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
266
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
261
267
  import ts32 from "typescript";
262
268
 
263
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
269
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
264
270
  var CycleAnalyzer = class {
265
271
  constructor(importGraph) {
266
272
  this.importGraph = importGraph;
@@ -331,7 +337,7 @@ var Cycle = class {
331
337
  }
332
338
  };
333
339
 
334
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
340
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
335
341
  import ts3 from "typescript";
336
342
  var ImportGraph = class {
337
343
  constructor(checker, perf) {
@@ -423,7 +429,7 @@ var Found = class {
423
429
  }
424
430
  };
425
431
 
426
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
432
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
427
433
  import ts4 from "typescript";
428
434
  var FlatIndexGenerator = class {
429
435
  constructor(entryPoint, relativeFlatIndexPath, moduleName) {
@@ -448,7 +454,7 @@ export * from '${relativeEntryPoint}';
448
454
  }
449
455
  };
450
456
 
451
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
457
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
452
458
  function findFlatIndexEntryPoint(rootFiles) {
453
459
  const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
454
460
  let resolvedEntryPoint = null;
@@ -464,7 +470,7 @@ function findFlatIndexEntryPoint(rootFiles) {
464
470
  return resolvedEntryPoint;
465
471
  }
466
472
 
467
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
473
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
468
474
  import ts5 from "typescript";
469
475
  function checkForPrivateExports(entryPoint, checker, refGraph) {
470
476
  const diagnostics = [];
@@ -544,7 +550,7 @@ function getDescriptorOfDeclaration(decl) {
544
550
  }
545
551
  }
546
552
 
547
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
553
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
548
554
  var ReferenceGraph = class {
549
555
  constructor() {
550
556
  this.references = /* @__PURE__ */ new Map();
@@ -598,7 +604,7 @@ var ReferenceGraph = class {
598
604
  }
599
605
  };
600
606
 
601
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
607
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
602
608
  var NgOriginalFile = Symbol("NgOriginalFile");
603
609
  var UpdateMode;
604
610
  (function(UpdateMode2) {
@@ -606,13 +612,13 @@ var UpdateMode;
606
612
  UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
607
613
  })(UpdateMode || (UpdateMode = {}));
608
614
 
609
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
615
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
610
616
  import ts9 from "typescript";
611
617
 
612
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
618
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
613
619
  import ts6 from "typescript";
614
620
 
615
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
621
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
616
622
  var NgExtension = Symbol("NgExtension");
617
623
  function isExtended(sf) {
618
624
  return sf[NgExtension] !== void 0;
@@ -672,7 +678,7 @@ function retagTsFile(sf) {
672
678
  }
673
679
  }
674
680
 
675
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
681
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
676
682
  var TS_EXTENSIONS = /\.tsx?$/i;
677
683
  function makeShimFileName(fileName, suffix) {
678
684
  return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
@@ -687,7 +693,7 @@ function generatedModuleName(originalModuleName, originalFileName, genSuffix) {
687
693
  return moduleName;
688
694
  }
689
695
 
690
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
696
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
691
697
  var ShimAdapter = class {
692
698
  constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
693
699
  this.delegate = delegate;
@@ -784,7 +790,7 @@ var ShimAdapter = class {
784
790
  }
785
791
  };
786
792
 
787
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
793
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
788
794
  import ts7 from "typescript";
789
795
  var TS_DTS_SUFFIX = /(\.d)?\.ts$/;
790
796
  var STRIP_NG_FACTORY = /(.*)NgFactory$/;
@@ -798,7 +804,7 @@ var FactoryGenerator = class {
798
804
  generateShimForFile(sf, genFilePath) {
799
805
  const absoluteSfPath = absoluteFromSourceFile(sf);
800
806
  const relativePathToSource = "./" + basename(sf.fileName).replace(TS_DTS_SUFFIX, "");
801
- const symbolNames = sf.statements.filter(ts7.isClassDeclaration).filter((decl) => isExported(decl) && decl.decorators !== void 0 && decl.name !== void 0).map((decl) => decl.name.text);
807
+ const symbolNames = sf.statements.filter(ts7.isClassDeclaration).filter((decl) => isExported(decl) && getDecorators(decl) !== void 0 && decl.name !== void 0).map((decl) => decl.name.text);
802
808
  let sourceText = "";
803
809
  const leadingComment = getFileoverviewComment(sf);
804
810
  if (leadingComment !== null) {
@@ -832,7 +838,8 @@ var FactoryGenerator = class {
832
838
  }
833
839
  };
834
840
  function isExported(decl) {
835
- return decl.modifiers !== void 0 && decl.modifiers.some((mod) => mod.kind == ts7.SyntaxKind.ExportKeyword);
841
+ const modifiers = getModifiers(decl);
842
+ return modifiers !== void 0 && modifiers.some((mod) => mod.kind == ts7.SyntaxKind.ExportKeyword);
836
843
  }
837
844
  function generatedFactoryTransform(factoryMap, importRewriter) {
838
845
  return (context) => {
@@ -853,7 +860,7 @@ function transformFactorySourceFile(factoryMap, context, importRewriter, file) {
853
860
  if (ts7.isImportDeclaration(stmt) && ts7.isStringLiteral(stmt.moduleSpecifier) && stmt.moduleSpecifier.text === "@angular/core") {
854
861
  const rewrittenModuleSpecifier = importRewriter.rewriteSpecifier("@angular/core", sourceFilePath);
855
862
  if (rewrittenModuleSpecifier !== stmt.moduleSpecifier.text) {
856
- transformedStatements.push(ts7.factory.updateImportDeclaration(stmt, stmt.decorators, stmt.modifiers, stmt.importClause, ts7.factory.createStringLiteral(rewrittenModuleSpecifier), void 0));
863
+ transformedStatements.push(updateImportDeclaration(stmt, getModifiers(stmt), stmt.importClause, ts7.factory.createStringLiteral(rewrittenModuleSpecifier), void 0));
857
864
  if (stmt.importClause !== void 0 && stmt.importClause.namedBindings !== void 0 && ts7.isNamespaceImport(stmt.importClause.namedBindings)) {
858
865
  coreImportIdentifiers.add(stmt.importClause.namedBindings.name.text);
859
866
  }
@@ -928,10 +935,10 @@ function wrapInNoSideEffects(expr) {
928
935
  ]);
929
936
  }
930
937
  function updateInitializers(stmt, update) {
931
- 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)))));
938
+ 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)))));
932
939
  }
933
940
 
934
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
941
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
935
942
  var ShimReferenceTagger = class {
936
943
  constructor(shimExtensions) {
937
944
  this.tagged = /* @__PURE__ */ new Set();
@@ -965,7 +972,7 @@ var ShimReferenceTagger = class {
965
972
  }
966
973
  };
967
974
 
968
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
975
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
969
976
  import ts8 from "typescript";
970
977
  var SummaryGenerator = class {
971
978
  constructor() {
@@ -976,7 +983,7 @@ var SummaryGenerator = class {
976
983
  const symbolNames = [];
977
984
  for (const stmt of sf.statements) {
978
985
  if (ts8.isClassDeclaration(stmt)) {
979
- if (!isExported2(stmt) || stmt.decorators === void 0 || stmt.name === void 0) {
986
+ if (!isExported2(stmt) || stmt.name === void 0 || getDecorators(stmt) === void 0) {
980
987
  continue;
981
988
  }
982
989
  symbolNames.push(stmt.name.text);
@@ -1002,10 +1009,11 @@ var SummaryGenerator = class {
1002
1009
  }
1003
1010
  };
1004
1011
  function isExported2(decl) {
1005
- return decl.modifiers !== void 0 && decl.modifiers.some((mod) => mod.kind == ts8.SyntaxKind.ExportKeyword);
1012
+ const modifiers = getModifiers(decl);
1013
+ return modifiers !== void 0 && modifiers.some((mod) => mod.kind == ts8.SyntaxKind.ExportKeyword) || false;
1006
1014
  }
1007
1015
 
1008
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
1016
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
1009
1017
  var DelegatingCompilerHost = class {
1010
1018
  constructor(delegate) {
1011
1019
  this.delegate = delegate;
@@ -1115,7 +1123,7 @@ var TsCreateProgramDriver = class {
1115
1123
  }
1116
1124
  };
1117
1125
 
1118
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
1126
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
1119
1127
  var FileDependencyGraph = class {
1120
1128
  constructor() {
1121
1129
  this.nodes = /* @__PURE__ */ new Map();
@@ -1182,7 +1190,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
1182
1190
  return false;
1183
1191
  }
1184
1192
 
1185
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
1193
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
1186
1194
  var IncrementalStateKind;
1187
1195
  (function(IncrementalStateKind2) {
1188
1196
  IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
@@ -1190,7 +1198,7 @@ var IncrementalStateKind;
1190
1198
  IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
1191
1199
  })(IncrementalStateKind || (IncrementalStateKind = {}));
1192
1200
 
1193
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
1201
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
1194
1202
  var PhaseKind;
1195
1203
  (function(PhaseKind2) {
1196
1204
  PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
@@ -1391,7 +1399,7 @@ function toOriginalSourceFile(sf) {
1391
1399
  }
1392
1400
  }
1393
1401
 
1394
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
1402
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
1395
1403
  var TrackedIncrementalBuildStrategy = class {
1396
1404
  constructor() {
1397
1405
  this.state = null;
@@ -1427,7 +1435,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
1427
1435
  };
1428
1436
  var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
1429
1437
 
1430
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
1438
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
1431
1439
  var IdentifierKind;
1432
1440
  (function(IdentifierKind2) {
1433
1441
  IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
@@ -1445,7 +1453,7 @@ var AbsoluteSourceSpan = class {
1445
1453
  }
1446
1454
  };
1447
1455
 
1448
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
1456
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
1449
1457
  var IndexingContext = class {
1450
1458
  constructor() {
1451
1459
  this.components = /* @__PURE__ */ new Set();
@@ -1455,10 +1463,10 @@ var IndexingContext = class {
1455
1463
  }
1456
1464
  };
1457
1465
 
1458
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1466
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1459
1467
  import { ParseSourceFile } from "@angular/compiler";
1460
1468
 
1461
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
1469
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
1462
1470
  import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate } from "@angular/compiler";
1463
1471
  var ExpressionVisitor = class extends RecursiveAstVisitor {
1464
1472
  constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
@@ -1695,7 +1703,7 @@ function getTemplateIdentifiers(boundTemplate) {
1695
1703
  return { identifiers: visitor.identifiers, errors: visitor.errors };
1696
1704
  }
1697
1705
 
1698
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1706
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1699
1707
  function generateAnalysis(context) {
1700
1708
  const analysis = /* @__PURE__ */ new Map();
1701
1709
  context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
@@ -1731,7 +1739,7 @@ function generateAnalysis(context) {
1731
1739
  return analysis;
1732
1740
  }
1733
1741
 
1734
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
1742
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
1735
1743
  import ts10 from "typescript";
1736
1744
  var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
1737
1745
  var RESOURCE_MARKER = ".$ngresource$";
@@ -1877,7 +1885,7 @@ function createLookupResolutionHost(adapter) {
1877
1885
  };
1878
1886
  }
1879
1887
 
1880
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
1888
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
1881
1889
  var StandaloneComponentScopeReader = class {
1882
1890
  constructor(metaReader, localModuleReader, dtsModuleReader) {
1883
1891
  this.metaReader = metaReader;
@@ -1955,10 +1963,10 @@ var StandaloneComponentScopeReader = class {
1955
1963
  }
1956
1964
  };
1957
1965
 
1958
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
1966
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
1959
1967
  import { CssSelector, DomElementSchemaRegistry as DomElementSchemaRegistry2 } from "@angular/compiler";
1960
1968
 
1961
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
1969
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
1962
1970
  import ts11 from "typescript";
1963
1971
  function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
1964
1972
  if (mapping.type === "direct") {
@@ -2031,7 +2039,7 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
2031
2039
  }
2032
2040
  }
2033
2041
 
2034
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
2042
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
2035
2043
  var TEMPLATE_ID = Symbol("ngTemplateId");
2036
2044
  var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
2037
2045
  function getTemplateId(clazz) {
@@ -2048,11 +2056,11 @@ function allocateTemplateId(sf) {
2048
2056
  return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
2049
2057
  }
2050
2058
 
2051
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
2059
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
2052
2060
  import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
2053
2061
  import ts13 from "typescript";
2054
2062
 
2055
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
2063
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
2056
2064
  import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
2057
2065
  import ts12 from "typescript";
2058
2066
  var parseSpanComment = /^(\d+),(\d+)$/;
@@ -2172,7 +2180,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
2172
2180
  }) || false;
2173
2181
  }
2174
2182
 
2175
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
2183
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
2176
2184
  var CompletionEngine = class {
2177
2185
  constructor(tcb, data, tcbPath, tcbIsShim) {
2178
2186
  this.tcb = tcb;
@@ -2329,10 +2337,10 @@ var CompletionEngine = class {
2329
2337
  }
2330
2338
  };
2331
2339
 
2332
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
2340
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
2333
2341
  import ts27 from "typescript";
2334
2342
 
2335
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
2343
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
2336
2344
  import { DomElementSchemaRegistry } from "@angular/compiler";
2337
2345
  import ts14 from "typescript";
2338
2346
  var REGISTRY = new DomElementSchemaRegistry();
@@ -2385,13 +2393,12 @@ var RegistryDomSchemaChecker = class {
2385
2393
  }
2386
2394
  };
2387
2395
 
2388
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
2396
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
2389
2397
  import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
2390
2398
  import ts20 from "typescript";
2391
2399
 
2392
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
2400
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
2393
2401
  import ts15 from "typescript";
2394
- var PARSED_TS_VERSION = parseFloat(ts15.versionMajorMinor);
2395
2402
  var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
2396
2403
  ts15.SyntaxKind.ParenthesizedExpression,
2397
2404
  ts15.SyntaxKind.Identifier,
@@ -2433,23 +2440,20 @@ function tsCallMethod(receiver, methodName, args = []) {
2433
2440
  const methodAccess = ts15.factory.createPropertyAccessExpression(receiver, methodName);
2434
2441
  return ts15.factory.createCallExpression(methodAccess, void 0, args);
2435
2442
  }
2436
- function tsUpdateTypeParameterDeclaration(node, name, constraint, defaultType) {
2437
- return PARSED_TS_VERSION < 4.7 ? ts15.factory.updateTypeParameterDeclaration(node, name, constraint, defaultType) : ts15.factory.updateTypeParameterDeclaration(node, [], name, constraint, defaultType);
2438
- }
2439
2443
  function isAccessExpression(node) {
2440
2444
  return ts15.isPropertyAccessExpression(node) || ts15.isElementAccessExpression(node);
2441
2445
  }
2442
2446
 
2443
- // bazel-out/darwin-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
2444
2448
  import ts19 from "typescript";
2445
2449
 
2446
- // bazel-out/darwin-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
2447
2451
  import ts18 from "typescript";
2448
2452
 
2449
- // bazel-out/darwin-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
2450
2454
  import ts17 from "typescript";
2451
2455
 
2452
- // bazel-out/darwin-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
2453
2457
  import ts16 from "typescript";
2454
2458
  var INELIGIBLE = {};
2455
2459
  function canEmitType(type, canEmit) {
@@ -2487,7 +2491,20 @@ var TypeEmitter = class {
2487
2491
  if (ts16.isTypeReferenceNode(node)) {
2488
2492
  return this.emitTypeReference(node);
2489
2493
  } else if (ts16.isLiteralExpression(node)) {
2490
- const clone = ts16.getMutableClone(node);
2494
+ let clone;
2495
+ if (ts16.isStringLiteral(node)) {
2496
+ clone = ts16.factory.createStringLiteral(node.text);
2497
+ } else if (ts16.isNumericLiteral(node)) {
2498
+ clone = ts16.factory.createNumericLiteral(node.text);
2499
+ } else if (ts16.isBigIntLiteral(node)) {
2500
+ clone = ts16.factory.createBigIntLiteral(node.text);
2501
+ } else if (ts16.isNoSubstitutionTemplateLiteral(node)) {
2502
+ clone = ts16.factory.createNoSubstitutionTemplateLiteral(node.text, node.rawText);
2503
+ } else if (ts16.isRegularExpressionLiteral(node)) {
2504
+ clone = ts16.factory.createRegularExpressionLiteral(node.text);
2505
+ } else {
2506
+ throw new Error(`Unsupported literal kind ${ts16.SyntaxKind[node.kind]}`);
2507
+ }
2491
2508
  ts16.setTextRange(clone, { pos: -1, end: -1 });
2492
2509
  return clone;
2493
2510
  } else {
@@ -2511,7 +2528,7 @@ var TypeEmitter = class {
2511
2528
  }
2512
2529
  };
2513
2530
 
2514
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
2531
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
2515
2532
  var TypeParameterEmitter = class {
2516
2533
  constructor(typeParameters, reflector) {
2517
2534
  this.typeParameters = typeParameters;
@@ -2548,7 +2565,7 @@ var TypeParameterEmitter = class {
2548
2565
  return this.typeParameters.map((typeParam) => {
2549
2566
  const constraint = typeParam.constraint !== void 0 ? emitter.emitType(typeParam.constraint) : void 0;
2550
2567
  const defaultType = typeParam.default !== void 0 ? emitter.emitType(typeParam.default) : void 0;
2551
- return tsUpdateTypeParameterDeclaration(typeParam, typeParam.name, constraint, defaultType);
2568
+ return updateTypeParameterDeclaration(typeParam, typeParam.modifiers, typeParam.name, constraint, defaultType);
2552
2569
  });
2553
2570
  }
2554
2571
  resolveTypeReference(type) {
@@ -2588,7 +2605,7 @@ var TypeParameterEmitter = class {
2588
2605
  }
2589
2606
  };
2590
2607
 
2591
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
2608
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
2592
2609
  var TcbInliningRequirement;
2593
2610
  (function(TcbInliningRequirement2) {
2594
2611
  TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
@@ -2668,7 +2685,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
2668
2685
  return emitter.canEmit((ref) => env.canReferenceType(ref));
2669
2686
  }
2670
2687
 
2671
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
2688
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
2672
2689
  function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
2673
2690
  const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
2674
2691
  const rawType = ts19.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
@@ -2732,14 +2749,14 @@ function typeParametersWithDefaultTypes(params) {
2732
2749
  }
2733
2750
  return params.map((param) => {
2734
2751
  if (param.default === void 0) {
2735
- return tsUpdateTypeParameterDeclaration(param, param.name, param.constraint, ts19.factory.createKeywordTypeNode(ts19.SyntaxKind.AnyKeyword));
2752
+ return updateTypeParameterDeclaration(param, param.modifiers, param.name, param.constraint, ts19.factory.createKeywordTypeNode(ts19.SyntaxKind.AnyKeyword));
2736
2753
  } else {
2737
2754
  return param;
2738
2755
  }
2739
2756
  });
2740
2757
  }
2741
2758
 
2742
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
2759
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
2743
2760
  var Environment = class {
2744
2761
  constructor(config, importManager, refEmitter, reflector, contextFile) {
2745
2762
  this.config = config;
@@ -2831,7 +2848,7 @@ var Environment = class {
2831
2848
  }
2832
2849
  };
2833
2850
 
2834
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
2851
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
2835
2852
  import { TmplAstElement as TmplAstElement2 } from "@angular/compiler";
2836
2853
  import ts21 from "typescript";
2837
2854
  var OutOfBandDiagnosticRecorderImpl = class {
@@ -2964,7 +2981,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
2964
2981
  };
2965
2982
  }
2966
2983
 
2967
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
2984
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
2968
2985
  import ts22 from "typescript";
2969
2986
  var TypeCheckShimGenerator = class {
2970
2987
  constructor() {
@@ -2982,11 +2999,11 @@ var TypeCheckShimGenerator = class {
2982
2999
  }
2983
3000
  };
2984
3001
 
2985
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
3002
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
2986
3003
  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";
2987
3004
  import ts25 from "typescript";
2988
3005
 
2989
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
3006
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
2990
3007
  import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
2991
3008
  import ts23 from "typescript";
2992
3009
  function wrapForDiagnostics(expr) {
@@ -3032,7 +3049,7 @@ function translateDiagnostic(diagnostic, resolver) {
3032
3049
  return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
3033
3050
  }
3034
3051
 
3035
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
3052
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
3036
3053
  import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
3037
3054
  import ts24 from "typescript";
3038
3055
  var NULL_AS_ANY = ts24.factory.createAsExpression(ts24.factory.createNull(), ts24.factory.createKeywordTypeNode(ts24.SyntaxKind.AnyKeyword));
@@ -3362,7 +3379,7 @@ var VeSafeLhsInferenceBugDetector = class {
3362
3379
  };
3363
3380
  VeSafeLhsInferenceBugDetector.SINGLETON = new VeSafeLhsInferenceBugDetector();
3364
3381
 
3365
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
3382
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
3366
3383
  import { ImplicitReceiver as ImplicitReceiver3, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstVariable } from "@angular/compiler";
3367
3384
  var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
3368
3385
  constructor(templateId, boundTarget, oob) {
@@ -3386,7 +3403,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
3386
3403
  }
3387
3404
  };
3388
3405
 
3389
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
3406
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
3390
3407
  var TcbGenericContextBehavior;
3391
3408
  (function(TcbGenericContextBehavior2) {
3392
3409
  TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
@@ -3805,6 +3822,7 @@ var TcbDomSchemaCheckerOp = class extends TcbOp {
3805
3822
  return false;
3806
3823
  }
3807
3824
  execute() {
3825
+ var _a;
3808
3826
  if (this.checkElement) {
3809
3827
  this.tcb.domSchemaChecker.checkElement(this.tcb.id, this.element, this.tcb.schemas, this.tcb.hostIsStandalone);
3810
3828
  }
@@ -3814,7 +3832,7 @@ var TcbDomSchemaCheckerOp = class extends TcbOp {
3814
3832
  }
3815
3833
  if (binding.type === 0) {
3816
3834
  if (binding.name !== "style" && binding.name !== "class") {
3817
- const propertyName = ATTR_TO_PROP[binding.name] || binding.name;
3835
+ const propertyName = (_a = ATTR_TO_PROP.get(binding.name)) != null ? _a : binding.name;
3818
3836
  this.tcb.domSchemaChecker.checkProperty(this.tcb.id, this.element, propertyName, binding.sourceSpan, this.tcb.schemas, this.tcb.hostIsStandalone);
3819
3837
  }
3820
3838
  }
@@ -3822,14 +3840,14 @@ var TcbDomSchemaCheckerOp = class extends TcbOp {
3822
3840
  return null;
3823
3841
  }
3824
3842
  };
3825
- var ATTR_TO_PROP = {
3843
+ var ATTR_TO_PROP = new Map(Object.entries({
3826
3844
  "class": "className",
3827
3845
  "for": "htmlFor",
3828
3846
  "formaction": "formAction",
3829
3847
  "innerHtml": "innerHTML",
3830
3848
  "readonly": "readOnly",
3831
3849
  "tabindex": "tabIndex"
3832
- };
3850
+ }));
3833
3851
  var TcbUnclaimedInputsOp = class extends TcbOp {
3834
3852
  constructor(tcb, scope, element, claimedInputs) {
3835
3853
  super();
@@ -3842,6 +3860,7 @@ var TcbUnclaimedInputsOp = class extends TcbOp {
3842
3860
  return false;
3843
3861
  }
3844
3862
  execute() {
3863
+ var _a;
3845
3864
  let elId = null;
3846
3865
  for (const binding of this.element.inputs) {
3847
3866
  if (binding.type === 0 && this.claimedInputs.has(binding.name)) {
@@ -3853,7 +3872,7 @@ var TcbUnclaimedInputsOp = class extends TcbOp {
3853
3872
  if (elId === null) {
3854
3873
  elId = this.scope.resolve(this.element);
3855
3874
  }
3856
- const propertyName = ATTR_TO_PROP[binding.name] || binding.name;
3875
+ const propertyName = (_a = ATTR_TO_PROP.get(binding.name)) != null ? _a : binding.name;
3857
3876
  const prop = ts25.factory.createElementAccessExpression(elId, ts25.factory.createStringLiteral(propertyName));
3858
3877
  const stmt = ts25.factory.createBinaryExpression(prop, ts25.SyntaxKind.EqualsToken, wrapForDiagnostics(expr));
3859
3878
  addParseSpanInfo(stmt, binding.sourceSpan);
@@ -4039,9 +4058,17 @@ var Scope = class {
4039
4058
  resolve(node, directive) {
4040
4059
  const res = this.resolveLocal(node, directive);
4041
4060
  if (res !== null) {
4042
- const clone = ts25.getMutableClone(res);
4043
- ts25.setSyntheticTrailingComments(clone, []);
4044
- return clone;
4061
+ let clone;
4062
+ if (ts25.isIdentifier(res)) {
4063
+ clone = ts25.factory.createIdentifier(res.text);
4064
+ } else if (ts25.isNonNullExpression(res)) {
4065
+ clone = ts25.factory.createNonNullExpression(res.expression);
4066
+ } else {
4067
+ throw new Error(`Could not resolve ${node} to an Identifier or a NonNullExpression`);
4068
+ }
4069
+ ts25.setOriginalNode(clone, res);
4070
+ clone.parent = clone.parent;
4071
+ return ts25.setSyntheticTrailingComments(clone, []);
4045
4072
  } else if (this.parent !== null) {
4046
4073
  return this.parent.resolve(node, directive);
4047
4074
  } else {
@@ -4437,7 +4464,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
4437
4464
  }
4438
4465
  };
4439
4466
 
4440
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
4467
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
4441
4468
  import ts26 from "typescript";
4442
4469
  var TypeCheckFile = class extends Environment {
4443
4470
  constructor(fileName, config, refEmitter, reflector, compilerHost) {
@@ -4473,7 +4500,7 @@ var TypeCheckFile = class extends Environment {
4473
4500
  }
4474
4501
  };
4475
4502
 
4476
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
4503
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
4477
4504
  var InliningMode;
4478
4505
  (function(InliningMode2) {
4479
4506
  InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
@@ -4711,10 +4738,10 @@ function splitStringAtPoints(str, points) {
4711
4738
  return splits;
4712
4739
  }
4713
4740
 
4714
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
4741
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
4715
4742
  import { ParseLocation, ParseSourceSpan } from "@angular/compiler";
4716
4743
 
4717
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
4744
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
4718
4745
  var LF_CHAR = 10;
4719
4746
  var CR_CHAR = 13;
4720
4747
  var LINE_SEP_CHAR = 8232;
@@ -4755,7 +4782,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
4755
4782
  return low - 1;
4756
4783
  }
4757
4784
 
4758
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
4785
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
4759
4786
  var TemplateSource = class {
4760
4787
  constructor(mapping, file) {
4761
4788
  this.mapping = mapping;
@@ -4806,7 +4833,7 @@ var TemplateSourceManager = class {
4806
4833
  }
4807
4834
  };
4808
4835
 
4809
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
4836
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
4810
4837
  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";
4811
4838
  import ts28 from "typescript";
4812
4839
  var SymbolBuilder = class {
@@ -5251,10 +5278,10 @@ function sourceSpanEqual(a, b) {
5251
5278
  return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
5252
5279
  }
5253
5280
 
5254
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
5281
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
5255
5282
  var REGISTRY2 = new DomElementSchemaRegistry2();
5256
5283
  var TemplateTypeCheckerImpl = class {
5257
- constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, componentScopeReader, typeCheckScopeRegistry, perf) {
5284
+ constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, componentScopeReader, typeCheckScopeRegistry, perf) {
5258
5285
  this.originalProgram = originalProgram;
5259
5286
  this.programDriver = programDriver;
5260
5287
  this.typeCheckAdapter = typeCheckAdapter;
@@ -5263,6 +5290,7 @@ var TemplateTypeCheckerImpl = class {
5263
5290
  this.reflector = reflector;
5264
5291
  this.compilerHost = compilerHost;
5265
5292
  this.priorBuild = priorBuild;
5293
+ this.metaReader = metaReader;
5266
5294
  this.componentScopeReader = componentScopeReader;
5267
5295
  this.typeCheckScopeRegistry = typeCheckScopeRegistry;
5268
5296
  this.perf = perf;
@@ -5648,6 +5676,40 @@ var TemplateTypeCheckerImpl = class {
5648
5676
  getPotentialDomEvents(tagName) {
5649
5677
  return REGISTRY2.allKnownEventsOfElement(tagName);
5650
5678
  }
5679
+ getPrimaryAngularDecorator(target) {
5680
+ this.ensureAllShimsForOneFile(target.getSourceFile());
5681
+ if (!isNamedClassDeclaration(target)) {
5682
+ return null;
5683
+ }
5684
+ const ref = new Reference(target);
5685
+ const dirMeta = this.metaReader.getDirectiveMetadata(ref);
5686
+ if (dirMeta !== null) {
5687
+ return dirMeta.decorator;
5688
+ }
5689
+ const pipeMeta = this.metaReader.getPipeMetadata(ref);
5690
+ if (pipeMeta !== null) {
5691
+ return pipeMeta.decorator;
5692
+ }
5693
+ const ngModuleMeta = this.metaReader.getNgModuleMetadata(ref);
5694
+ if (ngModuleMeta !== null) {
5695
+ return ngModuleMeta.decorator;
5696
+ }
5697
+ return null;
5698
+ }
5699
+ getOwningNgModule(component) {
5700
+ if (!isNamedClassDeclaration(component)) {
5701
+ return null;
5702
+ }
5703
+ const dirMeta = this.metaReader.getDirectiveMetadata(new Reference(component));
5704
+ if (dirMeta !== null && dirMeta.isStandalone) {
5705
+ return null;
5706
+ }
5707
+ const scope = this.componentScopeReader.getScopeForComponent(component);
5708
+ if (scope === null || scope.kind !== ComponentScopeKind.NgModule || !isNamedClassDeclaration(scope.ngModule)) {
5709
+ return null;
5710
+ }
5711
+ return scope.ngModule;
5712
+ }
5651
5713
  getScopeData(component) {
5652
5714
  if (this.scopeCache.has(component)) {
5653
5715
  return this.scopeCache.get(component);
@@ -5788,10 +5850,10 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
5788
5850
  }
5789
5851
  };
5790
5852
 
5791
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
5853
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
5792
5854
  import { TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
5793
5855
 
5794
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
5856
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
5795
5857
  import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor3 } from "@angular/compiler";
5796
5858
  var TemplateCheckWithVisitor = class {
5797
5859
  run(ctx, component, template) {
@@ -5868,7 +5930,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor3 {
5868
5930
  }
5869
5931
  };
5870
5932
 
5871
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
5933
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
5872
5934
  var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
5873
5935
  constructor() {
5874
5936
  super(...arguments);
@@ -5893,7 +5955,7 @@ var factory = {
5893
5955
  create: () => new InvalidBananaInBoxCheck()
5894
5956
  };
5895
5957
 
5896
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
5958
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
5897
5959
  import { TmplAstTemplate as TmplAstTemplate4 } from "@angular/compiler";
5898
5960
  var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
5899
5961
  ["ngIf", "NgIf"],
@@ -5938,7 +6000,7 @@ var factory2 = {
5938
6000
  }
5939
6001
  };
5940
6002
 
5941
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
6003
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
5942
6004
  import { TmplAstTemplate as TmplAstTemplate5 } from "@angular/compiler";
5943
6005
  var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
5944
6006
  constructor() {
@@ -5971,7 +6033,7 @@ var factory3 = {
5971
6033
  create: () => new MissingNgForOfLetCheck()
5972
6034
  };
5973
6035
 
5974
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
6036
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
5975
6037
  import { Binary } from "@angular/compiler";
5976
6038
  import ts29 from "typescript";
5977
6039
  var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
@@ -6016,7 +6078,7 @@ var factory4 = {
6016
6078
  }
6017
6079
  };
6018
6080
 
6019
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
6081
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
6020
6082
  import { SafeCall as SafeCall2, SafeKeyedRead as SafeKeyedRead2, SafePropertyRead as SafePropertyRead5 } from "@angular/compiler";
6021
6083
  import ts30 from "typescript";
6022
6084
  var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
@@ -6062,7 +6124,7 @@ var factory5 = {
6062
6124
  }
6063
6125
  };
6064
6126
 
6065
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
6127
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
6066
6128
  import { TmplAstBoundAttribute as TmplAstBoundAttribute3 } from "@angular/compiler";
6067
6129
  var STYLE_SUFFIXES = ["px", "%", "em"];
6068
6130
  var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
@@ -6086,7 +6148,7 @@ var factory6 = {
6086
6148
  create: () => new SuffixNotSupportedCheck()
6087
6149
  };
6088
6150
 
6089
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
6151
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
6090
6152
  import { TmplAstTextAttribute as TmplAstTextAttribute4 } from "@angular/compiler";
6091
6153
  var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
6092
6154
  constructor() {
@@ -6125,10 +6187,10 @@ var factory7 = {
6125
6187
  create: () => new TextAttributeNotBindingSpec()
6126
6188
  };
6127
6189
 
6128
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
6190
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
6129
6191
  import ts31 from "typescript";
6130
6192
 
6131
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
6193
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
6132
6194
  var DiagnosticCategoryLabel;
6133
6195
  (function(DiagnosticCategoryLabel2) {
6134
6196
  DiagnosticCategoryLabel2["Warning"] = "warning";
@@ -6136,7 +6198,7 @@ var DiagnosticCategoryLabel;
6136
6198
  DiagnosticCategoryLabel2["Suppress"] = "suppress";
6137
6199
  })(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
6138
6200
 
6139
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
6201
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
6140
6202
  var ExtendedTemplateCheckerImpl = class {
6141
6203
  constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
6142
6204
  var _a, _b, _c, _d, _e;
@@ -6189,7 +6251,7 @@ function assertNever(value) {
6189
6251
  ${value}`);
6190
6252
  }
6191
6253
 
6192
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
6254
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
6193
6255
  var ALL_DIAGNOSTIC_FACTORIES = [
6194
6256
  factory,
6195
6257
  factory4,
@@ -6200,7 +6262,7 @@ var ALL_DIAGNOSTIC_FACTORIES = [
6200
6262
  factory6
6201
6263
  ];
6202
6264
 
6203
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
6265
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
6204
6266
  var CompilationTicketKind;
6205
6267
  (function(CompilationTicketKind2) {
6206
6268
  CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
@@ -6260,19 +6322,20 @@ function incrementalFromStateTicket(oldProgram, oldState, newProgram, options, i
6260
6322
  }
6261
6323
  var NgCompiler = class {
6262
6324
  constructor(adapter, options, inputProgram, programDriver, incrementalStrategy, incrementalCompilation, enableTemplateTypeChecker, usePoisonedData, livePerfRecorder) {
6325
+ var _a;
6263
6326
  this.adapter = adapter;
6264
6327
  this.options = options;
6265
6328
  this.inputProgram = inputProgram;
6266
6329
  this.programDriver = programDriver;
6267
6330
  this.incrementalStrategy = incrementalStrategy;
6268
6331
  this.incrementalCompilation = incrementalCompilation;
6269
- this.enableTemplateTypeChecker = enableTemplateTypeChecker;
6270
6332
  this.usePoisonedData = usePoisonedData;
6271
6333
  this.livePerfRecorder = livePerfRecorder;
6272
6334
  this.compilation = null;
6273
6335
  this.constructionDiagnostics = [];
6274
6336
  this.nonTemplateDiagnostics = null;
6275
6337
  this.delegatingPerfRecorder = new DelegatingPerfRecorder(this.perfRecorder);
6338
+ this.enableTemplateTypeChecker = enableTemplateTypeChecker || ((_a = options._enableTemplateTypeChecker) != null ? _a : false);
6276
6339
  this.constructionDiagnostics.push(...this.adapter.constructionDiagnostics, ...verifyCompatibleTypeCheckOptions(this.options));
6277
6340
  this.currentProgram = inputProgram;
6278
6341
  this.closureCompilerEnabled = !!this.options.annotateForClosureCompiler;
@@ -6719,7 +6782,7 @@ var NgCompiler = class {
6719
6782
  this.incrementalStrategy.setIncrementalState(this.incrementalCompilation.state, program);
6720
6783
  this.currentProgram = program;
6721
6784
  });
6722
- const templateTypeChecker = new TemplateTypeCheckerImpl(this.inputProgram, notifyingDriver, traitCompiler, this.getTypeCheckingConfig(), refEmitter, reflector, this.adapter, this.incrementalCompilation, scopeReader, typeCheckScopeRegistry, this.delegatingPerfRecorder);
6785
+ const templateTypeChecker = new TemplateTypeCheckerImpl(this.inputProgram, notifyingDriver, traitCompiler, this.getTypeCheckingConfig(), refEmitter, reflector, this.adapter, this.incrementalCompilation, metaReader, scopeReader, typeCheckScopeRegistry, this.delegatingPerfRecorder);
6723
6786
  const extendedTemplateChecker = this.constructionDiagnostics.length === 0 ? new ExtendedTemplateCheckerImpl(templateTypeChecker, checker, ALL_DIAGNOSTIC_FACTORIES, this.options) : null;
6724
6787
  return {
6725
6788
  isCore,
@@ -6747,7 +6810,8 @@ function isAngularCorePackage(program) {
6747
6810
  if (!ts32.isVariableStatement(stmt)) {
6748
6811
  return false;
6749
6812
  }
6750
- if (stmt.modifiers === void 0 || !stmt.modifiers.some((mod) => mod.kind === ts32.SyntaxKind.ExportKeyword)) {
6813
+ const modifiers = getModifiers(stmt);
6814
+ if (modifiers === void 0 || !modifiers.some((mod) => mod.kind === ts32.SyntaxKind.ExportKeyword)) {
6751
6815
  return false;
6752
6816
  }
6753
6817
  return stmt.declarationList.declarations.some((decl) => {
@@ -6898,7 +6962,7 @@ function versionMapFromProgram(program, driver) {
6898
6962
  return versions;
6899
6963
  }
6900
6964
 
6901
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
6965
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
6902
6966
  import ts33 from "typescript";
6903
6967
  var DelegatingCompilerHost2 = class {
6904
6968
  constructor(delegate) {
@@ -7042,7 +7106,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
7042
7106
  }
7043
7107
  };
7044
7108
 
7045
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
7109
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
7046
7110
  var NgtscProgram = class {
7047
7111
  constructor(rootNames, options, delegateHost, oldProgram) {
7048
7112
  this.options = options;
@@ -7251,15 +7315,15 @@ function mergeEmitResults(emitResults) {
7251
7315
  return { diagnostics, emitSkipped, emittedFiles };
7252
7316
  }
7253
7317
 
7254
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
7318
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
7255
7319
  function createProgram({ rootNames, options, host, oldProgram }) {
7256
7320
  return new NgtscProgram(rootNames, options, host, oldProgram);
7257
7321
  }
7258
7322
 
7259
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
7323
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
7260
7324
  import ts36 from "typescript";
7261
7325
 
7262
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
7326
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
7263
7327
  import ts35 from "typescript";
7264
7328
  var GENERATED_FILES = /(.*?)\.(ngfactory|shim\.ngstyle|ngstyle|ngsummary)\.(js|d\.ts|ts)$/;
7265
7329
  function createMessageDiagnostic(messageText) {
@@ -7274,7 +7338,7 @@ function createMessageDiagnostic(messageText) {
7274
7338
  };
7275
7339
  }
7276
7340
 
7277
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
7341
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
7278
7342
  var defaultFormatHost = {
7279
7343
  getCurrentDirectory: () => ts36.sys.getCurrentDirectory(),
7280
7344
  getCanonicalFileName: (fileName) => fileName,
@@ -7489,4 +7553,4 @@ export {
7489
7553
  * found in the LICENSE file at https://angular.io/license
7490
7554
  */
7491
7555
  // Closure Compiler ignores @suppress and similar if the comment contains @license.
7492
- //# sourceMappingURL=chunk-I34YWN6W.js.map
7556
+ //# sourceMappingURL=chunk-GG7BM2LH.js.map