@angular/compiler-cli 14.0.3 → 14.1.0-next.2
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.
- package/bundles/{chunk-N5CM3LUE.js → chunk-32MQTE7C.js} +16 -4
- package/bundles/{chunk-N5CM3LUE.js.map → chunk-32MQTE7C.js.map} +1 -1
- package/bundles/{chunk-EBIPNBQL.js → chunk-5OLIDMUF.js} +2 -2
- package/bundles/{chunk-EBIPNBQL.js.map → chunk-5OLIDMUF.js.map} +0 -0
- package/bundles/{chunk-XDCGNQL5.js → chunk-DSIJ6FBS.js} +50 -9
- package/bundles/{chunk-XDCGNQL5.js.map → chunk-DSIJ6FBS.js.map} +2 -2
- package/bundles/{chunk-JDKMNZ6O.js → chunk-KGCKQ2PH.js} +3 -1
- package/bundles/chunk-KGCKQ2PH.js.map +6 -0
- package/bundles/{chunk-DIXBUYVP.js → chunk-QGR2YCRK.js} +5 -5
- package/bundles/{chunk-DIXBUYVP.js.map → chunk-QGR2YCRK.js.map} +1 -1
- package/bundles/{chunk-7XY4OMWJ.js → chunk-SO3HP2WO.js} +6 -4
- package/bundles/{chunk-7XY4OMWJ.js.map → chunk-SO3HP2WO.js.map} +1 -1
- package/bundles/{chunk-Z7J7RXFF.js → chunk-U2GR6UX6.js} +3 -3
- package/bundles/{chunk-Z7J7RXFF.js.map → chunk-U2GR6UX6.js.map} +0 -0
- package/bundles/index.js +4 -4
- package/bundles/linker/babel/index.js +2 -2
- package/bundles/linker/index.js +2 -2
- package/bundles/ngcc/index.js +5 -5
- package/bundles/ngcc/main-ngcc.js +5 -5
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +4 -4
- package/bundles/private/migrations.js +2 -2
- package/bundles/src/bin/ng_xi18n.js +4 -4
- package/bundles/src/bin/ngc.js +4 -4
- package/bundles_metadata.json +1 -1
- package/ngcc/src/packages/build_marker.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/annotations/ng_module/src/handler.d.ts +2 -1
- package/src/ngtsc/core/api/src/public_options.d.ts +10 -0
- package/src/ngtsc/diagnostics/src/error_code.d.ts +5 -0
- package/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.d.ts +2 -1
- package/src/ngtsc/typecheck/api/api.d.ts +1 -0
- package/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.d.ts +11 -0
- package/bundles/chunk-JDKMNZ6O.js.map +0 -6
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
translateExpression,
|
|
34
34
|
translateStatement,
|
|
35
35
|
translateType
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-KGCKQ2PH.js";
|
|
37
37
|
import {
|
|
38
38
|
absoluteFrom,
|
|
39
39
|
absoluteFromSourceFile,
|
|
@@ -4694,7 +4694,7 @@ var NgModuleSymbol = class extends SemanticSymbol {
|
|
|
4694
4694
|
}
|
|
4695
4695
|
};
|
|
4696
4696
|
var NgModuleDecoratorHandler = class {
|
|
4697
|
-
constructor(reflector, evaluator, metaReader, metaRegistry, scopeRegistry, referencesRegistry, isCore, refEmitter, factoryTracker, annotateForClosureCompiler, injectableRegistry, perf) {
|
|
4697
|
+
constructor(reflector, evaluator, metaReader, metaRegistry, scopeRegistry, referencesRegistry, isCore, refEmitter, factoryTracker, annotateForClosureCompiler, onlyPublishPublicTypings, injectableRegistry, perf) {
|
|
4698
4698
|
this.reflector = reflector;
|
|
4699
4699
|
this.evaluator = evaluator;
|
|
4700
4700
|
this.metaReader = metaReader;
|
|
@@ -4705,6 +4705,7 @@ var NgModuleDecoratorHandler = class {
|
|
|
4705
4705
|
this.refEmitter = refEmitter;
|
|
4706
4706
|
this.factoryTracker = factoryTracker;
|
|
4707
4707
|
this.annotateForClosureCompiler = annotateForClosureCompiler;
|
|
4708
|
+
this.onlyPublishPublicTypings = onlyPublishPublicTypings;
|
|
4708
4709
|
this.injectableRegistry = injectableRegistry;
|
|
4709
4710
|
this.perf = perf;
|
|
4710
4711
|
this.precedence = HandlerPrecedence.PRIMARY;
|
|
@@ -4805,8 +4806,17 @@ var NgModuleDecoratorHandler = class {
|
|
|
4805
4806
|
if (typeNode !== null) {
|
|
4806
4807
|
typeContext = typeNode.getSourceFile();
|
|
4807
4808
|
}
|
|
4809
|
+
const exportedNodes = new Set(exportRefs.map((ref) => ref.node));
|
|
4810
|
+
const declarations = [];
|
|
4811
|
+
const exportedDeclarations = [];
|
|
4808
4812
|
const bootstrap = bootstrapRefs.map((bootstrap2) => this._toR3Reference(bootstrap2.getOriginForDiagnostics(meta, node.name), bootstrap2, valueContext, typeContext));
|
|
4809
|
-
const
|
|
4813
|
+
for (const ref of declarationRefs) {
|
|
4814
|
+
const decl = this._toR3Reference(ref.getOriginForDiagnostics(meta, node.name), ref, valueContext, typeContext);
|
|
4815
|
+
declarations.push(decl);
|
|
4816
|
+
if (exportedNodes.has(ref.node)) {
|
|
4817
|
+
exportedDeclarations.push(decl.type);
|
|
4818
|
+
}
|
|
4819
|
+
}
|
|
4810
4820
|
const imports = importRefs.map((imp) => this._toR3Reference(imp.getOriginForDiagnostics(meta, node.name), imp, valueContext, typeContext));
|
|
4811
4821
|
const exports = exportRefs.map((exp) => this._toR3Reference(exp.getOriginForDiagnostics(meta, node.name), exp, valueContext, typeContext));
|
|
4812
4822
|
const isForwardReference = (ref) => isExpressionForwardReference(ref.value, node.name, valueContext);
|
|
@@ -4820,8 +4830,10 @@ var NgModuleDecoratorHandler = class {
|
|
|
4820
4830
|
adjacentType,
|
|
4821
4831
|
bootstrap,
|
|
4822
4832
|
declarations,
|
|
4833
|
+
publicDeclarationTypes: this.onlyPublishPublicTypings ? exportedDeclarations : null,
|
|
4823
4834
|
exports,
|
|
4824
4835
|
imports,
|
|
4836
|
+
includeImportTypes: !this.onlyPublishPublicTypings,
|
|
4825
4837
|
containsForwardDecls,
|
|
4826
4838
|
id,
|
|
4827
4839
|
selectorScopeMode: R3SelectorScopeMode.SideEffect,
|
|
@@ -6581,4 +6593,4 @@ export {
|
|
|
6581
6593
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6582
6594
|
* found in the LICENSE file at https://angular.io/license
|
|
6583
6595
|
*/
|
|
6584
|
-
//# sourceMappingURL=chunk-
|
|
6596
|
+
//# sourceMappingURL=chunk-32MQTE7C.js.map
|