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