@angular/compiler-cli 14.0.0-next.13 → 14.0.0-next.16

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 (53) hide show
  1. package/bundles/{chunk-FDAHGRSF.js → chunk-36EOQKNZ.js} +3 -3
  2. package/bundles/{chunk-FDAHGRSF.js.map → chunk-36EOQKNZ.js.map} +0 -0
  3. package/bundles/{chunk-DNXEJI2I.js → chunk-4TK5AAQK.js} +2 -2
  4. package/bundles/{chunk-DNXEJI2I.js.map → chunk-4TK5AAQK.js.map} +0 -0
  5. package/bundles/{chunk-ESNS3BVQ.js → chunk-6E6DHHHX.js} +140 -52
  6. package/bundles/chunk-6E6DHHHX.js.map +6 -0
  7. package/bundles/{chunk-FJDIFR5C.js → chunk-7XY4OMWJ.js} +70 -34
  8. package/bundles/chunk-7XY4OMWJ.js.map +6 -0
  9. package/bundles/{chunk-RYXFJXXN.js → chunk-HZUCTYDG.js} +3216 -3053
  10. package/bundles/chunk-HZUCTYDG.js.map +6 -0
  11. package/bundles/{chunk-UMDDHI5B.js → chunk-JDKMNZ6O.js} +2 -1
  12. package/bundles/chunk-JDKMNZ6O.js.map +6 -0
  13. package/bundles/{chunk-LQLIHXU2.js → chunk-OGPZOZRU.js} +4 -4
  14. package/bundles/{chunk-LQLIHXU2.js.map → chunk-OGPZOZRU.js.map} +0 -0
  15. package/bundles/index.js +4 -4
  16. package/bundles/linker/babel/index.js +2 -2
  17. package/bundles/linker/index.js +2 -2
  18. package/bundles/ngcc/index.js +5 -5
  19. package/bundles/ngcc/main-ngcc.js +5 -5
  20. package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +4 -4
  21. package/bundles/private/migrations.js +2 -2
  22. package/bundles/src/bin/ng_xi18n.js +4 -4
  23. package/bundles/src/bin/ngc.js +4 -4
  24. package/bundles_metadata.json +1 -1
  25. package/ngcc/src/packages/build_marker.d.ts +1 -1
  26. package/package.json +3 -3
  27. package/src/ngtsc/annotations/common/index.d.ts +1 -0
  28. package/src/ngtsc/annotations/common/src/schema.d.ts +12 -0
  29. package/src/ngtsc/annotations/common/src/util.d.ts +1 -1
  30. package/src/ngtsc/annotations/component/src/metadata.d.ts +7 -8
  31. package/src/ngtsc/annotations/component/src/resources.d.ts +1 -1
  32. package/src/ngtsc/annotations/ng_module/src/handler.d.ts +8 -7
  33. package/src/ngtsc/core/src/host.d.ts +2 -2
  34. package/src/ngtsc/diagnostics/src/error_code.d.ts +4 -0
  35. package/src/ngtsc/metadata/src/api.d.ts +18 -5
  36. package/src/ngtsc/metadata/src/util.d.ts +1 -0
  37. package/src/ngtsc/partial_evaluator/index.d.ts +1 -0
  38. package/src/ngtsc/partial_evaluator/src/dynamic.d.ts +9 -1
  39. package/src/ngtsc/partial_evaluator/src/interface.d.ts +2 -1
  40. package/src/ngtsc/partial_evaluator/src/result.d.ts +2 -1
  41. package/src/ngtsc/partial_evaluator/src/synthetic.d.ts +19 -0
  42. package/src/ngtsc/program_driver/src/ts_create_program_driver.d.ts +2 -2
  43. package/src/ngtsc/scope/index.d.ts +2 -2
  44. package/src/ngtsc/scope/src/api.d.ts +16 -10
  45. package/src/ngtsc/scope/src/component_scope.d.ts +2 -2
  46. package/src/ngtsc/scope/src/standalone.d.ts +26 -0
  47. package/src/ngtsc/scope/src/util.d.ts +1 -0
  48. package/src/ngtsc/typecheck/src/ts_util.d.ts +7 -0
  49. package/bundles/chunk-ESNS3BVQ.js.map +0 -6
  50. package/bundles/chunk-FJDIFR5C.js.map +0 -6
  51. package/bundles/chunk-RYXFJXXN.js.map +0 -6
  52. package/bundles/chunk-UMDDHI5B.js.map +0 -6
  53. package/src/ngtsc/annotations/component/src/scope.d.ts +0 -20
