@angular/compiler-cli 14.0.0-next.12 → 14.0.0-next.15

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 (67) hide show
  1. package/bundles/{chunk-5K2JLFXT.js → chunk-2IMT6JFI.js} +6 -6
  2. package/bundles/{chunk-5K2JLFXT.js.map → chunk-2IMT6JFI.js.map} +0 -0
  3. package/bundles/{chunk-GMECRI4A.js → chunk-2ZVQLOCC.js} +3240 -3097
  4. package/bundles/chunk-2ZVQLOCC.js.map +6 -0
  5. package/bundles/{chunk-LV3S6HFU.js → chunk-7464WID2.js} +70 -70
  6. package/bundles/{chunk-LV3S6HFU.js.map → chunk-7464WID2.js.map} +0 -0
  7. package/bundles/{chunk-T7KW7P7D.js → chunk-CPLZ6CTJ.js} +97 -61
  8. package/bundles/chunk-CPLZ6CTJ.js.map +6 -0
  9. package/bundles/{chunk-ZCDB56AX.js → chunk-LX5Q27EF.js} +3 -3
  10. package/bundles/{chunk-ZCDB56AX.js.map → chunk-LX5Q27EF.js.map} +0 -0
  11. package/bundles/{chunk-BRHP6XKM.js → chunk-OLGEBPBY.js} +4 -4
  12. package/bundles/{chunk-BRHP6XKM.js.map → chunk-OLGEBPBY.js.map} +0 -0
  13. package/bundles/{chunk-TXPPTZTK.js → chunk-PR5JCXGL.js} +5 -5
  14. package/bundles/{chunk-TXPPTZTK.js.map → chunk-PR5JCXGL.js.map} +0 -0
  15. package/bundles/{chunk-SJL5HBUW.js → chunk-R3C7RFJ4.js} +2 -2
  16. package/bundles/{chunk-SJL5HBUW.js.map → chunk-R3C7RFJ4.js.map} +0 -0
  17. package/bundles/{chunk-LC26KH5A.js → chunk-R4NY3TJC.js} +5 -5
  18. package/bundles/{chunk-LC26KH5A.js.map → chunk-R4NY3TJC.js.map} +0 -0
  19. package/bundles/{chunk-MGNOHKS6.js → chunk-RJMU2IDU.js} +206 -122
  20. package/bundles/chunk-RJMU2IDU.js.map +6 -0
  21. package/bundles/{chunk-TD64C4QJ.js → chunk-T7MYRXIE.js} +7 -7
  22. package/bundles/{chunk-TD64C4QJ.js.map → chunk-T7MYRXIE.js.map} +0 -0
  23. package/bundles/{chunk-6356XFP6.js → chunk-UMDDHI5B.js} +26 -26
  24. package/bundles/{chunk-6356XFP6.js.map → chunk-UMDDHI5B.js.map} +0 -0
  25. package/bundles/{chunk-TV7VZNWL.js → chunk-W6KM7BUM.js} +6 -6
  26. package/bundles/{chunk-TV7VZNWL.js.map → chunk-W6KM7BUM.js.map} +0 -0
  27. package/bundles/{chunk-WH4QSABR.js → chunk-WGBFSDVQ.js} +7 -7
  28. package/bundles/{chunk-WH4QSABR.js.map → chunk-WGBFSDVQ.js.map} +0 -0
  29. package/bundles/{chunk-GAGUQCGV.js → chunk-ZNTB6B4W.js} +40 -40
  30. package/bundles/{chunk-GAGUQCGV.js.map → chunk-ZNTB6B4W.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/annotations/common/index.d.ts +1 -0
  48. package/src/ngtsc/annotations/common/src/schema.d.ts +12 -0
  49. package/src/ngtsc/annotations/common/src/util.d.ts +1 -1
  50. package/src/ngtsc/annotations/component/src/metadata.d.ts +7 -8
  51. package/src/ngtsc/annotations/ng_module/src/handler.d.ts +8 -7
  52. package/src/ngtsc/metadata/src/api.d.ts +18 -5
  53. package/src/ngtsc/metadata/src/util.d.ts +1 -0
  54. package/src/ngtsc/partial_evaluator/index.d.ts +1 -0
  55. package/src/ngtsc/partial_evaluator/src/dynamic.d.ts +9 -1
  56. package/src/ngtsc/partial_evaluator/src/interface.d.ts +2 -1
  57. package/src/ngtsc/partial_evaluator/src/result.d.ts +2 -1
  58. package/src/ngtsc/partial_evaluator/src/synthetic.d.ts +19 -0
  59. package/src/ngtsc/scope/index.d.ts +2 -2
  60. package/src/ngtsc/scope/src/api.d.ts +16 -10
  61. package/src/ngtsc/scope/src/component_scope.d.ts +2 -2
  62. package/src/ngtsc/scope/src/standalone.d.ts +26 -0
  63. package/src/ngtsc/scope/src/util.d.ts +1 -0
  64. package/bundles/chunk-GMECRI4A.js.map +0 -6
  65. package/bundles/chunk-MGNOHKS6.js.map +0 -6
  66. package/bundles/chunk-T7KW7P7D.js.map +0 -6
  67. package/src/ngtsc/annotations/component/src/scope.d.ts +0 -20
@@ -6,6 +6,8 @@
6
6
  import {
7
7
  CompilationMode,
8
8
  ComponentDecoratorHandler,
9
+ ComponentScopeKind,
10
+ CompoundComponentScopeReader,
9
11
  CompoundMetadataReader,
10
12
  CompoundMetadataRegistry,
11
13
  DirectiveDecoratorHandler,
@@ -16,6 +18,7 @@ import {
16
18
  InjectableDecoratorHandler,
17
19
  LocalMetadataRegistry,
18
20
  LocalModuleScopeRegistry,
21
+ MetaKind,
19
22
  MetadataDtsModuleScopeResolver,
20
23
  NgModuleDecoratorHandler,
21
24
  NoopReferencesRegistry,
@@ -36,11 +39,11 @@ import {
36
39
  ivyTransformFactory,
37
40
  retagAllTsFiles,
38
41
  untagAllTsFiles
39
- } from "./chunk-GMECRI4A.js";
42
+ } from "./chunk-2ZVQLOCC.js";
40
43
  import {
41
44
  TypeScriptReflectionHost,
42
45
  isNamedClassDeclaration
43
- } from "./chunk-5K2JLFXT.js";
46
+ } from "./chunk-2IMT6JFI.js";
44
47
  import {
45
48
  AbsoluteModuleStrategy,
46
49
  AliasStrategy,
@@ -79,7 +82,7 @@ import {
79
82
  toUnredirectedSourceFile,
80
83
  translateExpression,
81
84
  translateType
82
- } from "./chunk-6356XFP6.js";
85
+ } from "./chunk-UMDDHI5B.js";
83
86
  import {
84
87
  LogicalFileSystem,
85
88
  absoluteFrom,
@@ -89,20 +92,20 @@ import {
89
92
  getSourceFileOrError,
90
93
  join,
91
94
  resolve
92
- } from "./chunk-TD64C4QJ.js";
95
+ } from "./chunk-T7MYRXIE.js";
93
96
  import {
94
97
  ActivePerfRecorder,
95
98
  DelegatingPerfRecorder,
96
99
  PerfCheckpoint,
97
100
  PerfEvent,
98
101
  PerfPhase
99
- } from "./chunk-LC26KH5A.js";
102
+ } from "./chunk-R4NY3TJC.js";
100
103
  import {
101
104
  __spreadProps,
102
105
  __spreadValues
103
106
  } from "./chunk-GMSUYBZP.js";
