@angular/compiler-cli 14.0.0-next.11 → 14.0.0-next.14
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-LQLIHXU2.js → chunk-3DX2DBWU.js} +70 -70
- package/bundles/{chunk-LQLIHXU2.js.map → chunk-3DX2DBWU.js.map} +0 -0
- package/bundles/{chunk-2IMT6JFI.js → chunk-5K2JLFXT.js} +6 -6
- package/bundles/{chunk-2IMT6JFI.js.map → chunk-5K2JLFXT.js.map} +0 -0
- package/bundles/{chunk-UMDDHI5B.js → chunk-6356XFP6.js} +26 -26
- package/bundles/{chunk-UMDDHI5B.js.map → chunk-6356XFP6.js.map} +0 -0
- package/bundles/{chunk-DNXEJI2I.js → chunk-6VKVKDGL.js} +5 -5
- package/bundles/{chunk-DNXEJI2I.js.map → chunk-6VKVKDGL.js.map} +0 -0
- package/bundles/{chunk-OLGEBPBY.js → chunk-BRHP6XKM.js} +4 -4
- package/bundles/{chunk-OLGEBPBY.js.map → chunk-BRHP6XKM.js.map} +0 -0
- package/bundles/{chunk-ESNS3BVQ.js → chunk-HDIW2RJZ.js} +205 -122
- package/bundles/chunk-HDIW2RJZ.js.map +6 -0
- package/bundles/{chunk-R4NY3TJC.js → chunk-LC26KH5A.js} +5 -5
- package/bundles/{chunk-R4NY3TJC.js.map → chunk-LC26KH5A.js.map} +0 -0
- package/bundles/{chunk-FDAHGRSF.js → chunk-MKGTDQEO.js} +40 -40
- package/bundles/{chunk-FDAHGRSF.js.map → chunk-MKGTDQEO.js.map} +0 -0
- package/bundles/{chunk-FJDIFR5C.js → chunk-O6PNL22F.js} +97 -61
- package/bundles/chunk-O6PNL22F.js.map +6 -0
- package/bundles/{chunk-R3C7RFJ4.js → chunk-SJL5HBUW.js} +2 -2
- package/bundles/{chunk-R3C7RFJ4.js.map → chunk-SJL5HBUW.js.map} +0 -0
- package/bundles/{chunk-T7MYRXIE.js → chunk-TD64C4QJ.js} +7 -7
- package/bundles/{chunk-T7MYRXIE.js.map → chunk-TD64C4QJ.js.map} +0 -0
- package/bundles/{chunk-W6KM7BUM.js → chunk-TV7VZNWL.js} +6 -6
- package/bundles/{chunk-W6KM7BUM.js.map → chunk-TV7VZNWL.js.map} +0 -0
- package/bundles/{chunk-RYXFJXXN.js → chunk-U3GWKPTG.js} +3084 -3052
- package/bundles/chunk-U3GWKPTG.js.map +6 -0
- package/bundles/{chunk-WGBFSDVQ.js → chunk-WH4QSABR.js} +7 -7
- package/bundles/{chunk-WGBFSDVQ.js.map → chunk-WH4QSABR.js.map} +0 -0
- package/bundles/{chunk-LX5Q27EF.js → chunk-ZCDB56AX.js} +3 -3
- package/bundles/{chunk-LX5Q27EF.js.map → chunk-ZCDB56AX.js.map} +0 -0
- package/bundles/index.js +12 -12
- package/bundles/linker/babel/index.js +12 -12
- package/bundles/linker/index.js +4 -4
- package/bundles/ngcc/index.js +12 -12
- package/bundles/ngcc/main-ngcc.js +13 -13
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +13 -13
- package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +4 -4
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +5 -5
- package/bundles/private/tooling.js +2 -2
- package/bundles/src/bin/ng_xi18n.js +10 -10
- package/bundles/src/bin/ngc.js +8 -8
- 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/component/src/metadata.d.ts +6 -8
- package/src/ngtsc/metadata/src/api.d.ts +14 -5
- package/src/ngtsc/metadata/src/util.d.ts +1 -0
- package/src/ngtsc/scope/index.d.ts +2 -2
- package/src/ngtsc/scope/src/api.d.ts +16 -10
- package/src/ngtsc/scope/src/component_scope.d.ts +2 -2
- package/src/ngtsc/scope/src/standalone.d.ts +26 -0
- package/src/ngtsc/scope/src/util.d.ts +1 -0
- package/bundles/chunk-ESNS3BVQ.js.map +0 -6
- package/bundles/chunk-FJDIFR5C.js.map +0 -6
- package/bundles/chunk-RYXFJXXN.js.map +0 -6
- 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-
|
|
42
|
+
} from "./chunk-U3GWKPTG.js";
|
|
40
43
|
import {
|
|
41
44
|
TypeScriptReflectionHost,
|
|
42
45
|
isNamedClassDeclaration
|
|
43
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-5K2JLFXT.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-
|
|
85
|
+
} from "./chunk-6356XFP6.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-
|
|
95
|
+
} from "./chunk-TD64C4QJ.js";
|
|
93
96
|
import {
|
|
94
97
|
ActivePerfRecorder,
|
|
95
98
|
DelegatingPerfRecorder,
|
|
96
99
|
PerfCheckpoint,
|
|
97
100
|
PerfEvent,
|
|
98
101
|
PerfPhase
|
|
99
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-LC26KH5A.js";
|
|
100
103
|
import {
|
|
101
104
|
__spreadProps,
|
|
102
105
|
__spreadValues
|
|
103
106
|
} from "./chunk-GMSUYBZP.js";
|
|
104
107
|
|
|
105
|
-
// bazel-out/
|
|
108
|
+
// bazel-out/darwin-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/
|
|
126
|
+
// bazel-out/darwin-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/
|
|
136
|
+
// bazel-out/darwin-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/
|
|
143
|
+
// bazel-out/darwin-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/
|
|
150
|
+
// bazel-out/darwin-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/
|
|
166
|
+
// bazel-out/darwin-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/
|
|
170
|
+
// bazel-out/darwin-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/
|
|
221
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
219
222
|
import ts2 from "typescript";
|
|
220
223
|
|
|
221
|
-
// bazel-out/
|
|
224
|
+
// bazel-out/darwin-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/
|
|
259
|
+
// bazel-out/darwin-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/
|
|
272
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
270
273
|
import ts28 from "typescript";
|
|
271
274
|
|
|
272
|
-
// bazel-out/
|
|
275
|
+
// bazel-out/darwin-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/
|
|
346
|
+
// bazel-out/darwin-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/
|
|
438
|
+
// bazel-out/darwin-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/
|
|
463
|
+
// bazel-out/darwin-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/
|
|
479
|
+
// bazel-out/darwin-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/
|
|
559
|
+
// bazel-out/darwin-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/
|
|
613
|
+
// bazel-out/darwin-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/
|
|
621
|
+
// bazel-out/darwin-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/
|
|
732
|
+
// bazel-out/darwin-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/
|
|
799
|
+
// bazel-out/darwin-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/
|
|
807
|
+
// bazel-out/darwin-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/
|
|
1008
|
+
// bazel-out/darwin-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/
|
|
1044
|
+
// bazel-out/darwin-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/
|
|
1062
|
+
// bazel-out/darwin-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/
|
|
1072
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1070
1073
|
import { ParseSourceFile } from "@angular/compiler";
|
|
1071
1074
|
|
|
1072
|
-
// bazel-out/
|
|
1075
|
+
// bazel-out/darwin-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/
|
|
1312
|
+
// bazel-out/darwin-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/
|
|
1348
|
+
// bazel-out/darwin-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,87 @@ function createLookupResolutionHost(adapter) {
|
|
|
1488
1491
|
};
|
|
1489
1492
|
}
|
|
1490
1493
|
|
|
1491
|
-
// bazel-out/
|
|
1494
|
+
// bazel-out/darwin-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
|
+
if (!this.cache.has(clazz)) {
|
|
1504
|
+
const clazzRef = new Reference(clazz);
|
|
1505
|
+
const clazzMeta = this.metaReader.getDirectiveMetadata(clazzRef);
|
|
1506
|
+
if (clazzMeta === null || !clazzMeta.isComponent || !clazzMeta.isStandalone) {
|
|
1507
|
+
this.cache.set(clazz, null);
|
|
1508
|
+
return null;
|
|
1509
|
+
}
|
|
1510
|
+
const dependencies = /* @__PURE__ */ new Set([clazzMeta]);
|
|
1511
|
+
const seen = /* @__PURE__ */ new Set([clazz]);
|
|
1512
|
+
let isPoisoned = clazzMeta.isPoisoned;
|
|
1513
|
+
if (clazzMeta.imports !== null) {
|
|
1514
|
+
for (const ref of clazzMeta.imports) {
|
|
1515
|
+
if (seen.has(ref.node)) {
|
|
1516
|
+
continue;
|
|
1517
|
+
}
|
|
1518
|
+
seen.add(ref.node);
|
|
1519
|
+
const dirMeta = this.metaReader.getDirectiveMetadata(ref);
|
|
1520
|
+
if (dirMeta !== null) {
|
|
1521
|
+
dependencies.add(dirMeta);
|
|
1522
|
+
isPoisoned = isPoisoned || dirMeta.isPoisoned || !dirMeta.isStandalone;
|
|
1523
|
+
continue;
|
|
1524
|
+
}
|
|
1525
|
+
const pipeMeta = this.metaReader.getPipeMetadata(ref);
|
|
1526
|
+
if (pipeMeta !== null) {
|
|
1527
|
+
dependencies.add(pipeMeta);
|
|
1528
|
+
isPoisoned = isPoisoned || !pipeMeta.isStandalone;
|
|
1529
|
+
continue;
|
|
1530
|
+
}
|
|
1531
|
+
const ngModuleMeta = this.metaReader.getNgModuleMetadata(ref);
|
|
1532
|
+
if (ngModuleMeta !== null) {
|
|
1533
|
+
dependencies.add(ngModuleMeta);
|
|
1534
|
+
let ngModuleScope;
|
|
1535
|
+
if (ref.node.getSourceFile().isDeclarationFile) {
|
|
1536
|
+
ngModuleScope = this.dtsModuleReader.resolve(ref);
|
|
1537
|
+
} else {
|
|
1538
|
+
ngModuleScope = this.localModuleReader.getScopeOfModule(ref.node);
|
|
1539
|
+
}
|
|
1540
|
+
if (ngModuleScope === null) {
|
|
1541
|
+
isPoisoned = true;
|
|
1542
|
+
continue;
|
|
1543
|
+
}
|
|
1544
|
+
isPoisoned = isPoisoned || ngModuleScope.exported.isPoisoned;
|
|
1545
|
+
for (const dep of ngModuleScope.exported.dependencies) {
|
|
1546
|
+
if (!seen.has(dep.ref.node)) {
|
|
1547
|
+
seen.add(dep.ref.node);
|
|
1548
|
+
dependencies.add(dep);
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
continue;
|
|
1552
|
+
}
|
|
1553
|
+
isPoisoned = true;
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
this.cache.set(clazz, {
|
|
1557
|
+
kind: ComponentScopeKind.Standalone,
|
|
1558
|
+
component: clazz,
|
|
1559
|
+
dependencies: Array.from(dependencies),
|
|
1560
|
+
isPoisoned,
|
|
1561
|
+
schemas: []
|
|
1562
|
+
});
|
|
1563
|
+
}
|
|
1564
|
+
return this.cache.get(clazz);
|
|
1565
|
+
}
|
|
1566
|
+
getRemoteScope() {
|
|
1567
|
+
return null;
|
|
1568
|
+
}
|
|
1569
|
+
};
|
|
1570
|
+
|
|
1571
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
1492
1572
|
import { CssSelector, DomElementSchemaRegistry as DomElementSchemaRegistry2 } from "@angular/compiler";
|
|
1493
1573
|
|
|
1494
|
-
// bazel-out/
|
|
1574
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
1495
1575
|
import ts8 from "typescript";
|
|
1496
1576
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
1497
1577
|
if (mapping.type === "direct") {
|
|
@@ -1564,7 +1644,7 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
|
|
|
1564
1644
|
}
|
|
1565
1645
|
}
|
|
1566
1646
|
|
|
1567
|
-
// bazel-out/
|
|
1647
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
1568
1648
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
1569
1649
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
1570
1650
|
function getTemplateId(clazz) {
|
|
@@ -1581,11 +1661,11 @@ function allocateTemplateId(sf) {
|
|
|
1581
1661
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
1582
1662
|
}
|
|
1583
1663
|
|
|
1584
|
-
// bazel-out/
|
|
1664
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
1585
1665
|
import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
|
|
1586
1666
|
import ts10 from "typescript";
|
|
1587
1667
|
|
|
1588
|
-
// bazel-out/
|
|
1668
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
1589
1669
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
|
|
1590
1670
|
import ts9 from "typescript";
|
|
1591
1671
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
@@ -1705,7 +1785,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
1705
1785
|
}) || false;
|
|
1706
1786
|
}
|
|
1707
1787
|
|
|
1708
|
-
// bazel-out/
|
|
1788
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
1709
1789
|
var CompletionEngine = class {
|
|
1710
1790
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
1711
1791
|
this.tcb = tcb;
|
|
@@ -1862,10 +1942,10 @@ var CompletionEngine = class {
|
|
|
1862
1942
|
}
|
|
1863
1943
|
};
|
|
1864
1944
|
|
|
1865
|
-
// bazel-out/
|
|
1945
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
1866
1946
|
import ts24 from "typescript";
|
|
1867
1947
|
|
|
1868
|
-
// bazel-out/
|
|
1948
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
1869
1949
|
import { DomElementSchemaRegistry } from "@angular/compiler";
|
|
1870
1950
|
import ts11 from "typescript";
|
|
1871
1951
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
@@ -1915,11 +1995,11 @@ var RegistryDomSchemaChecker = class {
|
|
|
1915
1995
|
}
|
|
1916
1996
|
};
|
|
1917
1997
|
|
|
1918
|
-
// bazel-out/
|
|
1998
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
1919
1999
|
import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
|
|
1920
2000
|
import ts17 from "typescript";
|
|
1921
2001
|
|
|
1922
|
-
// bazel-out/
|
|
2002
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
1923
2003
|
import ts12 from "typescript";
|
|
1924
2004
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
1925
2005
|
ts12.SyntaxKind.ParenthesizedExpression,
|
|
@@ -1988,16 +2068,16 @@ function isAccessExpression(node) {
|
|
|
1988
2068
|
return ts12.isPropertyAccessExpression(node) || ts12.isElementAccessExpression(node);
|
|
1989
2069
|
}
|
|
1990
2070
|
|
|
1991
|
-
// bazel-out/
|
|
2071
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
1992
2072
|
import ts16 from "typescript";
|
|
1993
2073
|
|
|
1994
|
-
// bazel-out/
|
|
2074
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
1995
2075
|
import ts15 from "typescript";
|
|
1996
2076
|
|
|
1997
|
-
// bazel-out/
|
|
2077
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
1998
2078
|
import ts14 from "typescript";
|
|
1999
2079
|
|
|
2000
|
-
// bazel-out/
|
|
2080
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
|
|
2001
2081
|
import ts13 from "typescript";
|
|
2002
2082
|
var INELIGIBLE = {};
|
|
2003
2083
|
function canEmitType(type, canEmit) {
|
|
@@ -2059,7 +2139,7 @@ var TypeEmitter = class {
|
|
|
2059
2139
|
}
|
|
2060
2140
|
};
|
|
2061
2141
|
|
|
2062
|
-
// bazel-out/
|
|
2142
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
2063
2143
|
var TypeParameterEmitter = class {
|
|
2064
2144
|
constructor(typeParameters, reflector) {
|
|
2065
2145
|
this.typeParameters = typeParameters;
|
|
@@ -2136,7 +2216,7 @@ var TypeParameterEmitter = class {
|
|
|
2136
2216
|
}
|
|
2137
2217
|
};
|
|
2138
2218
|
|
|
2139
|
-
// bazel-out/
|
|
2219
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
2140
2220
|
var TcbInliningRequirement;
|
|
2141
2221
|
(function(TcbInliningRequirement2) {
|
|
2142
2222
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -2216,7 +2296,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
2216
2296
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
2217
2297
|
}
|
|
2218
2298
|
|
|
2219
|
-
// bazel-out/
|
|
2299
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
2220
2300
|
function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
2221
2301
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
2222
2302
|
const rawType = ts16.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -2287,7 +2367,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
2287
2367
|
});
|
|
2288
2368
|
}
|
|
2289
2369
|
|
|
2290
|
-
// bazel-out/
|
|
2370
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
2291
2371
|
var Environment = class {
|
|
2292
2372
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
2293
2373
|
this.config = config;
|
|
@@ -2379,7 +2459,7 @@ var Environment = class {
|
|
|
2379
2459
|
}
|
|
2380
2460
|
};
|
|
2381
2461
|
|
|
2382
|
-
// bazel-out/
|
|
2462
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
2383
2463
|
import { TmplAstElement as TmplAstElement2 } from "@angular/compiler";
|
|
2384
2464
|
import ts18 from "typescript";
|
|
2385
2465
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
@@ -2511,7 +2591,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
2511
2591
|
});
|
|
2512
2592
|
}
|
|
2513
2593
|
|
|
2514
|
-
// bazel-out/
|
|
2594
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
2515
2595
|
import ts19 from "typescript";
|
|
2516
2596
|
var TypeCheckShimGenerator = class {
|
|
2517
2597
|
constructor() {
|
|
@@ -2529,11 +2609,11 @@ var TypeCheckShimGenerator = class {
|
|
|
2529
2609
|
}
|
|
2530
2610
|
};
|
|
2531
2611
|
|
|
2532
|
-
// bazel-out/
|
|
2612
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
2533
2613
|
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
2614
|
import ts22 from "typescript";
|
|
2535
2615
|
|
|
2536
|
-
// bazel-out/
|
|
2616
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
2537
2617
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
|
|
2538
2618
|
import ts20 from "typescript";
|
|
2539
2619
|
function wrapForDiagnostics(expr) {
|
|
@@ -2579,7 +2659,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
2579
2659
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
2580
2660
|
}
|
|
2581
2661
|
|
|
2582
|
-
// bazel-out/
|
|
2662
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
2583
2663
|
import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
|
|
2584
2664
|
import ts21 from "typescript";
|
|
2585
2665
|
var NULL_AS_ANY = ts21.factory.createAsExpression(ts21.factory.createNull(), ts21.factory.createKeywordTypeNode(ts21.SyntaxKind.AnyKeyword));
|
|
@@ -2909,7 +2989,7 @@ var VeSafeLhsInferenceBugDetector = class {
|
|
|
2909
2989
|
};
|
|
2910
2990
|
VeSafeLhsInferenceBugDetector.SINGLETON = new VeSafeLhsInferenceBugDetector();
|
|
2911
2991
|
|
|
2912
|
-
// bazel-out/
|
|
2992
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
2913
2993
|
import { ImplicitReceiver as ImplicitReceiver3, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstVariable } from "@angular/compiler";
|
|
2914
2994
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
2915
2995
|
constructor(templateId, boundTarget, oob) {
|
|
@@ -2933,7 +3013,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
|
2933
3013
|
}
|
|
2934
3014
|
};
|
|
2935
3015
|
|
|
2936
|
-
// bazel-out/
|
|
3016
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
2937
3017
|
var TcbGenericContextBehavior;
|
|
2938
3018
|
(function(TcbGenericContextBehavior2) {
|
|
2939
3019
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -3983,7 +4063,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
|
|
|
3983
4063
|
}
|
|
3984
4064
|
};
|
|
3985
4065
|
|
|
3986
|
-
// bazel-out/
|
|
4066
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
3987
4067
|
import ts23 from "typescript";
|
|
3988
4068
|
var TypeCheckFile = class extends Environment {
|
|
3989
4069
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -4019,7 +4099,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
4019
4099
|
}
|
|
4020
4100
|
};
|
|
4021
4101
|
|
|
4022
|
-
// bazel-out/
|
|
4102
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
4023
4103
|
var InliningMode;
|
|
4024
4104
|
(function(InliningMode2) {
|
|
4025
4105
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -4249,10 +4329,10 @@ function splitStringAtPoints(str, points) {
|
|
|
4249
4329
|
return splits;
|
|
4250
4330
|
}
|
|
4251
4331
|
|
|
4252
|
-
// bazel-out/
|
|
4332
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
4253
4333
|
import { ParseLocation, ParseSourceSpan } from "@angular/compiler";
|
|
4254
4334
|
|
|
4255
|
-
// bazel-out/
|
|
4335
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
4256
4336
|
var LF_CHAR = 10;
|
|
4257
4337
|
var CR_CHAR = 13;
|
|
4258
4338
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -4293,7 +4373,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
4293
4373
|
return low - 1;
|
|
4294
4374
|
}
|
|
4295
4375
|
|
|
4296
|
-
// bazel-out/
|
|
4376
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
4297
4377
|
var TemplateSource = class {
|
|
4298
4378
|
constructor(mapping, file) {
|
|
4299
4379
|
this.mapping = mapping;
|
|
@@ -4344,7 +4424,7 @@ var TemplateSourceManager = class {
|
|
|
4344
4424
|
}
|
|
4345
4425
|
};
|
|
4346
4426
|
|
|
4347
|
-
// bazel-out/
|
|
4427
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
4348
4428
|
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
4429
|
import ts25 from "typescript";
|
|
4350
4430
|
var SymbolBuilder = class {
|
|
@@ -4459,7 +4539,7 @@ var SymbolBuilder = class {
|
|
|
4459
4539
|
}
|
|
4460
4540
|
getDirectiveModule(declaration) {
|
|
4461
4541
|
const scope = this.componentScopeReader.getScopeForComponent(declaration);
|
|
4462
|
-
if (scope === null) {
|
|
4542
|
+
if (scope === null || scope.kind !== ComponentScopeKind.NgModule) {
|
|
4463
4543
|
return null;
|
|
4464
4544
|
}
|
|
4465
4545
|
return scope.ngModule;
|
|
@@ -4784,7 +4864,7 @@ function sourceSpanEqual(a, b) {
|
|
|
4784
4864
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
4785
4865
|
}
|
|
4786
4866
|
|
|
4787
|
-
// bazel-out/
|
|
4867
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
4788
4868
|
var REGISTRY2 = new DomElementSchemaRegistry2();
|
|
4789
4869
|
var TemplateTypeCheckerImpl = class {
|
|
4790
4870
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -5191,42 +5271,44 @@ var TemplateTypeCheckerImpl = class {
|
|
|
5191
5271
|
if (scope === null) {
|
|
5192
5272
|
return null;
|
|
5193
5273
|
}
|
|
5274
|
+
const dependencies = scope.kind === ComponentScopeKind.NgModule ? scope.compilation.dependencies : scope.dependencies;
|
|
5194
5275
|
const data = {
|
|
5195
5276
|
directives: [],
|
|
5196
5277
|
pipes: [],
|
|
5197
|
-
isPoisoned: scope.compilation.isPoisoned
|
|
5278
|
+
isPoisoned: scope.kind === ComponentScopeKind.NgModule ? scope.compilation.isPoisoned : scope.isPoisoned
|
|
5198
5279
|
};
|
|
5199
5280
|
const typeChecker = this.programDriver.getProgram().getTypeChecker();
|
|
5200
|
-
for (const
|
|
5201
|
-
if (
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5281
|
+
for (const dep of dependencies) {
|
|
5282
|
+
if (dep.kind === MetaKind.Directive) {
|
|
5283
|
+
if (dep.selector === null) {
|
|
5284
|
+
continue;
|
|
5285
|
+
}
|
|
5286
|
+
const tsSymbol = typeChecker.getSymbolAtLocation(dep.ref.node.name);
|
|
5287
|
+
if (!isSymbolWithValueDeclaration(tsSymbol)) {
|
|
5288
|
+
continue;
|
|
5289
|
+
}
|
|
5290
|
+
let ngModule = null;
|
|
5291
|
+
const moduleScopeOfDir = this.componentScopeReader.getScopeForComponent(dep.ref.node);
|
|
5292
|
+
if (moduleScopeOfDir !== null && moduleScopeOfDir.kind === ComponentScopeKind.NgModule) {
|
|
5293
|
+
ngModule = moduleScopeOfDir.ngModule;
|
|
5294
|
+
}
|
|
5295
|
+
data.directives.push({
|
|
5296
|
+
isComponent: dep.isComponent,
|
|
5297
|
+
isStructural: dep.isStructural,
|
|
5298
|
+
selector: dep.selector,
|
|
5299
|
+
tsSymbol,
|
|
5300
|
+
ngModule
|
|
5301
|
+
});
|
|
5302
|
+
} else if (dep.kind === MetaKind.Pipe) {
|
|
5303
|
+
const tsSymbol = typeChecker.getSymbolAtLocation(dep.ref.node.name);
|
|
5304
|
+
if (tsSymbol === void 0) {
|
|
5305
|
+
continue;
|
|
5306
|
+
}
|
|
5307
|
+
data.pipes.push({
|
|
5308
|
+
name: dep.name,
|
|
5309
|
+
tsSymbol
|
|
5310
|
+
});
|
|
5225
5311
|
}
|
|
5226
|
-
data.pipes.push({
|
|
5227
|
-
name: pipe.name,
|
|
5228
|
-
tsSymbol
|
|
5229
|
-
});
|
|
5230
5312
|
}
|
|
5231
5313
|
this.scopeCache.set(component, data);
|
|
5232
5314
|
return data;
|
|
@@ -5318,10 +5400,10 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
5318
5400
|
}
|
|
5319
5401
|
};
|
|
5320
5402
|
|
|
5321
|
-
// bazel-out/
|
|
5403
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
5322
5404
|
import { TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
|
|
5323
5405
|
|
|
5324
|
-
// bazel-out/
|
|
5406
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
5325
5407
|
import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor3 } from "@angular/compiler";
|
|
5326
5408
|
var TemplateCheckWithVisitor = class {
|
|
5327
5409
|
run(ctx, component, template) {
|
|
@@ -5398,7 +5480,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor3 {
|
|
|
5398
5480
|
}
|
|
5399
5481
|
};
|
|
5400
5482
|
|
|
5401
|
-
// bazel-out/
|
|
5483
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
5402
5484
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
5403
5485
|
constructor() {
|
|
5404
5486
|
super(...arguments);
|
|
@@ -5423,7 +5505,7 @@ var factory = {
|
|
|
5423
5505
|
create: () => new InvalidBananaInBoxCheck()
|
|
5424
5506
|
};
|
|
5425
5507
|
|
|
5426
|
-
// bazel-out/
|
|
5508
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
5427
5509
|
import { Binary } from "@angular/compiler";
|
|
5428
5510
|
import ts26 from "typescript";
|
|
5429
5511
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -5468,10 +5550,10 @@ var factory2 = {
|
|
|
5468
5550
|
}
|
|
5469
5551
|
};
|
|
5470
5552
|
|
|
5471
|
-
// bazel-out/
|
|
5553
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
5472
5554
|
import ts27 from "typescript";
|
|
5473
5555
|
|
|
5474
|
-
// bazel-out/
|
|
5556
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
5475
5557
|
var DiagnosticCategoryLabel;
|
|
5476
5558
|
(function(DiagnosticCategoryLabel2) {
|
|
5477
5559
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -5479,7 +5561,7 @@ var DiagnosticCategoryLabel;
|
|
|
5479
5561
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
5480
5562
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
5481
5563
|
|
|
5482
|
-
// bazel-out/
|
|
5564
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
5483
5565
|
var ExtendedTemplateCheckerImpl = class {
|
|
5484
5566
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
5485
5567
|
var _a, _b, _c, _d, _e;
|
|
@@ -5531,13 +5613,13 @@ function assertNever(value) {
|
|
|
5531
5613
|
${value}`);
|
|
5532
5614
|
}
|
|
5533
5615
|
|
|
5534
|
-
// bazel-out/
|
|
5616
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
5535
5617
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
5536
5618
|
factory,
|
|
5537
5619
|
factory2
|
|
5538
5620
|
];
|
|
5539
5621
|
|
|
5540
|
-
// bazel-out/
|
|
5622
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
5541
5623
|
var CompilationTicketKind;
|
|
5542
5624
|
(function(CompilationTicketKind2) {
|
|
5543
5625
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -6022,10 +6104,11 @@ var NgCompiler = class {
|
|
|
6022
6104
|
const localMetaReader = localMetaRegistry;
|
|
6023
6105
|
const depScopeReader = new MetadataDtsModuleScopeResolver(dtsReader, aliasingHost);
|
|
6024
6106
|
const metaReader = new CompoundMetadataReader([localMetaReader, dtsReader]);
|
|
6025
|
-
const
|
|
6026
|
-
const
|
|
6107
|
+
const ngModuleScopeRegistry = new LocalModuleScopeRegistry(localMetaReader, metaReader, depScopeReader, refEmitter, aliasingHost);
|
|
6108
|
+
const standaloneScopeReader = new StandaloneComponentScopeReader(metaReader, ngModuleScopeRegistry, depScopeReader);
|
|
6109
|
+
const scopeReader = new CompoundComponentScopeReader([ngModuleScopeRegistry, standaloneScopeReader]);
|
|
6027
6110
|
const semanticDepGraphUpdater = this.incrementalCompilation.semanticDepGraphUpdater;
|
|
6028
|
-
const metaRegistry = new CompoundMetadataRegistry([localMetaRegistry,
|
|
6111
|
+
const metaRegistry = new CompoundMetadataRegistry([localMetaRegistry, ngModuleScopeRegistry]);
|
|
6029
6112
|
const injectableRegistry = new InjectableClassRegistry(reflector);
|
|
6030
6113
|
const typeCheckScopeRegistry = new TypeCheckScopeRegistry(scopeReader, metaReader);
|
|
6031
6114
|
let referencesRegistry;
|
|
@@ -6042,24 +6125,24 @@ var NgCompiler = class {
|
|
|
6042
6125
|
const compilationMode = this.options.compilationMode === "partial" && !isCore ? CompilationMode.PARTIAL : CompilationMode.FULL;
|
|
6043
6126
|
const cycleHandlingStrategy = compilationMode === CompilationMode.FULL ? 0 : 1;
|
|
6044
6127
|
const handlers = [
|
|
6045
|
-
new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, depScopeReader,
|
|
6046
|
-
new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry,
|
|
6047
|
-
new PipeDecoratorHandler(reflector, evaluator, metaRegistry,
|
|
6128
|
+
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),
|
|
6129
|
+
new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, isCore, semanticDepGraphUpdater, this.closureCompilerEnabled, false, this.delegatingPerfRecorder),
|
|
6130
|
+
new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder),
|
|
6048
6131
|
new InjectableDecoratorHandler(reflector, isCore, this.options.strictInjectionParameters || false, injectableRegistry, this.delegatingPerfRecorder),
|
|
6049
|
-
new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry,
|
|
6132
|
+
new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, isCore, refEmitter, this.adapter.factoryTracker, this.closureCompilerEnabled, injectableRegistry, this.delegatingPerfRecorder)
|
|
6050
6133
|
];
|
|
6051
6134
|
const traitCompiler = new TraitCompiler(handlers, reflector, this.delegatingPerfRecorder, this.incrementalCompilation, this.options.compileNonExportedClasses !== false, compilationMode, dtsTransforms, semanticDepGraphUpdater);
|
|
6052
6135
|
const notifyingDriver = new NotifyingProgramDriverWrapper(this.programDriver, (program) => {
|
|
6053
6136
|
this.incrementalStrategy.setIncrementalState(this.incrementalCompilation.state, program);
|
|
6054
6137
|
this.currentProgram = program;
|
|
6055
6138
|
});
|
|
6056
|
-
const templateTypeChecker = new TemplateTypeCheckerImpl(this.inputProgram, notifyingDriver, traitCompiler, this.getTypeCheckingConfig(), refEmitter, reflector, this.adapter, this.incrementalCompilation,
|
|
6139
|
+
const templateTypeChecker = new TemplateTypeCheckerImpl(this.inputProgram, notifyingDriver, traitCompiler, this.getTypeCheckingConfig(), refEmitter, reflector, this.adapter, this.incrementalCompilation, scopeReader, typeCheckScopeRegistry, this.delegatingPerfRecorder);
|
|
6057
6140
|
const extendedTemplateChecker = this.constructionDiagnostics.length === 0 ? new ExtendedTemplateCheckerImpl(templateTypeChecker, checker, ALL_DIAGNOSTIC_FACTORIES, this.options) : null;
|
|
6058
6141
|
return {
|
|
6059
6142
|
isCore,
|
|
6060
6143
|
traitCompiler,
|
|
6061
6144
|
reflector,
|
|
6062
|
-
scopeRegistry,
|
|
6145
|
+
scopeRegistry: ngModuleScopeRegistry,
|
|
6063
6146
|
dtsTransforms,
|
|
6064
6147
|
exportReferenceGraph,
|
|
6065
6148
|
metaReader,
|
|
@@ -6232,7 +6315,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
6232
6315
|
return versions;
|
|
6233
6316
|
}
|
|
6234
6317
|
|
|
6235
|
-
// bazel-out/
|
|
6318
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
6236
6319
|
import ts29 from "typescript";
|
|
6237
6320
|
var DelegatingCompilerHost2 = class {
|
|
6238
6321
|
constructor(delegate) {
|
|
@@ -6373,7 +6456,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
6373
6456
|
}
|
|
6374
6457
|
};
|
|
6375
6458
|
|
|
6376
|
-
// bazel-out/
|
|
6459
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
6377
6460
|
var NgtscProgram = class {
|
|
6378
6461
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
6379
6462
|
this.options = options;
|
|
@@ -6580,15 +6663,15 @@ function mergeEmitResults(emitResults) {
|
|
|
6580
6663
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
6581
6664
|
}
|
|
6582
6665
|
|
|
6583
|
-
// bazel-out/
|
|
6666
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
6584
6667
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
6585
6668
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
6586
6669
|
}
|
|
6587
6670
|
|
|
6588
|
-
// bazel-out/
|
|
6671
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
6589
6672
|
import ts32 from "typescript";
|
|
6590
6673
|
|
|
6591
|
-
// bazel-out/
|
|
6674
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
6592
6675
|
import ts31 from "typescript";
|
|
6593
6676
|
var GENERATED_FILES = /(.*?)\.(ngfactory|shim\.ngstyle|ngstyle|ngsummary)\.(js|d\.ts|ts)$/;
|
|
6594
6677
|
function createMessageDiagnostic(messageText) {
|
|
@@ -6603,7 +6686,7 @@ function createMessageDiagnostic(messageText) {
|
|
|
6603
6686
|
};
|
|
6604
6687
|
}
|
|
6605
6688
|
|
|
6606
|
-
// bazel-out/
|
|
6689
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
6607
6690
|
var defaultFormatHost = {
|
|
6608
6691
|
getCurrentDirectory: () => ts32.sys.getCurrentDirectory(),
|
|
6609
6692
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -6813,4 +6896,4 @@ export {
|
|
|
6813
6896
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6814
6897
|
* found in the LICENSE file at https://angular.io/license
|
|
6815
6898
|
*/
|
|
6816
|
-
//# sourceMappingURL=chunk-
|
|
6899
|
+
//# sourceMappingURL=chunk-HDIW2RJZ.js.map
|