@@ -36,7 +36,7 @@ import {
36
36
  sendMessageToWorker,
37
37
  sortTasksByPriority,
38
38
  stringifyTask
39
- } from "./chunk-LQLIHXU2.js";
39
+ } from "./chunk-OGPZOZRU.js";
40
40
  import {
41
41
  LogLevel
42
42
  } from "./chunk-LX5Q27EF.js";
@@ -887,7 +887,7 @@ var ProgramBasedEntryPointFinder = class extends TracingEntryPointFinder {
887
887
  };
888
888
 
889
889
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/build_marker.mjs
890
- var NGCC_VERSION = "14.0.0-next.13";
890
+ var NGCC_VERSION = "14.0.0-next.16";
891
891
  function needsCleaning(packageJson) {
892
892
  return Object.values(packageJson.__processed_by_ivy_ngcc__ || {}).some((value) => value !== NGCC_VERSION);
893
893
  }
@@ -2172,4 +2172,4 @@ export {
2172
2172
  * Use of this source code is governed by an MIT-style license that can be
2173
2173
  * found in the LICENSE file at https://angular.io/license
2174
2174
  */
2175
- //# sourceMappingURL=chunk-FDAHGRSF.js.map
2175
+ //# sourceMappingURL=chunk-36EOQKNZ.js.map
@@ -14,7 +14,7 @@ import {
14
14
  formatDiagnostics,
15
15
  performCompilation,
16
16
  readConfiguration
17
- } from "./chunk-ESNS3BVQ.js";
17
+ } from "./chunk-6E6DHHHX.js";
18
18
  import {
19
19
  __spreadProps,
20
20
  __spreadValues
@@ -379,4 +379,4 @@ export {
379
379
  * Use of this source code is governed by an MIT-style license that can be
380
380
  * found in the LICENSE file at https://angular.io/license
381
381
  */
382
- //# sourceMappingURL=chunk-DNXEJI2I.js.map
382
+ //# sourceMappingURL=chunk-4TK5AAQK.js.map
@@ -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,7 +39,7 @@ import {
36
39
  ivyTransformFactory,
37
40
  retagAllTsFiles,
38
41
  untagAllTsFiles
39
- } from "./chunk-RYXFJXXN.js";
42
+ } from "./chunk-HZUCTYDG.js";
40
43
  import {
41
44
  TypeScriptReflectionHost,
42
45
  isNamedClassDeclaration
@@ -79,7 +82,7 @@ import {
79
82
  toUnredirectedSourceFile,
80
83
  translateExpression,
81
84
  translateType
82
- } from "./chunk-UMDDHI5B.js";
85
+ } from "./chunk-JDKMNZ6O.js";
83
86
  import {
84
87
  LogicalFileSystem,
85
88
  absoluteFrom,
@@ -255,7 +258,7 @@ function compareVersions(v1, v2) {
255
258
 
256
259
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
257
260
  var MIN_TS_VERSION = "4.6.2";
258
- var MAX_TS_VERSION = "4.7.0";
261
+ var MAX_TS_VERSION = "4.8.0";
259
262
  var tsVersion = ts2.version;
260
263
  function checkVersion(version, minVersion, maxVersion) {
261
264
  if (compareVersions(version, minVersion) < 0 || compareVersions(version, maxVersion) >= 0) {
@@ -1488,6 +1491,84 @@ function createLookupResolutionHost(adapter) {
1488
1491
  };
1489
1492
  }
1490
1493
 
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
+
1491
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
 
@@ -1921,6 +2002,7 @@ import ts17 from "typescript";
1921
2002
 
1922
2003
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
1923
2004
  import ts12 from "typescript";
2005
+ var PARSED_TS_VERSION = parseFloat(ts12.versionMajorMinor);
1924
2006
  var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
1925
2007
  ts12.SyntaxKind.ParenthesizedExpression,
1926
2008
  ts12.SyntaxKind.Identifier,
@@ -1962,6 +2044,9 @@ function tsCallMethod(receiver, methodName, args = []) {
1962
2044
  const methodAccess = ts12.factory.createPropertyAccessExpression(receiver, methodName);
1963
2045
  return ts12.factory.createCallExpression(methodAccess, void 0, args);
1964
2046
  }
2047
+ function tsUpdateTypeParameterDeclaration(node, name, constraint, defaultType) {
2048
+ return PARSED_TS_VERSION < 4.7 ? ts12.factory.updateTypeParameterDeclaration(node, name, constraint, defaultType) : ts12.factory.updateTypeParameterDeclaration(node, [], name, constraint, defaultType);
2049
+ }
1965
2050
  function checkIfClassIsExported(node) {
1966
2051
  if (node.modifiers !== void 0 && node.modifiers.some((mod) => mod.kind === ts12.SyntaxKind.ExportKeyword)) {
1967
2052
  return true;
@@ -2096,7 +2181,7 @@ var TypeParameterEmitter = class {
2096
2181
  return this.typeParameters.map((typeParam) => {
2097
2182
  const constraint = typeParam.constraint !== void 0 ? emitter.emitType(typeParam.constraint) : void 0;
2098
2183
  const defaultType = typeParam.default !== void 0 ? emitter.emitType(typeParam.default) : void 0;
2099
- return ts14.factory.updateTypeParameterDeclaration(typeParam, typeParam.name, constraint, defaultType);
2184
+ return tsUpdateTypeParameterDeclaration(typeParam, typeParam.name, constraint, defaultType);
2100
2185
  });
2101
2186
  }
2102
2187
  resolveTypeReference(type) {
@@ -2280,7 +2365,7 @@ function typeParametersWithDefaultTypes(params) {
2280
2365
  }
2281
2366
  return params.map((param) => {
2282
2367
  if (param.default === void 0) {
2283
- return ts16.factory.updateTypeParameterDeclaration(param, param.name, param.constraint, ts16.factory.createKeywordTypeNode(ts16.SyntaxKind.AnyKeyword));
2368
+ return tsUpdateTypeParameterDeclaration(param, param.name, param.constraint, ts16.factory.createKeywordTypeNode(ts16.SyntaxKind.AnyKeyword));
2284
2369
  } else {
2285
2370
  return param;
2286
2371
  }
@@ -2967,7 +3052,7 @@ function generateTypeCheckBlock(env, ref, name, meta, domSchemaChecker, oobRecor
2967
3052
  break;
2968
3053
  }
2969
3054
  }
2970
- const paramList = [tcbCtxParam(ref.node, ctxRawType.typeName, typeArguments)];
3055
+ const paramList = [tcbThisParam(ref.node, ctxRawType.typeName, typeArguments)];
2971
3056
  const scopeStatements = scope.render();
2972
3057
  const innerBody = ts22.factory.createBlock([
2973
3058
  ...env.getPreludeStatements(),
@@ -3512,7 +3597,7 @@ var TcbComponentContextCompletionOp = class extends TcbOp {
3512
3597
  this.optional = false;
3513
3598
  }
3514
3599
  execute() {
3515
- const ctx = ts22.factory.createIdentifier("ctx");
3600
+ const ctx = ts22.factory.createThis();
3516
3601
  const ctxDot = ts22.factory.createPropertyAccessExpression(ctx, "");
3517
3602
  markIgnoreDiagnostics(ctxDot);
3518
3603
  addExpressionIdentifier(ctxDot, ExpressionIdentifier.COMPONENT_COMPLETION);
@@ -3793,9 +3878,9 @@ var Scope = class {
3793
3878
  }
3794
3879
  }
3795
3880
  };
3796
- function tcbCtxParam(node, name, typeArguments) {
3881
+ function tcbThisParam(node, name, typeArguments) {
3797
3882
  const type = ts22.factory.createTypeReferenceNode(name, typeArguments);
3798
- return ts22.factory.createParameterDeclaration(void 0, void 0, void 0, "ctx", void 0, type, void 0);
3883
+ return ts22.factory.createParameterDeclaration(void 0, void 0, void 0, "this", void 0, type, void 0);
3799
3884
  }
3800
3885
  function tcbExpression(ast, tcb, scope) {
3801
3886
  const translator = new TcbExpressionTranslator(tcb, scope);
@@ -3822,7 +3907,7 @@ var TcbExpressionTranslator = class {
3822
3907
  addParseSpanInfo(result, ast.sourceSpan);
3823
3908
  return result;
3824
3909
  } else if (ast instanceof ImplicitReceiver4) {
3825
- return ts22.factory.createIdentifier("ctx");
3910
+ return ts22.factory.createThis();
3826
3911
  } else if (ast instanceof BindingPipe) {
3827
3912
  const expr = this.translate(ast.exp);
3828
3913
  const pipeRef = this.tcb.getPipeByName(ast.name);
@@ -3947,7 +4032,7 @@ function tcbCreateEventHandler(event, tcb, scope, eventType) {
3947
4032
  }
3948
4033
  const eventParam = ts22.factory.createParameterDeclaration(void 0, void 0, void 0, EVENT_PARAMETER, void 0, eventParamType);
3949
4034
  addExpressionIdentifier(eventParam, ExpressionIdentifier.EVENT_PARAMETER);
3950
- return ts22.factory.createFunctionExpression(void 0, void 0, void 0, void 0, [eventParam], ts22.factory.createKeywordTypeNode(ts22.SyntaxKind.AnyKeyword), ts22.factory.createBlock([body]));
4035
+ return ts22.factory.createArrowFunction(void 0, void 0, [eventParam], ts22.factory.createKeywordTypeNode(ts22.SyntaxKind.AnyKeyword), void 0, ts22.factory.createBlock([body]));
3951
4036
  }
3952
4037
  function tcbEventHandlerExpression(ast, tcb, scope) {
3953
4038
  const translator = new TcbEventHandlerTranslator(tcb, scope);
@@ -4459,7 +4544,7 @@ var SymbolBuilder = class {
4459
4544
  }
4460
4545
  getDirectiveModule(declaration) {
4461
4546
  const scope = this.componentScopeReader.getScopeForComponent(declaration);
4462
- if (scope === null) {
4547
+ if (scope === null || scope.kind !== ComponentScopeKind.NgModule) {
4463
4548
  return null;
4464
4549
  }
4465
4550
  return scope.ngModule;
@@ -5191,42 +5276,44 @@ var TemplateTypeCheckerImpl = class {
5191
5276
  if (scope === null) {
5192
5277
  return null;
5193
5278
  }
5279
+ const dependencies = scope.kind === ComponentScopeKind.NgModule ? scope.compilation.dependencies : scope.dependencies;
5194
5280
  const data = {
5195
5281
  directives: [],
5196
5282
  pipes: [],
5197
- isPoisoned: scope.compilation.isPoisoned
5283
+ isPoisoned: scope.kind === ComponentScopeKind.NgModule ? scope.compilation.isPoisoned : scope.isPoisoned
5198
5284
  };
5199
5285
  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;
5286
+ for (const dep of dependencies) {
5287
+ if (dep.kind === MetaKind.Directive) {
5288
+ if (dep.selector === null) {
5289
+ continue;
5290
+ }
5291
+ const tsSymbol = typeChecker.getSymbolAtLocation(dep.ref.node.name);
5292
+ if (!isSymbolWithValueDeclaration(tsSymbol)) {
5293
+ continue;
5294
+ }
5295
+ let ngModule = null;
5296
+ const moduleScopeOfDir = this.componentScopeReader.getScopeForComponent(dep.ref.node);
5297
+ if (moduleScopeOfDir !== null && moduleScopeOfDir.kind === ComponentScopeKind.NgModule) {
5298
+ ngModule = moduleScopeOfDir.ngModule;
5299
+ }
5300
+ data.directives.push({
5301
+ isComponent: dep.isComponent,
5302
+ isStructural: dep.isStructural,
5303
+ selector: dep.selector,
5304
+ tsSymbol,
5305
+ ngModule
5306
+ });
5307
+ } else if (dep.kind === MetaKind.Pipe) {
5308
+ const tsSymbol = typeChecker.getSymbolAtLocation(dep.ref.node.name);
5309
+ if (tsSymbol === void 0) {
5310
+ continue;
5311
+ }
5312
+ data.pipes.push({
5313
+ name: dep.name,
5314
+ tsSymbol
5315
+ });
5225
5316
  }
5226
- data.pipes.push({
5227
- name: pipe.name,
5228
- tsSymbol
5229
- });
5230
5317
  }
5231
5318
  this.scopeCache.set(component, data);
5232
5319
  return data;
@@ -6022,10 +6109,11 @@ var NgCompiler = class {
6022
6109
  const localMetaReader = localMetaRegistry;
6023
6110
  const depScopeReader = new MetadataDtsModuleScopeResolver(dtsReader, aliasingHost);
6024
6111
  const metaReader = new CompoundMetadataReader([localMetaReader, dtsReader]);
6025
- const scopeRegistry = new LocalModuleScopeRegistry(localMetaReader, metaReader, depScopeReader, refEmitter, aliasingHost);
6026
- const scopeReader = scopeRegistry;
6112
+ const ngModuleScopeRegistry = new LocalModuleScopeRegistry(localMetaReader, metaReader, depScopeReader, refEmitter, aliasingHost);
6113
+ const standaloneScopeReader = new StandaloneComponentScopeReader(metaReader, ngModuleScopeRegistry, depScopeReader);
6114
+ const scopeReader = new CompoundComponentScopeReader([ngModuleScopeRegistry, standaloneScopeReader]);
6027
6115
  const semanticDepGraphUpdater = this.incrementalCompilation.semanticDepGraphUpdater;
6028
- const metaRegistry = new CompoundMetadataRegistry([localMetaRegistry, scopeRegistry]);
6116
+ const metaRegistry = new CompoundMetadataRegistry([localMetaRegistry, ngModuleScopeRegistry]);
6029
6117
  const injectableRegistry = new InjectableClassRegistry(reflector);
6030
6118
  const typeCheckScopeRegistry = new TypeCheckScopeRegistry(scopeReader, metaReader);
6031
6119
  let referencesRegistry;
@@ -6042,24 +6130,24 @@ var NgCompiler = class {
6042
6130
  const compilationMode = this.options.compilationMode === "partial" && !isCore ? CompilationMode.PARTIAL : CompilationMode.FULL;
6043
6131
  const cycleHandlingStrategy = compilationMode === CompilationMode.FULL ? 0 : 1;
6044
6132
  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),
6133
+ 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),
6134
+ new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, isCore, semanticDepGraphUpdater, this.closureCompilerEnabled, false, this.delegatingPerfRecorder),
6135
+ new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder),
6048
6136
  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)
6137
+ new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, isCore, refEmitter, this.adapter.factoryTracker, this.closureCompilerEnabled, injectableRegistry, this.delegatingPerfRecorder)
6050
6138
  ];
6051
6139
  const traitCompiler = new TraitCompiler(handlers, reflector, this.delegatingPerfRecorder, this.incrementalCompilation, this.options.compileNonExportedClasses !== false, compilationMode, dtsTransforms, semanticDepGraphUpdater);
6052
6140
  const notifyingDriver = new NotifyingProgramDriverWrapper(this.programDriver, (program) => {
6053
6141
  this.incrementalStrategy.setIncrementalState(this.incrementalCompilation.state, program);
6054
6142
  this.currentProgram = program;
6055
6143
  });
6056
- const templateTypeChecker = new TemplateTypeCheckerImpl(this.inputProgram, notifyingDriver, traitCompiler, this.getTypeCheckingConfig(), refEmitter, reflector, this.adapter, this.incrementalCompilation, scopeRegistry, typeCheckScopeRegistry, this.delegatingPerfRecorder);
6144
+ const templateTypeChecker = new TemplateTypeCheckerImpl(this.inputProgram, notifyingDriver, traitCompiler, this.getTypeCheckingConfig(), refEmitter, reflector, this.adapter, this.incrementalCompilation, scopeReader, typeCheckScopeRegistry, this.delegatingPerfRecorder);
6057
6145
  const extendedTemplateChecker = this.constructionDiagnostics.length === 0 ? new ExtendedTemplateCheckerImpl(templateTypeChecker, checker, ALL_DIAGNOSTIC_FACTORIES, this.options) : null;
6058
6146
  return {
6059
6147
  isCore,
6060
6148
  traitCompiler,
6061
6149
  reflector,
6062
- scopeRegistry,
6150
+ scopeRegistry: ngModuleScopeRegistry,
6063
6151
  dtsTransforms,
6064
6152
  exportReferenceGraph,
6065
6153
  metaReader,
@@ -6813,4 +6901,4 @@ export {
6813
6901
  * Use of this source code is governed by an MIT-style license that can be
6814
6902
  * found in the LICENSE file at https://angular.io/license
6815
6903
  */
6816
- //# sourceMappingURL=chunk-ESNS3BVQ.js.map
6904
+ //# sourceMappingURL=chunk-6E6DHHHX.js.map