104
107
 
105
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
108
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
106
109
  var DEFAULT_ERROR_CODE = 100;
107
110
  var UNKNOWN_ERROR_CODE = 500;
108
111
  var SOURCE = "angular";
@@ -120,7 +123,7 @@ var EmitFlags;
120
123
  EmitFlags2[EmitFlags2["All"] = 31] = "All";
121
124
  })(EmitFlags || (EmitFlags = {}));
122
125
 
123
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
126
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
124
127
  import ts from "typescript";
125
128
  var wrapHostForTest = null;
126
129
  function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, true) }) {
@@ -130,21 +133,21 @@ function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, t
130
133
  return tsHost;
131
134
  }
132
135
 
133
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
136
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
134
137
  var OptimizeFor;
135
138
  (function(OptimizeFor2) {
136
139
  OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
137
140
  OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
138
141
  })(OptimizeFor || (OptimizeFor = {}));
139
142
 
140
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
143
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
141
144
  var CompletionKind;
142
145
  (function(CompletionKind2) {
143
146
  CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
144
147
  CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
145
148
  })(CompletionKind || (CompletionKind = {}));
146
149
 
147
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
150
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
148
151
  var SymbolKind;
149
152
  (function(SymbolKind2) {
150
153
  SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
@@ -160,11 +163,11 @@ var SymbolKind;
160
163
  SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
161
164
  })(SymbolKind || (SymbolKind = {}));
162
165
 
163
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
166
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
164
167
  import { HtmlParser, MessageBundle } from "@angular/compiler";
165
168
  import ts30 from "typescript";
166
169
 
167
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
170
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
168
171
  import { Xliff, Xliff2, Xmb } from "@angular/compiler";
169
172
  import * as path from "path";
170
173
  function i18nGetExtension(formatName) {
@@ -215,10 +218,10 @@ function getPathNormalizer(basePath) {
215
218
  };
216
219
  }
217
220
 
218
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
221
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
219
222
  import ts2 from "typescript";
220
223
 
