@angular/compiler-cli 15.0.0-next.4 → 15.0.0-next.6
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-RCXOJZDO.js → chunk-2HPI44CB.js} +5 -5
- package/bundles/{chunk-RCXOJZDO.js.map → chunk-2HPI44CB.js.map} +0 -0
- package/bundles/{chunk-TC3DKEFP.js → chunk-2LFNJ4YC.js} +196 -140
- package/bundles/chunk-2LFNJ4YC.js.map +6 -0
- package/bundles/{chunk-56O2PTWU.js → chunk-CYVTLM4Z.js} +7 -7
- package/bundles/{chunk-56O2PTWU.js.map → chunk-CYVTLM4Z.js.map} +0 -0
- package/bundles/{chunk-5FZBUSFV.js → chunk-E7NQQTT7.js} +3 -3
- package/bundles/{chunk-5FZBUSFV.js.map → chunk-E7NQQTT7.js.map} +0 -0
- package/bundles/{chunk-FPKAMI6D.js → chunk-EQ7NIVSK.js} +27 -26
- package/bundles/chunk-EQ7NIVSK.js.map +6 -0
- package/bundles/{chunk-DM4TYSFG.js → chunk-F526PAOI.js} +2 -5
- package/bundles/chunk-F526PAOI.js.map +6 -0
- package/bundles/{chunk-ICPLY7FO.js → chunk-FM6NPN5V.js} +4 -4
- package/bundles/{chunk-ICPLY7FO.js.map → chunk-FM6NPN5V.js.map} +0 -0
- package/bundles/{chunk-JN4TT3OU.js → chunk-GQT3DC2W.js} +7 -7
- package/bundles/{chunk-JN4TT3OU.js.map → chunk-GQT3DC2W.js.map} +0 -0
- package/bundles/{chunk-ERNK3SQG.js → chunk-JH56H6IJ.js} +31 -31
- package/bundles/{chunk-ERNK3SQG.js.map → chunk-JH56H6IJ.js.map} +0 -0
- package/bundles/{chunk-V7FBNIO3.js → chunk-MYEONJ6Z.js} +40 -40
- package/bundles/{chunk-V7FBNIO3.js.map → chunk-MYEONJ6Z.js.map} +0 -0
- package/bundles/{chunk-JTAGML7U.js → chunk-OZI3NCRJ.js} +75 -75
- package/bundles/{chunk-JTAGML7U.js.map → chunk-OZI3NCRJ.js.map} +1 -1
- package/bundles/{chunk-HMWNYAAE.js → chunk-R3C7RFJ4.js} +2 -2
- package/bundles/{chunk-HMWNYAAE.js.map → chunk-R3C7RFJ4.js.map} +0 -0
- package/bundles/{chunk-A5S5H2MN.js → chunk-R4GD76QD.js} +855 -783
- package/bundles/chunk-R4GD76QD.js.map +6 -0
- package/bundles/{chunk-4NRCP3Y6.js → chunk-TOKOIIBI.js} +7 -7
- package/bundles/{chunk-4NRCP3Y6.js.map → chunk-TOKOIIBI.js.map} +0 -0
- package/bundles/{chunk-C7SYDZNO.js → chunk-XOVG7LXX.js} +5 -5
- package/bundles/{chunk-C7SYDZNO.js.map → chunk-XOVG7LXX.js.map} +0 -0
- package/bundles/{chunk-MOE5WKIA.js → chunk-ZXBCBXWY.js} +7 -7
- package/bundles/{chunk-MOE5WKIA.js.map → chunk-ZXBCBXWY.js.map} +0 -0
- package/bundles/index.js +13 -13
- package/bundles/linker/babel/index.js +13 -13
- package/bundles/linker/index.js +5 -5
- package/bundles/ngcc/index.js +13 -13
- package/bundles/ngcc/main-ngcc.js +14 -14
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +14 -14
- 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 -6
- package/bundles/private/tooling.js +3 -3
- package/bundles/src/bin/ng_xi18n.js +11 -11
- package/bundles/src/bin/ngc.js +9 -9
- 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 +4 -4
- package/src/ngtsc/annotations/common/index.d.ts +1 -0
- package/src/ngtsc/annotations/common/src/diagnostics.d.ts +11 -3
- package/src/ngtsc/annotations/common/src/injectable_registry.d.ts +25 -0
- package/src/ngtsc/annotations/common/src/util.d.ts +1 -0
- package/src/ngtsc/annotations/component/src/handler.d.ts +4 -3
- package/src/ngtsc/annotations/directive/src/handler.d.ts +4 -2
- package/src/ngtsc/annotations/ng_module/src/handler.d.ts +2 -2
- package/src/ngtsc/annotations/src/injectable.d.ts +7 -4
- package/src/ngtsc/annotations/src/pipe.d.ts +2 -1
- package/src/ngtsc/core/src/host.d.ts +1 -0
- package/src/ngtsc/diagnostics/src/error_code.d.ts +5 -0
- package/src/ngtsc/metadata/index.d.ts +2 -2
- package/src/ngtsc/metadata/src/api.d.ts +6 -0
- package/src/ngtsc/metadata/src/registry.d.ts +4 -14
- package/src/ngtsc/program_driver/src/ts_create_program_driver.d.ts +1 -0
- package/src/ngtsc/ts_compatibility/src/ts_cross_version_utils.d.ts +0 -9
- package/src/ngtsc/typecheck/api/checker.d.ts +11 -6
- package/src/ngtsc/typecheck/api/scope.d.ts +30 -4
- package/src/ngtsc/typecheck/api/symbols.d.ts +2 -2
- package/src/ngtsc/typecheck/src/checker.d.ts +9 -6
- package/bundles/chunk-A5S5H2MN.js.map +0 -6
- package/bundles/chunk-DM4TYSFG.js.map +0 -6
- package/bundles/chunk-FPKAMI6D.js.map +0 -6
- package/bundles/chunk-TC3DKEFP.js.map +0 -6
|
@@ -31,11 +31,11 @@ import {
|
|
|
31
31
|
aliasTransformFactory,
|
|
32
32
|
declarationTransformFactory,
|
|
33
33
|
ivyTransformFactory
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-R4GD76QD.js";
|
|
35
35
|
import {
|
|
36
36
|
TypeScriptReflectionHost,
|
|
37
37
|
isNamedClassDeclaration
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-ZXBCBXWY.js";
|
|
39
39
|
import {
|
|
40
40
|
AbsoluteModuleStrategy,
|
|
41
41
|
AliasStrategy,
|
|
@@ -76,13 +76,12 @@ import {
|
|
|
76
76
|
toUnredirectedSourceFile,
|
|
77
77
|
translateExpression,
|
|
78
78
|
translateType
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-EQ7NIVSK.js";
|
|
80
80
|
import {
|
|
81
81
|
getDecorators,
|
|
82
82
|
getModifiers,
|
|
83
|
-
updateImportDeclaration
|
|
84
|
-
|
|
85
|
-
} from "./chunk-DM4TYSFG.js";
|
|
83
|
+
updateImportDeclaration
|
|
84
|
+
} from "./chunk-F526PAOI.js";
|
|
86
85
|
import {
|
|
87
86
|
LogicalFileSystem,
|
|
88
87
|
absoluteFrom,
|
|
@@ -93,16 +92,16 @@ import {
|
|
|
93
92
|
getSourceFileOrError,
|
|
94
93
|
join,
|
|
95
94
|
resolve
|
|
96
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-TOKOIIBI.js";
|
|
97
96
|
import {
|
|
98
97
|
ActivePerfRecorder,
|
|
99
98
|
DelegatingPerfRecorder,
|
|
100
99
|
PerfCheckpoint,
|
|
101
100
|
PerfEvent,
|
|
102
101
|
PerfPhase
|
|
103
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-2HPI44CB.js";
|
|
104
103
|
|
|
105
|
-
// bazel-out/
|
|
104
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
106
105
|
var DEFAULT_ERROR_CODE = 100;
|
|
107
106
|
var UNKNOWN_ERROR_CODE = 500;
|
|
108
107
|
var SOURCE = "angular";
|
|
@@ -120,7 +119,7 @@ var EmitFlags;
|
|
|
120
119
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
121
120
|
})(EmitFlags || (EmitFlags = {}));
|
|
122
121
|
|
|
123
|
-
// bazel-out/
|
|
122
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
124
123
|
import ts from "typescript";
|
|
125
124
|
var wrapHostForTest = null;
|
|
126
125
|
function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, true) }) {
|
|
@@ -130,21 +129,28 @@ function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, t
|
|
|
130
129
|
return tsHost;
|
|
131
130
|
}
|
|
132
131
|
|
|
133
|
-
// bazel-out/
|
|
132
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
134
133
|
var OptimizeFor;
|
|
135
134
|
(function(OptimizeFor2) {
|
|
136
135
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
137
136
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
138
137
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
139
138
|
|
|
140
|
-
// bazel-out/
|
|
139
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
141
140
|
var CompletionKind;
|
|
142
141
|
(function(CompletionKind2) {
|
|
143
142
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
144
143
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
145
144
|
})(CompletionKind || (CompletionKind = {}));
|
|
146
145
|
|
|
147
|
-
// bazel-out/
|
|
146
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
|
|
147
|
+
var PotentialImportKind;
|
|
148
|
+
(function(PotentialImportKind2) {
|
|
149
|
+
PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
|
|
150
|
+
PotentialImportKind2[PotentialImportKind2["Standalone"] = 1] = "Standalone";
|
|
151
|
+
})(PotentialImportKind || (PotentialImportKind = {}));
|
|
152
|
+
|
|
153
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
148
154
|
var SymbolKind;
|
|
149
155
|
(function(SymbolKind2) {
|
|
150
156
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -160,11 +166,11 @@ var SymbolKind;
|
|
|
160
166
|
SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
|
|
161
167
|
})(SymbolKind || (SymbolKind = {}));
|
|
162
168
|
|
|
163
|
-
// bazel-out/
|
|
169
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
164
170
|
import { HtmlParser, MessageBundle } from "@angular/compiler";
|
|
165
171
|
import ts34 from "typescript";
|
|
166
172
|
|
|
167
|
-
// bazel-out/
|
|
173
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
168
174
|
import { Xliff, Xliff2, Xmb } from "@angular/compiler";
|
|
169
175
|
import * as path from "path";
|
|
170
176
|
function i18nGetExtension(formatName) {
|
|
@@ -215,10 +221,10 @@ function getPathNormalizer(basePath) {
|
|
|
215
221
|
};
|
|
216
222
|
}
|
|
217
223
|
|
|
218
|
-
// bazel-out/
|
|
224
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
219
225
|
import ts2 from "typescript";
|
|
220
226
|
|
|
221
|
-
// bazel-out/
|
|
227
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
222
228
|
function toNumbers(value) {
|
|
223
229
|
const suffixIndex = value.lastIndexOf("-");
|
|
224
230
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -253,8 +259,8 @@ function compareVersions(v1, v2) {
|
|
|
253
259
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
254
260
|
}
|
|
255
261
|
|
|
256
|
-
// bazel-out/
|
|
257
|
-
var MIN_TS_VERSION = "4.
|
|
262
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
263
|
+
var MIN_TS_VERSION = "4.8.2";
|
|
258
264
|
var MAX_TS_VERSION = "4.9.0";
|
|
259
265
|
var tsVersion = ts2.version;
|
|
260
266
|
function checkVersion(version, minVersion, maxVersion) {
|
|
@@ -266,10 +272,10 @@ function verifySupportedTypeScriptVersion() {
|
|
|
266
272
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
267
273
|
}
|
|
268
274
|
|
|
269
|
-
// bazel-out/
|
|
275
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
270
276
|
import ts32 from "typescript";
|
|
271
277
|
|
|
272
|
-
// bazel-out/
|
|
278
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
273
279
|
var CycleAnalyzer = class {
|
|
274
280
|
constructor(importGraph) {
|
|
275
281
|
this.importGraph = importGraph;
|
|
@@ -340,7 +346,7 @@ var Cycle = class {
|
|
|
340
346
|
}
|
|
341
347
|
};
|
|
342
348
|
|
|
343
|
-
// bazel-out/
|
|
349
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
344
350
|
import ts3 from "typescript";
|
|
345
351
|
var ImportGraph = class {
|
|
346
352
|
constructor(checker, perf) {
|
|
@@ -432,7 +438,7 @@ var Found = class {
|
|
|
432
438
|
}
|
|
433
439
|
};
|
|
434
440
|
|
|
435
|
-
// bazel-out/
|
|
441
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
436
442
|
import ts4 from "typescript";
|
|
437
443
|
var FlatIndexGenerator = class {
|
|
438
444
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -457,7 +463,7 @@ export * from '${relativeEntryPoint}';
|
|
|
457
463
|
}
|
|
458
464
|
};
|
|
459
465
|
|
|
460
|
-
// bazel-out/
|
|
466
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
461
467
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
462
468
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
463
469
|
let resolvedEntryPoint = null;
|
|
@@ -473,7 +479,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
473
479
|
return resolvedEntryPoint;
|
|
474
480
|
}
|
|
475
481
|
|
|
476
|
-
// bazel-out/
|
|
482
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
477
483
|
import ts5 from "typescript";
|
|
478
484
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
479
485
|
const diagnostics = [];
|
|
@@ -553,7 +559,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
553
559
|
}
|
|
554
560
|
}
|
|
555
561
|
|
|
556
|
-
// bazel-out/
|
|
562
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
557
563
|
var ReferenceGraph = class {
|
|
558
564
|
constructor() {
|
|
559
565
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -607,7 +613,7 @@ var ReferenceGraph = class {
|
|
|
607
613
|
}
|
|
608
614
|
};
|
|
609
615
|
|
|
610
|
-
// bazel-out/
|
|
616
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
611
617
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
612
618
|
var UpdateMode;
|
|
613
619
|
(function(UpdateMode2) {
|
|
@@ -615,13 +621,13 @@ var UpdateMode;
|
|
|
615
621
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
616
622
|
})(UpdateMode || (UpdateMode = {}));
|
|
617
623
|
|
|
618
|
-
// bazel-out/
|
|
624
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
619
625
|
import ts9 from "typescript";
|
|
620
626
|
|
|
621
|
-
// bazel-out/
|
|
627
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
622
628
|
import ts6 from "typescript";
|
|
623
629
|
|
|
624
|
-
// bazel-out/
|
|
630
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
625
631
|
var NgExtension = Symbol("NgExtension");
|
|
626
632
|
function isExtended(sf) {
|
|
627
633
|
return sf[NgExtension] !== void 0;
|
|
@@ -681,7 +687,7 @@ function retagTsFile(sf) {
|
|
|
681
687
|
}
|
|
682
688
|
}
|
|
683
689
|
|
|
684
|
-
// bazel-out/
|
|
690
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
685
691
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
686
692
|
function makeShimFileName(fileName, suffix) {
|
|
687
693
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
@@ -696,7 +702,7 @@ function generatedModuleName(originalModuleName, originalFileName, genSuffix) {
|
|
|
696
702
|
return moduleName;
|
|
697
703
|
}
|
|
698
704
|
|
|
699
|
-
// bazel-out/
|
|
705
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
700
706
|
var ShimAdapter = class {
|
|
701
707
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
702
708
|
this.delegate = delegate;
|
|
@@ -759,13 +765,11 @@ var ShimAdapter = class {
|
|
|
759
765
|
}
|
|
760
766
|
const prefix = match[1];
|
|
761
767
|
let baseFileName = absoluteFrom(prefix + ".ts");
|
|
762
|
-
|
|
768
|
+
let inputFile = this.delegate.getSourceFile(baseFileName, ts6.ScriptTarget.Latest);
|
|
769
|
+
if (inputFile === void 0) {
|
|
763
770
|
baseFileName = absoluteFrom(prefix + ".tsx");
|
|
764
|
-
|
|
765
|
-
return void 0;
|
|
766
|
-
}
|
|
771
|
+
inputFile = this.delegate.getSourceFile(baseFileName, ts6.ScriptTarget.Latest);
|
|
767
772
|
}
|
|
768
|
-
const inputFile = this.delegate.getSourceFile(baseFileName, ts6.ScriptTarget.Latest);
|
|
769
773
|
if (inputFile === void 0 || isShim(inputFile)) {
|
|
770
774
|
return void 0;
|
|
771
775
|
}
|
|
@@ -793,7 +797,7 @@ var ShimAdapter = class {
|
|
|
793
797
|
}
|
|
794
798
|
};
|
|
795
799
|
|
|
796
|
-
// bazel-out/
|
|
800
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
|
|
797
801
|
import ts7 from "typescript";
|
|
798
802
|
var TS_DTS_SUFFIX = /(\.d)?\.ts$/;
|
|
799
803
|
var STRIP_NG_FACTORY = /(.*)NgFactory$/;
|
|
@@ -941,7 +945,7 @@ function updateInitializers(stmt, update) {
|
|
|
941
945
|
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)))));
|
|
942
946
|
}
|
|
943
947
|
|
|
944
|
-
// bazel-out/
|
|
948
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
945
949
|
var ShimReferenceTagger = class {
|
|
946
950
|
constructor(shimExtensions) {
|
|
947
951
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -975,7 +979,7 @@ var ShimReferenceTagger = class {
|
|
|
975
979
|
}
|
|
976
980
|
};
|
|
977
981
|
|
|
978
|
-
// bazel-out/
|
|
982
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
|
|
979
983
|
import ts8 from "typescript";
|
|
980
984
|
var SummaryGenerator = class {
|
|
981
985
|
constructor() {
|
|
@@ -1016,7 +1020,7 @@ function isExported2(decl) {
|
|
|
1016
1020
|
return modifiers !== void 0 && modifiers.some((mod) => mod.kind == ts8.SyntaxKind.ExportKeyword) || false;
|
|
1017
1021
|
}
|
|
1018
1022
|
|
|
1019
|
-
// bazel-out/
|
|
1023
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
1020
1024
|
var DelegatingCompilerHost = class {
|
|
1021
1025
|
constructor(delegate) {
|
|
1022
1026
|
this.delegate = delegate;
|
|
@@ -1040,6 +1044,7 @@ var DelegatingCompilerHost = class {
|
|
|
1040
1044
|
this.trace = this.delegateMethod("trace");
|
|
1041
1045
|
this.useCaseSensitiveFileNames = this.delegateMethod("useCaseSensitiveFileNames");
|
|
1042
1046
|
this.getModuleResolutionCache = this.delegateMethod("getModuleResolutionCache");
|
|
1047
|
+
this.hasInvalidatedResolutions = this.delegateMethod("hasInvalidatedResolutions");
|
|
1043
1048
|
}
|
|
1044
1049
|
delegateMethod(name) {
|
|
1045
1050
|
return this.delegate[name] !== void 0 ? this.delegate[name].bind(this.delegate) : void 0;
|
|
@@ -1126,7 +1131,7 @@ var TsCreateProgramDriver = class {
|
|
|
1126
1131
|
}
|
|
1127
1132
|
};
|
|
1128
1133
|
|
|
1129
|
-
// bazel-out/
|
|
1134
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
1130
1135
|
var FileDependencyGraph = class {
|
|
1131
1136
|
constructor() {
|
|
1132
1137
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -1193,7 +1198,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
1193
1198
|
return false;
|
|
1194
1199
|
}
|
|
1195
1200
|
|
|
1196
|
-
// bazel-out/
|
|
1201
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
1197
1202
|
var IncrementalStateKind;
|
|
1198
1203
|
(function(IncrementalStateKind2) {
|
|
1199
1204
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -1201,7 +1206,7 @@ var IncrementalStateKind;
|
|
|
1201
1206
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
1202
1207
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
1203
1208
|
|
|
1204
|
-
// bazel-out/
|
|
1209
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
1205
1210
|
var PhaseKind;
|
|
1206
1211
|
(function(PhaseKind2) {
|
|
1207
1212
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -1402,7 +1407,7 @@ function toOriginalSourceFile(sf) {
|
|
|
1402
1407
|
}
|
|
1403
1408
|
}
|
|
1404
1409
|
|
|
1405
|
-
// bazel-out/
|
|
1410
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
1406
1411
|
var TrackedIncrementalBuildStrategy = class {
|
|
1407
1412
|
constructor() {
|
|
1408
1413
|
this.state = null;
|
|
@@ -1438,7 +1443,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
|
|
|
1438
1443
|
};
|
|
1439
1444
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
1440
1445
|
|
|
1441
|
-
// bazel-out/
|
|
1446
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
1442
1447
|
var IdentifierKind;
|
|
1443
1448
|
(function(IdentifierKind2) {
|
|
1444
1449
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -1456,7 +1461,7 @@ var AbsoluteSourceSpan = class {
|
|
|
1456
1461
|
}
|
|
1457
1462
|
};
|
|
1458
1463
|
|
|
1459
|
-
// bazel-out/
|
|
1464
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
1460
1465
|
var IndexingContext = class {
|
|
1461
1466
|
constructor() {
|
|
1462
1467
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -1466,10 +1471,10 @@ var IndexingContext = class {
|
|
|
1466
1471
|
}
|
|
1467
1472
|
};
|
|
1468
1473
|
|
|
1469
|
-
// bazel-out/
|
|
1474
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1470
1475
|
import { ParseSourceFile } from "@angular/compiler";
|
|
1471
1476
|
|
|
1472
|
-
// bazel-out/
|
|
1477
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
1473
1478
|
import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate } from "@angular/compiler";
|
|
1474
1479
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
1475
1480
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
@@ -1706,7 +1711,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
1706
1711
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
1707
1712
|
}
|
|
1708
1713
|
|
|
1709
|
-
// bazel-out/
|
|
1714
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1710
1715
|
function generateAnalysis(context) {
|
|
1711
1716
|
const analysis = /* @__PURE__ */ new Map();
|
|
1712
1717
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -1742,7 +1747,7 @@ function generateAnalysis(context) {
|
|
|
1742
1747
|
return analysis;
|
|
1743
1748
|
}
|
|
1744
1749
|
|
|
1745
|
-
// bazel-out/
|
|
1750
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
1746
1751
|
import ts10 from "typescript";
|
|
1747
1752
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
1748
1753
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -1888,7 +1893,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
1888
1893
|
};
|
|
1889
1894
|
}
|
|
1890
1895
|
|
|
1891
|
-
// bazel-out/
|
|
1896
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
1892
1897
|
var StandaloneComponentScopeReader = class {
|
|
1893
1898
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
1894
1899
|
this.metaReader = metaReader;
|
|
@@ -1966,10 +1971,10 @@ var StandaloneComponentScopeReader = class {
|
|
|
1966
1971
|
}
|
|
1967
1972
|
};
|
|
1968
1973
|
|
|
1969
|
-
// bazel-out/
|
|
1974
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
1970
1975
|
import { CssSelector, DomElementSchemaRegistry as DomElementSchemaRegistry2 } from "@angular/compiler";
|
|
1971
1976
|
|
|
1972
|
-
// bazel-out/
|
|
1977
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
1973
1978
|
import ts11 from "typescript";
|
|
1974
1979
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
1975
1980
|
var _a;
|
|
@@ -2076,7 +2081,7 @@ function parseTemplateAsSourceFile(fileName, template) {
|
|
|
2076
2081
|
return ts11.createSourceFile(fileName, template, ts11.ScriptTarget.Latest, false, ts11.ScriptKind.JSX);
|
|
2077
2082
|
}
|
|
2078
2083
|
|
|
2079
|
-
// bazel-out/
|
|
2084
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
2080
2085
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
2081
2086
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
2082
2087
|
function getTemplateId(clazz) {
|
|
@@ -2093,11 +2098,11 @@ function allocateTemplateId(sf) {
|
|
|
2093
2098
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
2094
2099
|
}
|
|
2095
2100
|
|
|
2096
|
-
// bazel-out/
|
|
2101
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2097
2102
|
import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
|
|
2098
2103
|
import ts13 from "typescript";
|
|
2099
2104
|
|
|
2100
|
-
// bazel-out/
|
|
2105
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
2101
2106
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
|
|
2102
2107
|
import ts12 from "typescript";
|
|
2103
2108
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
@@ -2217,7 +2222,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
2217
2222
|
}) || false;
|
|
2218
2223
|
}
|
|
2219
2224
|
|
|
2220
|
-
// bazel-out/
|
|
2225
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2221
2226
|
var CompletionEngine = class {
|
|
2222
2227
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
2223
2228
|
this.tcb = tcb;
|
|
@@ -2374,10 +2379,10 @@ var CompletionEngine = class {
|
|
|
2374
2379
|
}
|
|
2375
2380
|
};
|
|
2376
2381
|
|
|
2377
|
-
// bazel-out/
|
|
2382
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
2378
2383
|
import ts27 from "typescript";
|
|
2379
2384
|
|
|
2380
|
-
// bazel-out/
|
|
2385
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
2381
2386
|
import { DomElementSchemaRegistry } from "@angular/compiler";
|
|
2382
2387
|
import ts14 from "typescript";
|
|
2383
2388
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
@@ -2430,11 +2435,11 @@ var RegistryDomSchemaChecker = class {
|
|
|
2430
2435
|
}
|
|
2431
2436
|
};
|
|
2432
2437
|
|
|
2433
|
-
// bazel-out/
|
|
2438
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
2434
2439
|
import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
|
|
2435
2440
|
import ts20 from "typescript";
|
|
2436
2441
|
|
|
2437
|
-
// bazel-out/
|
|
2442
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
2438
2443
|
import ts15 from "typescript";
|
|
2439
2444
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
2440
2445
|
ts15.SyntaxKind.ParenthesizedExpression,
|
|
@@ -2481,16 +2486,16 @@ function isAccessExpression(node) {
|
|
|
2481
2486
|
return ts15.isPropertyAccessExpression(node) || ts15.isElementAccessExpression(node);
|
|
2482
2487
|
}
|
|
2483
2488
|
|
|
2484
|
-
// bazel-out/
|
|
2489
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
2485
2490
|
import ts19 from "typescript";
|
|
2486
2491
|
|
|
2487
|
-
// bazel-out/
|
|
2492
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
2488
2493
|
import ts18 from "typescript";
|
|
2489
2494
|
|
|
2490
|
-
// bazel-out/
|
|
2495
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
2491
2496
|
import ts17 from "typescript";
|
|
2492
2497
|
|
|
2493
|
-
// bazel-out/
|
|
2498
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
|
|
2494
2499
|
import ts16 from "typescript";
|
|
2495
2500
|
var INELIGIBLE = {};
|
|
2496
2501
|
function canEmitType(type, canEmit) {
|
|
@@ -2565,7 +2570,7 @@ var TypeEmitter = class {
|
|
|
2565
2570
|
}
|
|
2566
2571
|
};
|
|
2567
2572
|
|
|
2568
|
-
// bazel-out/
|
|
2573
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
2569
2574
|
var TypeParameterEmitter = class {
|
|
2570
2575
|
constructor(typeParameters, reflector) {
|
|
2571
2576
|
this.typeParameters = typeParameters;
|
|
@@ -2602,7 +2607,7 @@ var TypeParameterEmitter = class {
|
|
|
2602
2607
|
return this.typeParameters.map((typeParam) => {
|
|
2603
2608
|
const constraint = typeParam.constraint !== void 0 ? emitter.emitType(typeParam.constraint) : void 0;
|
|
2604
2609
|
const defaultType = typeParam.default !== void 0 ? emitter.emitType(typeParam.default) : void 0;
|
|
2605
|
-
return updateTypeParameterDeclaration(typeParam, typeParam.modifiers, typeParam.name, constraint, defaultType);
|
|
2610
|
+
return ts17.factory.updateTypeParameterDeclaration(typeParam, typeParam.modifiers, typeParam.name, constraint, defaultType);
|
|
2606
2611
|
});
|
|
2607
2612
|
}
|
|
2608
2613
|
resolveTypeReference(type) {
|
|
@@ -2642,7 +2647,7 @@ var TypeParameterEmitter = class {
|
|
|
2642
2647
|
}
|
|
2643
2648
|
};
|
|
2644
2649
|
|
|
2645
|
-
// bazel-out/
|
|
2650
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
2646
2651
|
var TcbInliningRequirement;
|
|
2647
2652
|
(function(TcbInliningRequirement2) {
|
|
2648
2653
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -2722,7 +2727,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
2722
2727
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
2723
2728
|
}
|
|
2724
2729
|
|
|
2725
|
-
// bazel-out/
|
|
2730
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
2726
2731
|
function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
2727
2732
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
2728
2733
|
const rawType = ts19.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -2786,14 +2791,14 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
2786
2791
|
}
|
|
2787
2792
|
return params.map((param) => {
|
|
2788
2793
|
if (param.default === void 0) {
|
|
2789
|
-
return updateTypeParameterDeclaration(param, param.modifiers, param.name, param.constraint, ts19.factory.createKeywordTypeNode(ts19.SyntaxKind.AnyKeyword));
|
|
2794
|
+
return ts19.factory.updateTypeParameterDeclaration(param, param.modifiers, param.name, param.constraint, ts19.factory.createKeywordTypeNode(ts19.SyntaxKind.AnyKeyword));
|
|
2790
2795
|
} else {
|
|
2791
2796
|
return param;
|
|
2792
2797
|
}
|
|
2793
2798
|
});
|
|
2794
2799
|
}
|
|
2795
2800
|
|
|
2796
|
-
// bazel-out/
|
|
2801
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
2797
2802
|
var Environment = class {
|
|
2798
2803
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
2799
2804
|
this.config = config;
|
|
@@ -2885,7 +2890,7 @@ var Environment = class {
|
|
|
2885
2890
|
}
|
|
2886
2891
|
};
|
|
2887
2892
|
|
|
2888
|
-
// bazel-out/
|
|
2893
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
2889
2894
|
import { TmplAstElement as TmplAstElement2 } from "@angular/compiler";
|
|
2890
2895
|
import ts21 from "typescript";
|
|
2891
2896
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
@@ -3018,7 +3023,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
3018
3023
|
};
|
|
3019
3024
|
}
|
|
3020
3025
|
|
|
3021
|
-
// bazel-out/
|
|
3026
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
3022
3027
|
import ts22 from "typescript";
|
|
3023
3028
|
var TypeCheckShimGenerator = class {
|
|
3024
3029
|
constructor() {
|
|
@@ -3036,11 +3041,11 @@ var TypeCheckShimGenerator = class {
|
|
|
3036
3041
|
}
|
|
3037
3042
|
};
|
|
3038
3043
|
|
|
3039
|
-
// bazel-out/
|
|
3044
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
3040
3045
|
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";
|
|
3041
3046
|
import ts25 from "typescript";
|
|
3042
3047
|
|
|
3043
|
-
// bazel-out/
|
|
3048
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
3044
3049
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
|
|
3045
3050
|
import ts23 from "typescript";
|
|
3046
3051
|
function wrapForDiagnostics(expr) {
|
|
@@ -3086,7 +3091,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
3086
3091
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
3087
3092
|
}
|
|
3088
3093
|
|
|
3089
|
-
// bazel-out/
|
|
3094
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
3090
3095
|
import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
|
|
3091
3096
|
import ts24 from "typescript";
|
|
3092
3097
|
var NULL_AS_ANY = ts24.factory.createAsExpression(ts24.factory.createNull(), ts24.factory.createKeywordTypeNode(ts24.SyntaxKind.AnyKeyword));
|
|
@@ -3416,7 +3421,7 @@ var VeSafeLhsInferenceBugDetector = class {
|
|
|
3416
3421
|
};
|
|
3417
3422
|
VeSafeLhsInferenceBugDetector.SINGLETON = new VeSafeLhsInferenceBugDetector();
|
|
3418
3423
|
|
|
3419
|
-
// bazel-out/
|
|
3424
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
3420
3425
|
import { ImplicitReceiver as ImplicitReceiver3, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstVariable } from "@angular/compiler";
|
|
3421
3426
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
3422
3427
|
constructor(templateId, boundTarget, oob) {
|
|
@@ -3440,7 +3445,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
|
3440
3445
|
}
|
|
3441
3446
|
};
|
|
3442
3447
|
|
|
3443
|
-
// bazel-out/
|
|
3448
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
3444
3449
|
var TcbGenericContextBehavior;
|
|
3445
3450
|
(function(TcbGenericContextBehavior2) {
|
|
3446
3451
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -4501,7 +4506,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
|
|
|
4501
4506
|
}
|
|
4502
4507
|
};
|
|
4503
4508
|
|
|
4504
|
-
// bazel-out/
|
|
4509
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
4505
4510
|
import ts26 from "typescript";
|
|
4506
4511
|
var TypeCheckFile = class extends Environment {
|
|
4507
4512
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -4537,7 +4542,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
4537
4542
|
}
|
|
4538
4543
|
};
|
|
4539
4544
|
|
|
4540
|
-
// bazel-out/
|
|
4545
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
4541
4546
|
var InliningMode;
|
|
4542
4547
|
(function(InliningMode2) {
|
|
4543
4548
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -4775,10 +4780,10 @@ function splitStringAtPoints(str, points) {
|
|
|
4775
4780
|
return splits;
|
|
4776
4781
|
}
|
|
4777
4782
|
|
|
4778
|
-
// bazel-out/
|
|
4783
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
4779
4784
|
import { ParseLocation, ParseSourceSpan } from "@angular/compiler";
|
|
4780
4785
|
|
|
4781
|
-
// bazel-out/
|
|
4786
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
4782
4787
|
var LF_CHAR = 10;
|
|
4783
4788
|
var CR_CHAR = 13;
|
|
4784
4789
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -4819,7 +4824,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
4819
4824
|
return low - 1;
|
|
4820
4825
|
}
|
|
4821
4826
|
|
|
4822
|
-
// bazel-out/
|
|
4827
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
4823
4828
|
var TemplateSource = class {
|
|
4824
4829
|
constructor(mapping, file) {
|
|
4825
4830
|
this.mapping = mapping;
|
|
@@ -4870,7 +4875,7 @@ var TemplateSourceManager = class {
|
|
|
4870
4875
|
}
|
|
4871
4876
|
};
|
|
4872
4877
|
|
|
4873
|
-
// bazel-out/
|
|
4878
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
4874
4879
|
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";
|
|
4875
4880
|
import ts28 from "typescript";
|
|
4876
4881
|
var SymbolBuilder = class {
|
|
@@ -4953,14 +4958,17 @@ var SymbolBuilder = class {
|
|
|
4953
4958
|
return null;
|
|
4954
4959
|
}
|
|
4955
4960
|
const isComponent = (_a2 = meta.isComponent) != null ? _a2 : null;
|
|
4961
|
+
const ref = new Reference(symbol.tsSymbol.valueDeclaration);
|
|
4956
4962
|
const directiveSymbol = {
|
|
4957
4963
|
...symbol,
|
|
4964
|
+
ref,
|
|
4958
4965
|
tsSymbol: symbol.tsSymbol,
|
|
4959
4966
|
selector: meta.selector,
|
|
4960
4967
|
isComponent,
|
|
4961
4968
|
ngModule,
|
|
4962
4969
|
kind: SymbolKind.Directive,
|
|
4963
|
-
isStructural: meta.isStructural
|
|
4970
|
+
isStructural: meta.isStructural,
|
|
4971
|
+
isInScope: true
|
|
4964
4972
|
};
|
|
4965
4973
|
return directiveSymbol;
|
|
4966
4974
|
}).filter((d) => d !== null);
|
|
@@ -5124,8 +5132,10 @@ var SymbolBuilder = class {
|
|
|
5124
5132
|
if (symbol === null || !isSymbolWithValueDeclaration(symbol.tsSymbol) || !ts28.isClassDeclaration(symbol.tsSymbol.valueDeclaration)) {
|
|
5125
5133
|
return null;
|
|
5126
5134
|
}
|
|
5135
|
+
const ref = new Reference(symbol.tsSymbol.valueDeclaration);
|
|
5127
5136
|
const ngModule = this.getDirectiveModule(symbol.tsSymbol.valueDeclaration);
|
|
5128
5137
|
return {
|
|
5138
|
+
ref,
|
|
5129
5139
|
kind: SymbolKind.Directive,
|
|
5130
5140
|
tsSymbol: symbol.tsSymbol,
|
|
5131
5141
|
tsType: symbol.tsType,
|
|
@@ -5133,7 +5143,8 @@ var SymbolBuilder = class {
|
|
|
5133
5143
|
isComponent,
|
|
5134
5144
|
isStructural,
|
|
5135
5145
|
selector,
|
|
5136
|
-
ngModule
|
|
5146
|
+
ngModule,
|
|
5147
|
+
isInScope: true
|
|
5137
5148
|
};
|
|
5138
5149
|
}
|
|
5139
5150
|
getSymbolOfVariable(variable) {
|
|
@@ -5315,10 +5326,10 @@ function sourceSpanEqual(a, b) {
|
|
|
5315
5326
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
5316
5327
|
}
|
|
5317
5328
|
|
|
5318
|
-
// bazel-out/
|
|
5329
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
5319
5330
|
var REGISTRY2 = new DomElementSchemaRegistry2();
|
|
5320
5331
|
var TemplateTypeCheckerImpl = class {
|
|
5321
|
-
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
5332
|
+
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
5322
5333
|
this.originalProgram = originalProgram;
|
|
5323
5334
|
this.programDriver = programDriver;
|
|
5324
5335
|
this.typeCheckAdapter = typeCheckAdapter;
|
|
@@ -5328,6 +5339,7 @@ var TemplateTypeCheckerImpl = class {
|
|
|
5328
5339
|
this.compilerHost = compilerHost;
|
|
5329
5340
|
this.priorBuild = priorBuild;
|
|
5330
5341
|
this.metaReader = metaReader;
|
|
5342
|
+
this.localMetaReader = localMetaReader;
|
|
5331
5343
|
this.componentScopeReader = componentScopeReader;
|
|
5332
5344
|
this.typeCheckScopeRegistry = typeCheckScopeRegistry;
|
|
5333
5345
|
this.perf = perf;
|
|
@@ -5661,12 +5673,26 @@ var TemplateTypeCheckerImpl = class {
|
|
|
5661
5673
|
this.symbolBuilderCache.set(component, builder);
|
|
5662
5674
|
return builder;
|
|
5663
5675
|
}
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5676
|
+
getPotentialTemplateDirectives(component) {
|
|
5677
|
+
var _a, _b;
|
|
5678
|
+
const typeChecker = this.programDriver.getProgram().getTypeChecker();
|
|
5679
|
+
const inScopeDirectives = (_b = (_a = this.getScopeData(component)) == null ? void 0 : _a.directives) != null ? _b : [];
|
|
5680
|
+
const resultingDirectives = /* @__PURE__ */ new Map();
|
|
5681
|
+
for (const d of inScopeDirectives) {
|
|
5682
|
+
resultingDirectives.set(d.ref.node, d);
|
|
5683
|
+
}
|
|
5684
|
+
for (const directiveClass of this.localMetaReader.getKnownDirectives()) {
|
|
5685
|
+
const directiveMeta = this.metaReader.getDirectiveMetadata(new Reference(directiveClass));
|
|
5686
|
+
if (directiveMeta === null)
|
|
5687
|
+
continue;
|
|
5688
|
+
if (resultingDirectives.has(directiveClass))
|
|
5689
|
+
continue;
|
|
5690
|
+
const withScope = this.scopeDataOfDirectiveMeta(typeChecker, directiveMeta);
|
|
5691
|
+
if (withScope === null)
|
|
5692
|
+
continue;
|
|
5693
|
+
resultingDirectives.set(directiveClass, { ...withScope, isInScope: false });
|
|
5668
5694
|
}
|
|
5669
|
-
return
|
|
5695
|
+
return Array.from(resultingDirectives.values());
|
|
5670
5696
|
}
|
|
5671
5697
|
getPipesInScope(component) {
|
|
5672
5698
|
const data = this.getScopeData(component);
|
|
@@ -5747,6 +5773,26 @@ var TemplateTypeCheckerImpl = class {
|
|
|
5747
5773
|
}
|
|
5748
5774
|
return scope.ngModule;
|
|
5749
5775
|
}
|
|
5776
|
+
getPotentialImportsFor(toImport, inContext) {
|
|
5777
|
+
var _a;
|
|
5778
|
+
let ngModuleRef;
|
|
5779
|
+
if (toImport.ngModule !== null) {
|
|
5780
|
+
ngModuleRef = (_a = this.metaReader.getNgModuleMetadata(new Reference(toImport.ngModule))) == null ? void 0 : _a.ref;
|
|
5781
|
+
}
|
|
5782
|
+
const importTarget = ngModuleRef != null ? ngModuleRef : toImport.ref;
|
|
5783
|
+
const emittedRef = this.refEmitter.emit(importTarget, inContext.getSourceFile());
|
|
5784
|
+
if (emittedRef.kind === 1)
|
|
5785
|
+
return [];
|
|
5786
|
+
const emittedExpression = emittedRef.expression;
|
|
5787
|
+
if (emittedExpression.value.moduleName === null || emittedExpression.value.name === null)
|
|
5788
|
+
return [];
|
|
5789
|
+
const preferredImport = {
|
|
5790
|
+
kind: ngModuleRef ? PotentialImportKind.NgModule : PotentialImportKind.Standalone,
|
|
5791
|
+
moduleSpecifier: emittedExpression.value.moduleName,
|
|
5792
|
+
symbolName: emittedExpression.value.name
|
|
5793
|
+
};
|
|
5794
|
+
return [preferredImport];
|
|
5795
|
+
}
|
|
5750
5796
|
getScopeData(component) {
|
|
5751
5797
|
if (this.scopeCache.has(component)) {
|
|
5752
5798
|
return this.scopeCache.get(component);
|
|
@@ -5767,25 +5813,10 @@ var TemplateTypeCheckerImpl = class {
|
|
|
5767
5813
|
const typeChecker = this.programDriver.getProgram().getTypeChecker();
|
|
5768
5814
|
for (const dep of dependencies) {
|
|
5769
5815
|
if (dep.kind === MetaKind.Directive) {
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
}
|
|
5773
|
-
const tsSymbol = typeChecker.getSymbolAtLocation(dep.ref.node.name);
|
|
5774
|
-
if (!isSymbolWithValueDeclaration(tsSymbol)) {
|
|
5816
|
+
const dirScope = this.scopeDataOfDirectiveMeta(typeChecker, dep);
|
|
5817
|
+
if (dirScope === null)
|
|
5775
5818
|
continue;
|
|
5776
|
-
}
|
|
5777
|
-
let ngModule = null;
|
|
5778
|
-
const moduleScopeOfDir = this.componentScopeReader.getScopeForComponent(dep.ref.node);
|
|
5779
|
-
if (moduleScopeOfDir !== null && moduleScopeOfDir.kind === ComponentScopeKind.NgModule) {
|
|
5780
|
-
ngModule = moduleScopeOfDir.ngModule;
|
|
5781
|
-
}
|
|
5782
|
-
data.directives.push({
|
|
5783
|
-
isComponent: dep.isComponent,
|
|
5784
|
-
isStructural: dep.isStructural,
|
|
5785
|
-
selector: dep.selector,
|
|
5786
|
-
tsSymbol,
|
|
5787
|
-
ngModule
|
|
5788
|
-
});
|
|
5819
|
+
data.directives.push({ ...dirScope, isInScope: true });
|
|
5789
5820
|
} else if (dep.kind === MetaKind.Pipe) {
|
|
5790
5821
|
const tsSymbol = typeChecker.getSymbolAtLocation(dep.ref.node.name);
|
|
5791
5822
|
if (tsSymbol === void 0) {
|
|
@@ -5793,13 +5824,36 @@ var TemplateTypeCheckerImpl = class {
|
|
|
5793
5824
|
}
|
|
5794
5825
|
data.pipes.push({
|
|
5795
5826
|
name: dep.name,
|
|
5796
|
-
tsSymbol
|
|
5827
|
+
tsSymbol,
|
|
5828
|
+
isInScope: true
|
|
5797
5829
|
});
|
|
5798
5830
|
}
|
|
5799
5831
|
}
|
|
5800
5832
|
this.scopeCache.set(component, data);
|
|
5801
5833
|
return data;
|
|
5802
5834
|
}
|
|
5835
|
+
scopeDataOfDirectiveMeta(typeChecker, dep) {
|
|
5836
|
+
if (dep.selector === null) {
|
|
5837
|
+
return null;
|
|
5838
|
+
}
|
|
5839
|
+
const tsSymbol = typeChecker.getSymbolAtLocation(dep.ref.node.name);
|
|
5840
|
+
if (!isSymbolWithValueDeclaration(tsSymbol)) {
|
|
5841
|
+
return null;
|
|
5842
|
+
}
|
|
5843
|
+
let ngModule = null;
|
|
5844
|
+
const moduleScopeOfDir = this.componentScopeReader.getScopeForComponent(dep.ref.node);
|
|
5845
|
+
if (moduleScopeOfDir !== null && moduleScopeOfDir.kind === ComponentScopeKind.NgModule) {
|
|
5846
|
+
ngModule = moduleScopeOfDir.ngModule;
|
|
5847
|
+
}
|
|
5848
|
+
return {
|
|
5849
|
+
ref: dep.ref,
|
|
5850
|
+
isComponent: dep.isComponent,
|
|
5851
|
+
isStructural: dep.isStructural,
|
|
5852
|
+
selector: dep.selector,
|
|
5853
|
+
tsSymbol,
|
|
5854
|
+
ngModule
|
|
5855
|
+
};
|
|
5856
|
+
}
|
|
5803
5857
|
};
|
|
5804
5858
|
function convertDiagnostic(diag, sourceResolver) {
|
|
5805
5859
|
if (!shouldReportDiagnostic(diag)) {
|
|
@@ -5887,10 +5941,10 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
5887
5941
|
}
|
|
5888
5942
|
};
|
|
5889
5943
|
|
|
5890
|
-
// bazel-out/
|
|
5944
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
5891
5945
|
import { TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
|
|
5892
5946
|
|
|
5893
|
-
// bazel-out/
|
|
5947
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
5894
5948
|
import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor3 } from "@angular/compiler";
|
|
5895
5949
|
var TemplateCheckWithVisitor = class {
|
|
5896
5950
|
run(ctx, component, template) {
|
|
@@ -5967,7 +6021,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor3 {
|
|
|
5967
6021
|
}
|
|
5968
6022
|
};
|
|
5969
6023
|
|
|
5970
|
-
// bazel-out/
|
|
6024
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
5971
6025
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
5972
6026
|
constructor() {
|
|
5973
6027
|
super(...arguments);
|
|
@@ -5992,7 +6046,7 @@ var factory = {
|
|
|
5992
6046
|
create: () => new InvalidBananaInBoxCheck()
|
|
5993
6047
|
};
|
|
5994
6048
|
|
|
5995
|
-
// bazel-out/
|
|
6049
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
5996
6050
|
import { TmplAstTemplate as TmplAstTemplate4 } from "@angular/compiler";
|
|
5997
6051
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
5998
6052
|
["ngIf", "NgIf"],
|
|
@@ -6037,7 +6091,7 @@ var factory2 = {
|
|
|
6037
6091
|
}
|
|
6038
6092
|
};
|
|
6039
6093
|
|
|
6040
|
-
// bazel-out/
|
|
6094
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
6041
6095
|
import { TmplAstTemplate as TmplAstTemplate5 } from "@angular/compiler";
|
|
6042
6096
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
6043
6097
|
constructor() {
|
|
@@ -6070,7 +6124,7 @@ var factory3 = {
|
|
|
6070
6124
|
create: () => new MissingNgForOfLetCheck()
|
|
6071
6125
|
};
|
|
6072
6126
|
|
|
6073
|
-
// bazel-out/
|
|
6127
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
6074
6128
|
import { Binary } from "@angular/compiler";
|
|
6075
6129
|
import ts29 from "typescript";
|
|
6076
6130
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -6115,7 +6169,7 @@ var factory4 = {
|
|
|
6115
6169
|
}
|
|
6116
6170
|
};
|
|
6117
6171
|
|
|
6118
|
-
// bazel-out/
|
|
6172
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
6119
6173
|
import { SafeCall as SafeCall2, SafeKeyedRead as SafeKeyedRead2, SafePropertyRead as SafePropertyRead5 } from "@angular/compiler";
|
|
6120
6174
|
import ts30 from "typescript";
|
|
6121
6175
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -6161,7 +6215,7 @@ var factory5 = {
|
|
|
6161
6215
|
}
|
|
6162
6216
|
};
|
|
6163
6217
|
|
|
6164
|
-
// bazel-out/
|
|
6218
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
6165
6219
|
import { TmplAstBoundAttribute as TmplAstBoundAttribute3 } from "@angular/compiler";
|
|
6166
6220
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
6167
6221
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -6185,7 +6239,7 @@ var factory6 = {
|
|
|
6185
6239
|
create: () => new SuffixNotSupportedCheck()
|
|
6186
6240
|
};
|
|
6187
6241
|
|
|
6188
|
-
// bazel-out/
|
|
6242
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
6189
6243
|
import { TmplAstTextAttribute as TmplAstTextAttribute4 } from "@angular/compiler";
|
|
6190
6244
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
6191
6245
|
constructor() {
|
|
@@ -6224,10 +6278,10 @@ var factory7 = {
|
|
|
6224
6278
|
create: () => new TextAttributeNotBindingSpec()
|
|
6225
6279
|
};
|
|
6226
6280
|
|
|
6227
|
-
// bazel-out/
|
|
6281
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
6228
6282
|
import ts31 from "typescript";
|
|
6229
6283
|
|
|
6230
|
-
// bazel-out/
|
|
6284
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
6231
6285
|
var DiagnosticCategoryLabel;
|
|
6232
6286
|
(function(DiagnosticCategoryLabel2) {
|
|
6233
6287
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -6235,7 +6289,7 @@ var DiagnosticCategoryLabel;
|
|
|
6235
6289
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
6236
6290
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
6237
6291
|
|
|
6238
|
-
// bazel-out/
|
|
6292
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
6239
6293
|
var ExtendedTemplateCheckerImpl = class {
|
|
6240
6294
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
6241
6295
|
var _a, _b, _c, _d, _e;
|
|
@@ -6288,7 +6342,7 @@ function assertNever(value) {
|
|
|
6288
6342
|
${value}`);
|
|
6289
6343
|
}
|
|
6290
6344
|
|
|
6291
|
-
// bazel-out/
|
|
6345
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
6292
6346
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
6293
6347
|
factory,
|
|
6294
6348
|
factory4,
|
|
@@ -6299,7 +6353,7 @@ var ALL_DIAGNOSTIC_FACTORIES = [
|
|
|
6299
6353
|
factory6
|
|
6300
6354
|
];
|
|
6301
6355
|
|
|
6302
|
-
// bazel-out/
|
|
6356
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
6303
6357
|
var CompilationTicketKind;
|
|
6304
6358
|
(function(CompilationTicketKind2) {
|
|
6305
6359
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -6781,6 +6835,7 @@ var NgCompiler = class {
|
|
|
6781
6835
|
]);
|
|
6782
6836
|
aliasingHost = new UnifiedModulesAliasingHost(this.adapter.unifiedModulesHost);
|
|
6783
6837
|
}
|
|
6838
|
+
const isCore = isAngularCorePackage(this.inputProgram);
|
|
6784
6839
|
const evaluator = new PartialEvaluator(reflector, checker, this.incrementalCompilation.depGraph);
|
|
6785
6840
|
const dtsReader = new DtsMetadataReader(checker, reflector);
|
|
6786
6841
|
const localMetaRegistry = new LocalMetadataRegistry();
|
|
@@ -6792,7 +6847,7 @@ var NgCompiler = class {
|
|
|
6792
6847
|
const scopeReader = new CompoundComponentScopeReader([ngModuleScopeRegistry, standaloneScopeReader]);
|
|
6793
6848
|
const semanticDepGraphUpdater = this.incrementalCompilation.semanticDepGraphUpdater;
|
|
6794
6849
|
const metaRegistry = new CompoundMetadataRegistry([localMetaRegistry, ngModuleScopeRegistry]);
|
|
6795
|
-
const injectableRegistry = new InjectableClassRegistry(reflector);
|
|
6850
|
+
const injectableRegistry = new InjectableClassRegistry(reflector, isCore);
|
|
6796
6851
|
const hostDirectivesResolver = new HostDirectivesResolver(metaReader);
|
|
6797
6852
|
const typeCheckScopeRegistry = new TypeCheckScopeRegistry(scopeReader, metaReader, hostDirectivesResolver);
|
|
6798
6853
|
let referencesRegistry;
|
|
@@ -6804,15 +6859,15 @@ var NgCompiler = class {
|
|
|
6804
6859
|
referencesRegistry = new NoopReferencesRegistry();
|
|
6805
6860
|
}
|
|
6806
6861
|
const dtsTransforms = new DtsTransformRegistry();
|
|
6807
|
-
const isCore = isAngularCorePackage(this.inputProgram);
|
|
6808
6862
|
const resourceRegistry = new ResourceRegistry();
|
|
6809
6863
|
const compilationMode = this.options.compilationMode === "partial" && !isCore ? CompilationMode.PARTIAL : CompilationMode.FULL;
|
|
6810
6864
|
const cycleHandlingStrategy = compilationMode === CompilationMode.FULL ? 0 : 1;
|
|
6865
|
+
const strictCtorDeps = this.options.strictInjectionParameters || false;
|
|
6811
6866
|
const handlers = [
|
|
6812
|
-
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),
|
|
6813
|
-
new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, isCore, semanticDepGraphUpdater, this.closureCompilerEnabled, false, this.delegatingPerfRecorder),
|
|
6867
|
+
new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, depScopeReader, ngModuleScopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, 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),
|
|
6868
|
+
new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, false, this.delegatingPerfRecorder),
|
|
6814
6869
|
new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder),
|
|
6815
|
-
new InjectableDecoratorHandler(reflector, isCore,
|
|
6870
|
+
new InjectableDecoratorHandler(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, this.delegatingPerfRecorder),
|
|
6816
6871
|
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)
|
|
6817
6872
|
];
|
|
6818
6873
|
const traitCompiler = new TraitCompiler(handlers, reflector, this.delegatingPerfRecorder, this.incrementalCompilation, this.options.compileNonExportedClasses !== false, compilationMode, dtsTransforms, semanticDepGraphUpdater, this.adapter);
|
|
@@ -6820,7 +6875,7 @@ var NgCompiler = class {
|
|
|
6820
6875
|
this.incrementalStrategy.setIncrementalState(this.incrementalCompilation.state, program);
|
|
6821
6876
|
this.currentProgram = program;
|
|
6822
6877
|
});
|
|
6823
|
-
const templateTypeChecker = new TemplateTypeCheckerImpl(this.inputProgram, notifyingDriver, traitCompiler, this.getTypeCheckingConfig(), refEmitter, reflector, this.adapter, this.incrementalCompilation, metaReader, scopeReader, typeCheckScopeRegistry, this.delegatingPerfRecorder);
|
|
6878
|
+
const templateTypeChecker = new TemplateTypeCheckerImpl(this.inputProgram, notifyingDriver, traitCompiler, this.getTypeCheckingConfig(), refEmitter, reflector, this.adapter, this.incrementalCompilation, metaReader, localMetaReader, scopeReader, typeCheckScopeRegistry, this.delegatingPerfRecorder);
|
|
6824
6879
|
const extendedTemplateChecker = this.constructionDiagnostics.length === 0 ? new ExtendedTemplateCheckerImpl(templateTypeChecker, checker, ALL_DIAGNOSTIC_FACTORIES, this.options) : null;
|
|
6825
6880
|
return {
|
|
6826
6881
|
isCore,
|
|
@@ -7000,7 +7055,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
7000
7055
|
return versions;
|
|
7001
7056
|
}
|
|
7002
7057
|
|
|
7003
|
-
// bazel-out/
|
|
7058
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
7004
7059
|
import ts33 from "typescript";
|
|
7005
7060
|
var DelegatingCompilerHost2 = class {
|
|
7006
7061
|
constructor(delegate) {
|
|
@@ -7031,6 +7086,7 @@ var DelegatingCompilerHost2 = class {
|
|
|
7031
7086
|
this.useCaseSensitiveFileNames = this.delegateMethod("useCaseSensitiveFileNames");
|
|
7032
7087
|
this.writeFile = this.delegateMethod("writeFile");
|
|
7033
7088
|
this.getModuleResolutionCache = this.delegateMethod("getModuleResolutionCache");
|
|
7089
|
+
this.hasInvalidatedResolutions = this.delegateMethod("hasInvalidatedResolutions");
|
|
7034
7090
|
}
|
|
7035
7091
|
delegateMethod(name) {
|
|
7036
7092
|
return this.delegate[name] !== void 0 ? this.delegate[name].bind(this.delegate) : void 0;
|
|
@@ -7144,7 +7200,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
7144
7200
|
}
|
|
7145
7201
|
};
|
|
7146
7202
|
|
|
7147
|
-
// bazel-out/
|
|
7203
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
7148
7204
|
var NgtscProgram = class {
|
|
7149
7205
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
7150
7206
|
this.options = options;
|
|
@@ -7353,15 +7409,15 @@ function mergeEmitResults(emitResults) {
|
|
|
7353
7409
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
7354
7410
|
}
|
|
7355
7411
|
|
|
7356
|
-
// bazel-out/
|
|
7412
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
7357
7413
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
7358
7414
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
7359
7415
|
}
|
|
7360
7416
|
|
|
7361
|
-
// bazel-out/
|
|
7417
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
7362
7418
|
import ts36 from "typescript";
|
|
7363
7419
|
|
|
7364
|
-
// bazel-out/
|
|
7420
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
7365
7421
|
import ts35 from "typescript";
|
|
7366
7422
|
function createMessageDiagnostic(messageText) {
|
|
7367
7423
|
return {
|
|
@@ -7375,7 +7431,7 @@ function createMessageDiagnostic(messageText) {
|
|
|
7375
7431
|
};
|
|
7376
7432
|
}
|
|
7377
7433
|
|
|
7378
|
-
// bazel-out/
|
|
7434
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
7379
7435
|
var defaultFormatHost = {
|
|
7380
7436
|
getCurrentDirectory: () => ts36.sys.getCurrentDirectory(),
|
|
7381
7437
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -7588,4 +7644,4 @@ export {
|
|
|
7588
7644
|
* found in the LICENSE file at https://angular.io/license
|
|
7589
7645
|
*/
|
|
7590
7646
|
// Closure Compiler ignores @suppress and similar if the comment contains @license.
|
|
7591
|
-
//# sourceMappingURL=chunk-
|
|
7647
|
+
//# sourceMappingURL=chunk-2LFNJ4YC.js.map
|