221
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
224
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
222
225
  function toNumbers(value) {
223
226
  const suffixIndex = value.lastIndexOf("-");
224
227
  return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
@@ -253,7 +256,7 @@ function compareVersions(v1, v2) {
253
256
  return compareNumbers(toNumbers(v1), toNumbers(v2));
254
257
  }
255
258
 
256
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
259
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
257
260
  var MIN_TS_VERSION = "4.6.2";
258
261
  var MAX_TS_VERSION = "4.7.0";
259
262
  var tsVersion = ts2.version;
@@ -266,10 +269,10 @@ function verifySupportedTypeScriptVersion() {
266
269
  checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
267
270
  }
268
271
 
269
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
272
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
270
273
  import ts28 from "typescript";
271
274
 
272
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
275
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
273
276
  var CycleAnalyzer = class {
274
277
  constructor(importGraph) {
275
278
  this.importGraph = importGraph;
@@ -340,7 +343,7 @@ var Cycle = class {
340
343
  }
341
344
  };
342
345
 
343
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
346
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
344
347
  import ts3 from "typescript";
345
348
  var ImportGraph = class {
346
349
  constructor(checker, perf) {
@@ -432,7 +435,7 @@ var Found = class {
432
435
  }
433
436
  };
434
437
 
435
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
438
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
436
439
  import ts4 from "typescript";
437
440
  var FlatIndexGenerator = class {
438
441
  constructor(entryPoint, relativeFlatIndexPath, moduleName) {
@@ -457,7 +460,7 @@ export * from '${relativeEntryPoint}';
457
460
  }
458
461
  };
459
462
 
460
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
463
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
461
464
  function findFlatIndexEntryPoint(rootFiles) {
462
465
  const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
463
466
  let resolvedEntryPoint = null;
@@ -473,7 +476,7 @@ function findFlatIndexEntryPoint(rootFiles) {
473
476
  return resolvedEntryPoint;
474
477
  }
475
478
 
476
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
479
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
477
480
  import ts5 from "typescript";
478
481
  function checkForPrivateExports(entryPoint, checker, refGraph) {
479
482
  const diagnostics = [];
@@ -553,7 +556,7 @@ function getDescriptorOfDeclaration(decl) {
553
556
  }
554
557
  }
555
558
 
556
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
559
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
557
560
  var ReferenceGraph = class {
558
561
  constructor() {
559
562
  this.references = /* @__PURE__ */ new Map();
@@ -607,7 +610,7 @@ var ReferenceGraph = class {
607
610
  }
608
611
  };
609
612
 
610
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
613
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
611
614
  var NgOriginalFile = Symbol("NgOriginalFile");
612
615
  var UpdateMode;
613
616
  (function(UpdateMode2) {
@@ -615,7 +618,7 @@ var UpdateMode;
615
618
  UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
616
619
  })(UpdateMode || (UpdateMode = {}));
617
620
 
618
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
621
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
619
622
  import ts6 from "typescript";
620
623
  var DelegatingCompilerHost = class {
621
624
  constructor(delegate) {
@@ -726,7 +729,7 @@ var TsCreateProgramDriver = class {
726
729
  }
727
730
  };
728
731
 
729
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
732
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
730
733
  var FileDependencyGraph = class {
731
734
  constructor() {
732
735
  this.nodes = /* @__PURE__ */ new Map();
@@ -793,7 +796,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
793
796
  return false;
794
797
  }
795
798
 
796
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
799
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
797
800
  var IncrementalStateKind;
798
801
  (function(IncrementalStateKind2) {
799
802
  IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
@@ -801,7 +804,7 @@ var IncrementalStateKind;
801
804
  IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
802
805
  })(IncrementalStateKind || (IncrementalStateKind = {}));
803
806
 
804
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
807
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
805
808
  var PhaseKind;
806
809
  (function(PhaseKind2) {
807
810
  PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
@@ -1002,7 +1005,7 @@ function toOriginalSourceFile(sf) {
1002
1005
  }
1003
1006
  }
1004
1007
 
1005
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
1008
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
1006
1009
  var TrackedIncrementalBuildStrategy = class {
1007
1010
  constructor() {
1008
1011
  this.state = null;
@@ -1038,7 +1041,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
1038
1041
  };
1039
1042
  var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
1040
1043
 
1041
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
1044
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
1042
1045
  var IdentifierKind;
1043
1046
  (function(IdentifierKind2) {
1044
1047
  IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
@@ -1056,7 +1059,7 @@ var AbsoluteSourceSpan = class {
1056
1059
  }
1057
1060
  };
1058
1061
 
1059
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
1062
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
1060
1063
  var IndexingContext = class {
1061
1064
  constructor() {
1062
1065
  this.components = /* @__PURE__ */ new Set();
@@ -1066,10 +1069,10 @@ var IndexingContext = class {
1066
1069
  }
1067
1070
  };
1068
1071
 
1069
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1072
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1070
1073
  import { ParseSourceFile } from "@angular/compiler";
1071
1074
 
1072
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
1075
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
1073
1076
  import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate } from "@angular/compiler";
1074
1077
  var ExpressionVisitor = class extends RecursiveAstVisitor {
1075
1078
  constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
@@ -1306,7 +1309,7 @@ function getTemplateIdentifiers(boundTemplate) {
1306
1309
  return { identifiers: visitor.identifiers, errors: visitor.errors };
1307
1310
  }
1308
1311
 
1309
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1312
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1310
1313
  function generateAnalysis(context) {
1311
1314
  const analysis = /* @__PURE__ */ new Map();
1312
1315
  context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
@@ -1342,7 +1345,7 @@ function generateAnalysis(context) {
1342
1345
  return analysis;
1343
1346
  }
1344
1347
 
1345
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
1348
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
1346
1349
  import ts7 from "typescript";
1347
1350
  var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
1348
1351
  var RESOURCE_MARKER = ".$ngresource$";
@@ -1488,10 +1491,88 @@ function createLookupResolutionHost(adapter) {
1488
1491
  };
1489
1492
  }
1490
1493
 
1491
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
1494
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
1495
+ var StandaloneComponentScopeReader = class {
1496
+ constructor(metaReader, localModuleReader, dtsModuleReader) {
1497
+ this.metaReader = metaReader;
1498
+ this.localModuleReader = localModuleReader;
1499
+ this.dtsModuleReader = dtsModuleReader;
1500
+ this.cache = /* @__PURE__ */ new Map();
1501
+ }
1502
+ getScopeForComponent(clazz) {
1503
+ var _a;
1504
+ if (!this.cache.has(clazz)) {
1505
+ const clazzRef = new Reference(clazz);
1506
+ const clazzMeta = this.metaReader.getDirectiveMetadata(clazzRef);
1507
+ if (clazzMeta === null || !clazzMeta.isComponent || !clazzMeta.isStandalone) {
1508
+ this.cache.set(clazz, null);
1509
+ return null;
1510
+ }
1511
+ const dependencies = /* @__PURE__ */ new Set([clazzMeta]);
1512
+ const seen = /* @__PURE__ */ new Set([clazz]);
1513
+ let isPoisoned = clazzMeta.isPoisoned;
1514
+ if (clazzMeta.imports !== null) {
1515
+ for (const ref of clazzMeta.imports) {
1516
+ if (seen.has(ref.node)) {
1517
+ continue;
1518
+ }
1519
+ seen.add(ref.node);
1520
+ const dirMeta = this.metaReader.getDirectiveMetadata(ref);
1521
+ if (dirMeta !== null) {
1522
+ dependencies.add(dirMeta);
1523
+ isPoisoned = isPoisoned || dirMeta.isPoisoned || !dirMeta.isStandalone;
1524
+ continue;
1525
+ }
1526
+ const pipeMeta = this.metaReader.getPipeMetadata(ref);
1527
+ if (pipeMeta !== null) {
1528
+ dependencies.add(pipeMeta);
1529
+ isPoisoned = isPoisoned || !pipeMeta.isStandalone;
1530
+ continue;
1531
+ }
1532
+ const ngModuleMeta = this.metaReader.getNgModuleMetadata(ref);
1533
+ if (ngModuleMeta !== null) {
1534
+ dependencies.add(ngModuleMeta);
1535
+ let ngModuleScope;
1536
+ if (ref.node.getSourceFile().isDeclarationFile) {
1537
+ ngModuleScope = this.dtsModuleReader.resolve(ref);
1538
+ } else {
1539
+ ngModuleScope = this.localModuleReader.getScopeOfModule(ref.node);
1540
+ }
1541
+ if (ngModuleScope === null) {
1542
+ isPoisoned = true;
1543
+ continue;
1544
+ }
1545
+ isPoisoned = isPoisoned || ngModuleScope.exported.isPoisoned;
1546
+ for (const dep of ngModuleScope.exported.dependencies) {
1547
+ if (!seen.has(dep.ref.node)) {
1548
+ seen.add(dep.ref.node);
1549
+ dependencies.add(dep);
1550
+ }
1551
+ }
1552
+ continue;
1553
+ }
1554
+ isPoisoned = true;
1555
+ }
1556
+ }
1557
+ this.cache.set(clazz, {
1558
+ kind: ComponentScopeKind.Standalone,
1559
+ component: clazz,
1560
+ dependencies: Array.from(dependencies),
1561
+ isPoisoned,
1562
+ schemas: (_a = clazzMeta.schemas) != null ? _a : []
1563
+ });
1564
+ }
1565
+ return this.cache.get(clazz);
1566
+ }
1567
+ getRemoteScope() {
1568
+ return null;
1569
+ }
1570
+ };
1571
+
1572
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
1492
1573
  import { CssSelector, DomElementSchemaRegistry as DomElementSchemaRegistry2 } from "@angular/compiler";
1493
1574
 
1494
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
1575
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
1495
1576
  import ts8 from "typescript";
1496
1577
  function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
1497
1578
  if (mapping.type === "direct") {
@@ -1564,7 +1645,7 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
1564
1645
  }
1565
1646
  }
1566
1647
 
1567
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
1648
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
1568
1649
  var TEMPLATE_ID = Symbol("ngTemplateId");
1569
1650
  var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
1570
1651
  function getTemplateId(clazz) {
@@ -1581,11 +1662,11 @@ function allocateTemplateId(sf) {
1581
1662
  return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
1582
1663
  }
1583
1664
 
1584
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
1665
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
1585
1666
  import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
1586
1667
  import ts10 from "typescript";
1587
1668
 
1588
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
1669
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
1589
1670
  import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
1590
1671
  import ts9 from "typescript";
1591
1672
  var parseSpanComment = /^(\d+),(\d+)$/;
@@ -1705,7 +1786,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
1705
1786
  }) || false;
1706
1787
  }
1707
1788
 
1708
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
1789
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
1709
1790
  var CompletionEngine = class {
1710
1791
  constructor(tcb, data, tcbPath, tcbIsShim) {
1711
1792
  this.tcb = tcb;
@@ -1862,10 +1943,10 @@ var CompletionEngine = class {
1862
1943
  }
1863
1944
  };
1864
1945
 
1865
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
1946
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
1866
1947
  import ts24 from "typescript";
1867
1948
 
1868
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
1949
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
1869
1950
  import { DomElementSchemaRegistry } from "@angular/compiler";
1870
1951
  import ts11 from "typescript";
1871
1952
  var REGISTRY = new DomElementSchemaRegistry();
@@ -1915,11 +1996,11 @@ var RegistryDomSchemaChecker = class {
1915
1996
  }
1916
1997
  };
1917
1998
 
1918
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
1999
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
1919
2000
  import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
1920
2001
  import ts17 from "typescript";
1921
2002
 
1922
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
2003
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
1923
2004
  import ts12 from "typescript";
1924
2005
  var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
1925
2006
  ts12.SyntaxKind.ParenthesizedExpression,
@@ -1988,16 +2069,16 @@ function isAccessExpression(node) {
1988
2069
  return ts12.isPropertyAccessExpression(node) || ts12.isElementAccessExpression(node);
1989
2070
  }
1990
2071
 
1991
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
2072
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
1992
2073
  import ts16 from "typescript";
1993
2074
 
1994
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
2075
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
1995
2076
  import ts15 from "typescript";
1996
2077
 
1997
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
2078
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
1998
2079
  import ts14 from "typescript";
1999
2080
 
2000
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
2081
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
2001
2082
  import ts13 from "typescript";
2002
2083
  var INELIGIBLE = {};
2003
2084
  function canEmitType(type, canEmit) {
@@ -2059,7 +2140,7 @@ var TypeEmitter = class {
2059
2140
  }
2060
2141
  };
2061
2142
 
2062
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
2143
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
2063
2144
  var TypeParameterEmitter = class {
2064
2145
  constructor(typeParameters, reflector) {
2065
2146
  this.typeParameters = typeParameters;
@@ -2136,7 +2217,7 @@ var TypeParameterEmitter = class {
2136
2217
  }
2137
2218
  };
2138
2219
 
2139
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
2220
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
2140
2221
  var TcbInliningRequirement;
2141
2222
  (function(TcbInliningRequirement2) {
2142
2223
  TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
@@ -2216,7 +2297,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
2216
2297
  return emitter.canEmit((ref) => env.canReferenceType(ref));
2217
2298
  }
2218
2299
 
2219
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
2300
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
2220
2301
  function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
2221
2302
  const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
2222
2303
  const rawType = ts16.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
@@ -2287,7 +2368,7 @@ function typeParametersWithDefaultTypes(params) {
2287
2368
  });
2288
2369
  }
2289
2370
 
2290
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
2371
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
2291
2372
  var Environment = class {
2292
2373
  constructor(config, importManager, refEmitter, reflector, contextFile) {
2293
2374
  this.config = config;
@@ -2379,7 +2460,7 @@ var Environment = class {
2379
2460
  }
2380
2461
  };
2381
2462
 
2382
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
2463
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
2383
2464
  import { TmplAstElement as TmplAstElement2 } from "@angular/compiler";
2384
2465
  import ts18 from "typescript";
2385
2466
  var OutOfBandDiagnosticRecorderImpl = class {
@@ -2511,7 +2592,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
2511
2592
  });
2512
2593
  }
2513
2594
 
2514
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
2595
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
2515
2596
  import ts19 from "typescript";
2516
2597
  var TypeCheckShimGenerator = class {
2517
2598
  constructor() {
@@ -2529,11 +2610,11 @@ var TypeCheckShimGenerator = class {
2529
2610
  }
2530
2611
  };
2531
2612
 
2532
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
2613
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
2533
2614
  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";
2534
2615
  import ts22 from "typescript";
2535
2616
 
2536
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
2617
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
2537
2618
  import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
2538
2619
  import ts20 from "typescript";
2539
2620
  function wrapForDiagnostics(expr) {
@@ -2579,7 +2660,7 @@ function translateDiagnostic(diagnostic, resolver) {
2579
2660
  return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
2580
2661
  }
2581
2662
 
2582
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
2663
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
2583
2664
  import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
2584
2665
  import ts21 from "typescript";
2585
2666
  var NULL_AS_ANY = ts21.factory.createAsExpression(ts21.factory.createNull(), ts21.factory.createKeywordTypeNode(ts21.SyntaxKind.AnyKeyword));
@@ -2909,7 +2990,7 @@ var VeSafeLhsInferenceBugDetector = class {
2909
2990
  };
2910
2991
  VeSafeLhsInferenceBugDetector.SINGLETON = new VeSafeLhsInferenceBugDetector();
2911
2992
 
2912
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
2993
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
2913
2994
  import { ImplicitReceiver as ImplicitReceiver3, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstVariable } from "@angular/compiler";
2914
2995
  var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
2915
2996
  constructor(templateId, boundTarget, oob) {
@@ -2933,7 +3014,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
2933
3014
  }
2934
3015
  };
2935
3016
 
2936
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
3017
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
2937
3018
  var TcbGenericContextBehavior;
2938
3019
  (function(TcbGenericContextBehavior2) {
2939
3020
  TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
@@ -3983,7 +4064,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
3983
4064
  }
3984
4065
  };
3985
4066
 
3986
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
4067
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
3987
4068
  import ts23 from "typescript";
3988
4069
  var TypeCheckFile = class extends Environment {
3989
4070
  constructor(fileName, config, refEmitter, reflector, compilerHost) {
@@ -4019,7 +4100,7 @@ var TypeCheckFile = class extends Environment {
4019
4100
  }
4020
4101
  };
4021
4102
 
4022
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
4103
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
4023
4104
  var InliningMode;
4024
4105
  (function(InliningMode2) {
4025
4106
  InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
@@ -4249,10 +4330,10 @@ function splitStringAtPoints(str, points) {
4249
4330
  return splits;
4250
4331
  }
4251
4332
 
4252
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
4333
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
4253
4334
  import { ParseLocation, ParseSourceSpan } from "@angular/compiler";
4254
4335
 
4255
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
4336
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
4256
4337
  var LF_CHAR = 10;
4257
4338
  var CR_CHAR = 13;
4258
4339
  var LINE_SEP_CHAR = 8232;
@@ -4293,7 +4374,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
4293
4374
  return low - 1;
4294
4375
  }
4295
4376
 
4296
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
4377
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
4297
4378
  var TemplateSource = class {
4298
4379
  constructor(mapping, file) {
4299
4380
  this.mapping = mapping;
@@ -4344,7 +4425,7 @@ var TemplateSourceManager = class {
4344
4425
  }
4345
4426
  };
4346
4427
 
4347
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
4428
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
4348
4429
  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";
4349
4430
  import ts25 from "typescript";
4350
4431
  var SymbolBuilder = class {
@@ -4459,7 +4540,7 @@ var SymbolBuilder = class {
4459
4540
  }
4460
4541
  getDirectiveModule(declaration) {
4461
4542
  const scope = this.componentScopeReader.getScopeForComponent(declaration);
4462
- if (scope === null) {
4543
+ if (scope === null || scope.kind !== ComponentScopeKind.NgModule) {
4463
4544
  return null;
4464
4545
  }
4465
4546
  return scope.ngModule;
@@ -4784,7 +4865,7 @@ function sourceSpanEqual(a, b) {
4784
4865
  return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
4785
4866
  }
4786
4867
 
4787
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
4868
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
4788
4869
  var REGISTRY2 = new DomElementSchemaRegistry2();
4789
4870
  var TemplateTypeCheckerImpl = class {
4790
4871
  constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, componentScopeReader, typeCheckScopeRegistry, perf) {
@@ -5191,42 +5272,44 @@ var TemplateTypeCheckerImpl = class {
5191
5272
  if (scope === null) {
5192
5273
  return null;
5193
5274
  }
5275
+ const dependencies = scope.kind === ComponentScopeKind.NgModule ? scope.compilation.dependencies : scope.dependencies;
5194
5276
  const data = {
5195
5277
  directives: [],
5196
5278
  pipes: [],
5197
- isPoisoned: scope.compilation.isPoisoned
5279
+ isPoisoned: scope.kind === ComponentScopeKind.NgModule ? scope.compilation.isPoisoned : scope.isPoisoned
5198
5280
  };
5199
5281
  const typeChecker = this.programDriver.getProgram().getTypeChecker();
5200
- for (const dir of scope.compilation.directives) {
5201
- if (dir.selector === null) {
5202
- continue;
5203
- }
5204
- const tsSymbol = typeChecker.getSymbolAtLocation(dir.ref.node.name);
5205
- if (!isSymbolWithValueDeclaration(tsSymbol)) {
5206
- continue;
5207
- }
5208
- let ngModule = null;
5209
- const moduleScopeOfDir = this.componentScopeReader.getScopeForComponent(dir.ref.node);
5210
- if (moduleScopeOfDir !== null) {
5211
- ngModule = moduleScopeOfDir.ngModule;
5212
- }
5213
- data.directives.push({
5214
- isComponent: dir.isComponent,
5215
- isStructural: dir.isStructural,
5216
- selector: dir.selector,
5217
- tsSymbol,
5218
- ngModule
5219
- });
5220
- }
5221
- for (const pipe of scope.compilation.pipes) {
5222
- const tsSymbol = typeChecker.getSymbolAtLocation(pipe.ref.node.name);
5223
- if (tsSymbol === void 0) {
5224
- continue;
5282
+ for (const dep of dependencies) {
5283
+ if (dep.kind === MetaKind.Directive) {
5284
+ if (dep.selector === null) {
5285
+ continue;
5286
+ }
5287
+ const tsSymbol = typeChecker.getSymbolAtLocation(dep.ref.node.name);
5288
+ if (!isSymbolWithValueDeclaration(tsSymbol)) {
5289
+ continue;
5290
+ }
5291
+ let ngModule = null;
5292
+ const moduleScopeOfDir = this.componentScopeReader.getScopeForComponent(dep.ref.node);
5293
+ if (moduleScopeOfDir !== null && moduleScopeOfDir.kind === ComponentScopeKind.NgModule) {
5294
+ ngModule = moduleScopeOfDir.ngModule;
5295
+ }
5296
+ data.directives.push({
5297
+ isComponent: dep.isComponent,
5298
+ isStructural: dep.isStructural,
5299
+ selector: dep.selector,
5300
+ tsSymbol,
5301
+ ngModule
5302
+ });
5303
+ } else if (dep.kind === MetaKind.Pipe) {
5304
+ const tsSymbol = typeChecker.getSymbolAtLocation(dep.ref.node.name);
5305
+ if (tsSymbol === void 0) {
5306
+ continue;
5307
+ }
5308
+ data.pipes.push({
5309
+ name: dep.name,
5310
+ tsSymbol
5311
+ });
5225
5312
  }
5226
- data.pipes.push({
5227
- name: pipe.name,
5228
- tsSymbol
5229
- });
5230
5313
  }
5231
5314
  this.scopeCache.set(component, data);
5232
5315
  return data;
@@ -5318,10 +5401,10 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
5318
5401
  }
5319
5402
  };
5320
5403
 
5321
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
5404
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
5322
5405
  import { TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
5323
5406
 
5324
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
5407
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
5325
5408
  import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor3 } from "@angular/compiler";
5326
5409
  var TemplateCheckWithVisitor = class {
5327
5410
  run(ctx, component, template) {
@@ -5398,7 +5481,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor3 {
5398
5481
  }
5399
5482
  };
5400
5483
 
5401
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
5484
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
5402
5485
  var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
5403
5486
  constructor() {
5404
5487
  super(...arguments);
@@ -5423,7 +5506,7 @@ var factory = {
5423
5506
  create: () => new InvalidBananaInBoxCheck()
5424
5507
  };
5425
5508
 
5426
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
5509
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
5427
5510
  import { Binary } from "@angular/compiler";
5428
5511
  import ts26 from "typescript";
5429
5512
  var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
@@ -5468,10 +5551,10 @@ var factory2 = {
5468
5551
  }
5469
5552
  };
5470
5553
 
5471
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
5554
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
5472
5555
  import ts27 from "typescript";
5473
5556
 
5474
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
5557
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
5475
5558
  var DiagnosticCategoryLabel;
5476
5559
  (function(DiagnosticCategoryLabel2) {
5477
5560
  DiagnosticCategoryLabel2["Warning"] = "warning";
@@ -5479,7 +5562,7 @@ var DiagnosticCategoryLabel;
5479
5562
  DiagnosticCategoryLabel2["Suppress"] = "suppress";
5480
5563
  })(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
5481
5564
 
5482
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
5565
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
5483
5566
  var ExtendedTemplateCheckerImpl = class {
5484
5567
  constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
5485
5568
  var _a, _b, _c, _d, _e;
@@ -5531,13 +5614,13 @@ function assertNever(value) {
5531
5614
  ${value}`);
5532
5615
  }
5533
5616
 
5534
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
5617
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
5535
5618
  var ALL_DIAGNOSTIC_FACTORIES = [
5536
5619
  factory,
5537
5620
  factory2
5538
5621
  ];
5539
5622
 
5540
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
5623
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
5541
5624
  var CompilationTicketKind;
5542
5625
  (function(CompilationTicketKind2) {
5543
5626
  CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
@@ -6022,10 +6105,11 @@ var NgCompiler = class {
6022
6105
  const localMetaReader = localMetaRegistry;
6023
6106
  const depScopeReader = new MetadataDtsModuleScopeResolver(dtsReader, aliasingHost);
6024
6107
  const metaReader = new CompoundMetadataReader([localMetaReader, dtsReader]);
6025
- const scopeRegistry = new LocalModuleScopeRegistry(localMetaReader, metaReader, depScopeReader, refEmitter, aliasingHost);
6026
- const scopeReader = scopeRegistry;
6108
+ const ngModuleScopeRegistry = new LocalModuleScopeRegistry(localMetaReader, metaReader, depScopeReader, refEmitter, aliasingHost);
6109
+ const standaloneScopeReader = new StandaloneComponentScopeReader(metaReader, ngModuleScopeRegistry, depScopeReader);
6110
+ const scopeReader = new CompoundComponentScopeReader([ngModuleScopeRegistry, standaloneScopeReader]);
6027
6111
  const semanticDepGraphUpdater = this.incrementalCompilation.semanticDepGraphUpdater;
6028
- const metaRegistry = new CompoundMetadataRegistry([localMetaRegistry, scopeRegistry]);
6112
+ const metaRegistry = new CompoundMetadataRegistry([localMetaRegistry, ngModuleScopeRegistry]);
6029
6113
  const injectableRegistry = new InjectableClassRegistry(reflector);
6030
6114
  const typeCheckScopeRegistry = new TypeCheckScopeRegistry(scopeReader, metaReader);
6031
6115
  let referencesRegistry;
@@ -6042,24 +6126,24 @@ var NgCompiler = class {
6042
6126
  const compilationMode = this.options.compilationMode === "partial" && !isCore ? CompilationMode.PARTIAL : CompilationMode.FULL;
6043
6127
  const cycleHandlingStrategy = compilationMode === CompilationMode.FULL ? 0 : 1;
6044
6128
  const handlers = [
6045
- new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, depScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, this.resourceManager, this.adapter.rootDirs, this.options.preserveWhitespaces || false, this.options.i18nUseExternalIds !== false, this.options.enableI18nLegacyMessageIdFormat !== false, this.usePoisonedData, this.options.i18nNormalizeLineEndingsInICUs === true, this.moduleResolver, this.cycleAnalyzer, cycleHandlingStrategy, refEmitter, this.incrementalCompilation.depGraph, injectableRegistry, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder),
6046
- new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, scopeRegistry, metaReader, injectableRegistry, isCore, semanticDepGraphUpdater, this.closureCompilerEnabled, false, this.delegatingPerfRecorder),
6047
- new PipeDecoratorHandler(reflector, evaluator, metaRegistry, scopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder),
6129
+ new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, depScopeReader, ngModuleScopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, this.resourceManager, this.adapter.rootDirs, this.options.preserveWhitespaces || false, this.options.i18nUseExternalIds !== false, this.options.enableI18nLegacyMessageIdFormat !== false, this.usePoisonedData, this.options.i18nNormalizeLineEndingsInICUs === true, this.moduleResolver, this.cycleAnalyzer, cycleHandlingStrategy, refEmitter, this.incrementalCompilation.depGraph, injectableRegistry, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder),
6130
+ new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, isCore, semanticDepGraphUpdater, this.closureCompilerEnabled, false, this.delegatingPerfRecorder),
6131
+ new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder),
6048
6132
  new InjectableDecoratorHandler(reflector, isCore, this.options.strictInjectionParameters || false, injectableRegistry, this.delegatingPerfRecorder),
6049
- new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, scopeRegistry, referencesRegistry, isCore, refEmitter, this.adapter.factoryTracker, this.closureCompilerEnabled, injectableRegistry, this.delegatingPerfRecorder)
6133
+ new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, isCore, refEmitter, this.adapter.factoryTracker, this.closureCompilerEnabled, injectableRegistry, this.delegatingPerfRecorder)
6050
6134
  ];
6051
6135
  const traitCompiler = new TraitCompiler(handlers, reflector, this.delegatingPerfRecorder, this.incrementalCompilation, this.options.compileNonExportedClasses !== false, compilationMode, dtsTransforms, semanticDepGraphUpdater);
6052
6136
  const notifyingDriver = new NotifyingProgramDriverWrapper(this.programDriver, (program) => {
6053
6137
  this.incrementalStrategy.setIncrementalState(this.incrementalCompilation.state, program);
6054
6138
  this.currentProgram = program;
6055
6139
  });
6056
- const templateTypeChecker = new TemplateTypeCheckerImpl(this.inputProgram, notifyingDriver, traitCompiler, this.getTypeCheckingConfig(), refEmitter, reflector, this.adapter, this.incrementalCompilation, scopeRegistry, typeCheckScopeRegistry, this.delegatingPerfRecorder);
6140
+ const templateTypeChecker = new TemplateTypeCheckerImpl(this.inputProgram, notifyingDriver, traitCompiler, this.getTypeCheckingConfig(), refEmitter, reflector, this.adapter, this.incrementalCompilation, scopeReader, typeCheckScopeRegistry, this.delegatingPerfRecorder);
6057
6141
  const extendedTemplateChecker = this.constructionDiagnostics.length === 0 ? new ExtendedTemplateCheckerImpl(templateTypeChecker, checker, ALL_DIAGNOSTIC_FACTORIES, this.options) : null;
6058
6142
  return {
6059
6143
  isCore,
6060
6144
  traitCompiler,
6061
6145
  reflector,
6062
- scopeRegistry,
6146
+ scopeRegistry: ngModuleScopeRegistry,
6063
6147
  dtsTransforms,
6064
6148
  exportReferenceGraph,
6065
6149
  metaReader,
@@ -6232,7 +6316,7 @@ function versionMapFromProgram(program, driver) {
6232
6316
  return versions;
6233
6317
  }
6234
6318
 
6235
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
6319
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
6236
6320
  import ts29 from "typescript";
6237
6321
  var DelegatingCompilerHost2 = class {
6238
6322
  constructor(delegate) {
@@ -6373,7 +6457,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
6373
6457
  }
6374
6458
  };
6375
6459
 
6376
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
6460
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
6377
6461
  var NgtscProgram = class {
6378
6462
  constructor(rootNames, options, delegateHost, oldProgram) {
6379
6463
  this.options = options;
@@ -6580,15 +6664,15 @@ function mergeEmitResults(emitResults) {
6580
6664
  return { diagnostics, emitSkipped, emittedFiles };
6581
6665
  }
6582
6666
 
6583
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
6667
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
6584
6668
  function createProgram({ rootNames, options, host, oldProgram }) {
6585
6669
  return new NgtscProgram(rootNames, options, host, oldProgram);
6586
6670
  }
6587
6671
 
6588
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
6672
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
6589
6673
  import ts32 from "typescript";
6590
6674
 
6591
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
6675
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
6592
6676
  import ts31 from "typescript";
6593
6677
  var GENERATED_FILES = /(.*?)\.(ngfactory|shim\.ngstyle|ngstyle|ngsummary)\.(js|d\.ts|ts)$/;
6594
6678
  function createMessageDiagnostic(messageText) {
@@ -6603,7 +6687,7 @@ function createMessageDiagnostic(messageText) {
6603
6687
  };
6604
6688
  }
6605
6689
 
6606
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
6690
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
6607
6691
  var defaultFormatHost = {
6608
6692
  getCurrentDirectory: () => ts32.sys.getCurrentDirectory(),
6609
6693
  getCanonicalFileName: (fileName) => fileName,
@@ -6813,4 +6897,4 @@ export {
6813
6897
  * Use of this source code is governed by an MIT-style license that can be
6814
6898
  * found in the LICENSE file at https://angular.io/license
6815
6899
  */
6816
- //# sourceMappingURL=chunk-MGNOHKS6.js.map
6900
+ //# sourceMappingURL=chunk-RJMU2IDU.js.map