@angular/compiler-cli 14.1.0-next.3 → 14.1.0-next.4
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-5K2JLFXT.js → chunk-2IMT6JFI.js} +6 -6
- package/bundles/{chunk-5K2JLFXT.js.map → chunk-2IMT6JFI.js.map} +0 -0
- package/bundles/{chunk-DPA2FBDE.js → chunk-JRBVL2HZ.js} +28 -26
- package/bundles/chunk-JRBVL2HZ.js.map +6 -0
- package/bundles/{chunk-EIL2D5BG.js → chunk-JXRNV3VY.js} +40 -40
- package/bundles/{chunk-EIL2D5BG.js.map → chunk-JXRNV3VY.js.map} +0 -0
- package/bundles/{chunk-OCR5YQMJ.js → chunk-K4XEMWX4.js} +137 -97
- package/bundles/{chunk-OCR5YQMJ.js.map → chunk-K4XEMWX4.js.map} +2 -2
- package/bundles/{chunk-ZCDB56AX.js → chunk-LX5Q27EF.js} +3 -3
- package/bundles/{chunk-ZCDB56AX.js.map → chunk-LX5Q27EF.js.map} +0 -0
- package/bundles/{chunk-CHS76256.js → chunk-NJ7YQMH6.js} +70 -70
- package/bundles/{chunk-CHS76256.js.map → chunk-NJ7YQMH6.js.map} +0 -0
- package/bundles/{chunk-BRHP6XKM.js → chunk-OLGEBPBY.js} +4 -4
- package/bundles/{chunk-BRHP6XKM.js.map → chunk-OLGEBPBY.js.map} +0 -0
- package/bundles/{chunk-2WG4XIQ4.js → chunk-QEIAOLAL.js} +5 -5
- package/bundles/{chunk-2WG4XIQ4.js.map → chunk-QEIAOLAL.js.map} +0 -0
- package/bundles/{chunk-SJL5HBUW.js → chunk-R3C7RFJ4.js} +2 -2
- package/bundles/{chunk-SJL5HBUW.js.map → chunk-R3C7RFJ4.js.map} +0 -0
- package/bundles/{chunk-LC26KH5A.js → chunk-R4NY3TJC.js} +5 -5
- package/bundles/{chunk-LC26KH5A.js.map → chunk-R4NY3TJC.js.map} +0 -0
- package/bundles/{chunk-DOITZI4O.js → chunk-RUNC33XY.js} +69 -69
- package/bundles/{chunk-DOITZI4O.js.map → chunk-RUNC33XY.js.map} +0 -0
- package/bundles/{chunk-TD64C4QJ.js → chunk-T7MYRXIE.js} +7 -7
- package/bundles/{chunk-TD64C4QJ.js.map → chunk-T7MYRXIE.js.map} +0 -0
- package/bundles/{chunk-SOSZHK6P.js → chunk-TUMJDJFX.js} +31 -31
- package/bundles/{chunk-SOSZHK6P.js.map → chunk-TUMJDJFX.js.map} +0 -0
- package/bundles/{chunk-TV7VZNWL.js → chunk-W6KM7BUM.js} +6 -6
- package/bundles/{chunk-TV7VZNWL.js.map → chunk-W6KM7BUM.js.map} +0 -0
- package/bundles/{chunk-WH4QSABR.js → chunk-WGBFSDVQ.js} +7 -7
- package/bundles/{chunk-WH4QSABR.js.map → chunk-WGBFSDVQ.js.map} +0 -0
- package/bundles/index.js +12 -12
- package/bundles/linker/babel/index.js +12 -12
- package/bundles/linker/index.js +4 -4
- package/bundles/ngcc/index.js +12 -12
- package/bundles/ngcc/main-ngcc.js +13 -13
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +13 -13
- package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +4 -4
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +5 -5
- package/bundles/private/tooling.js +2 -2
- package/bundles/src/bin/ng_xi18n.js +10 -10
- package/bundles/src/bin/ngc.js +8 -8
- package/bundles_metadata.json +1 -1
- package/ngcc/src/packages/build_marker.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/diagnostics/src/error_code.d.ts +16 -0
- package/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.d.ts +2 -1
- package/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.d.ts +11 -0
- package/bundles/chunk-DPA2FBDE.js.map +0 -6
|
@@ -30,11 +30,11 @@ import {
|
|
|
30
30
|
aliasTransformFactory,
|
|
31
31
|
declarationTransformFactory,
|
|
32
32
|
ivyTransformFactory
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-RUNC33XY.js";
|
|
34
34
|
import {
|
|
35
35
|
TypeScriptReflectionHost,
|
|
36
36
|
isNamedClassDeclaration
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-2IMT6JFI.js";
|
|
38
38
|
import {
|
|
39
39
|
AbsoluteModuleStrategy,
|
|
40
40
|
AliasStrategy,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
toUnredirectedSourceFile,
|
|
74
74
|
translateExpression,
|
|
75
75
|
translateType
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-JRBVL2HZ.js";
|
|
77
77
|
import {
|
|
78
78
|
LogicalFileSystem,
|
|
79
79
|
absoluteFrom,
|
|
@@ -84,20 +84,20 @@ import {
|
|
|
84
84
|
getSourceFileOrError,
|
|
85
85
|
join,
|
|
86
86
|
resolve
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-T7MYRXIE.js";
|
|
88
88
|
import {
|
|
89
89
|
ActivePerfRecorder,
|
|
90
90
|
DelegatingPerfRecorder,
|
|
91
91
|
PerfCheckpoint,
|
|
92
92
|
PerfEvent,
|
|
93
93
|
PerfPhase
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-R4NY3TJC.js";
|
|
95
95
|
import {
|
|
96
96
|
__spreadProps,
|
|
97
97
|
__spreadValues
|
|
98
98
|
} from "./chunk-GMSUYBZP.js";
|
|
99
99
|
|
|
100
|
-
// bazel-out/
|
|
100
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
101
101
|
var DEFAULT_ERROR_CODE = 100;
|
|
102
102
|
var UNKNOWN_ERROR_CODE = 500;
|
|
103
103
|
var SOURCE = "angular";
|
|
@@ -115,7 +115,7 @@ var EmitFlags;
|
|
|
115
115
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
116
116
|
})(EmitFlags || (EmitFlags = {}));
|
|
117
117
|
|
|
118
|
-
// bazel-out/
|
|
118
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
119
119
|
import ts from "typescript";
|
|
120
120
|
var wrapHostForTest = null;
|
|
121
121
|
function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, true) }) {
|
|
@@ -125,21 +125,21 @@ function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, t
|
|
|
125
125
|
return tsHost;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
// bazel-out/
|
|
128
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
129
129
|
var OptimizeFor;
|
|
130
130
|
(function(OptimizeFor2) {
|
|
131
131
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
132
132
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
133
133
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
134
134
|
|
|
135
|
-
// bazel-out/
|
|
135
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
136
136
|
var CompletionKind;
|
|
137
137
|
(function(CompletionKind2) {
|
|
138
138
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
139
139
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
140
140
|
})(CompletionKind || (CompletionKind = {}));
|
|
141
141
|
|
|
142
|
-
// bazel-out/
|
|
142
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
143
143
|
var SymbolKind;
|
|
144
144
|
(function(SymbolKind2) {
|
|
145
145
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -155,11 +155,11 @@ var SymbolKind;
|
|
|
155
155
|
SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
|
|
156
156
|
})(SymbolKind || (SymbolKind = {}));
|
|
157
157
|
|
|
158
|
-
// bazel-out/
|
|
158
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
159
159
|
import { HtmlParser, MessageBundle } from "@angular/compiler";
|
|
160
160
|
import ts33 from "typescript";
|
|
161
161
|
|
|
162
|
-
// bazel-out/
|
|
162
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
163
163
|
import { Xliff, Xliff2, Xmb } from "@angular/compiler";
|
|
164
164
|
import * as path from "path";
|
|
165
165
|
function i18nGetExtension(formatName) {
|
|
@@ -210,10 +210,10 @@ function getPathNormalizer(basePath) {
|
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
// bazel-out/
|
|
213
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
214
214
|
import ts2 from "typescript";
|
|
215
215
|
|
|
216
|
-
// bazel-out/
|
|
216
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
217
217
|
function toNumbers(value) {
|
|
218
218
|
const suffixIndex = value.lastIndexOf("-");
|
|
219
219
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -248,7 +248,7 @@ function compareVersions(v1, v2) {
|
|
|
248
248
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
// bazel-out/
|
|
251
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
252
252
|
var MIN_TS_VERSION = "4.6.2";
|
|
253
253
|
var MAX_TS_VERSION = "4.8.0";
|
|
254
254
|
var tsVersion = ts2.version;
|
|
@@ -261,10 +261,10 @@ function verifySupportedTypeScriptVersion() {
|
|
|
261
261
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
// bazel-out/
|
|
264
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
265
265
|
import ts31 from "typescript";
|
|
266
266
|
|
|
267
|
-
// bazel-out/
|
|
267
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
268
268
|
var CycleAnalyzer = class {
|
|
269
269
|
constructor(importGraph) {
|
|
270
270
|
this.importGraph = importGraph;
|
|
@@ -335,7 +335,7 @@ var Cycle = class {
|
|
|
335
335
|
}
|
|
336
336
|
};
|
|
337
337
|
|
|
338
|
-
// bazel-out/
|
|
338
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
339
339
|
import ts3 from "typescript";
|
|
340
340
|
var ImportGraph = class {
|
|
341
341
|
constructor(checker, perf) {
|
|
@@ -427,7 +427,7 @@ var Found = class {
|
|
|
427
427
|
}
|
|
428
428
|
};
|
|
429
429
|
|
|
430
|
-
// bazel-out/
|
|
430
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
431
431
|
import ts4 from "typescript";
|
|
432
432
|
var FlatIndexGenerator = class {
|
|
433
433
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -452,7 +452,7 @@ export * from '${relativeEntryPoint}';
|
|
|
452
452
|
}
|
|
453
453
|
};
|
|
454
454
|
|
|
455
|
-
// bazel-out/
|
|
455
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
456
456
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
457
457
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
458
458
|
let resolvedEntryPoint = null;
|
|
@@ -468,7 +468,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
468
468
|
return resolvedEntryPoint;
|
|
469
469
|
}
|
|
470
470
|
|
|
471
|
-
// bazel-out/
|
|
471
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
472
472
|
import ts5 from "typescript";
|
|
473
473
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
474
474
|
const diagnostics = [];
|
|
@@ -548,7 +548,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
|
|
551
|
-
// bazel-out/
|
|
551
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
552
552
|
var ReferenceGraph = class {
|
|
553
553
|
constructor() {
|
|
554
554
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -602,7 +602,7 @@ var ReferenceGraph = class {
|
|
|
602
602
|
}
|
|
603
603
|
};
|
|
604
604
|
|
|
605
|
-
// bazel-out/
|
|
605
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
606
606
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
607
607
|
var UpdateMode;
|
|
608
608
|
(function(UpdateMode2) {
|
|
@@ -610,13 +610,13 @@ var UpdateMode;
|
|
|
610
610
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
611
611
|
})(UpdateMode || (UpdateMode = {}));
|
|
612
612
|
|
|
613
|
-
// bazel-out/
|
|
613
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
614
614
|
import ts9 from "typescript";
|
|
615
615
|
|
|
616
|
-
// bazel-out/
|
|
616
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
617
617
|
import ts6 from "typescript";
|
|
618
618
|
|
|
619
|
-
// bazel-out/
|
|
619
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
620
620
|
var NgExtension = Symbol("NgExtension");
|
|
621
621
|
function isExtended(sf) {
|
|
622
622
|
return sf[NgExtension] !== void 0;
|
|
@@ -676,7 +676,7 @@ function retagTsFile(sf) {
|
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
678
|
|
|
679
|
-
// bazel-out/
|
|
679
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
680
680
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
681
681
|
function makeShimFileName(fileName, suffix) {
|
|
682
682
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
@@ -691,7 +691,7 @@ function generatedModuleName(originalModuleName, originalFileName, genSuffix) {
|
|
|
691
691
|
return moduleName;
|
|
692
692
|
}
|
|
693
693
|
|
|
694
|
-
// bazel-out/
|
|
694
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
695
695
|
var ShimAdapter = class {
|
|
696
696
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
697
697
|
this.delegate = delegate;
|
|
@@ -788,7 +788,7 @@ var ShimAdapter = class {
|
|
|
788
788
|
}
|
|
789
789
|
};
|
|
790
790
|
|
|
791
|
-
// bazel-out/
|
|
791
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
|
|
792
792
|
import ts7 from "typescript";
|
|
793
793
|
var TS_DTS_SUFFIX = /(\.d)?\.ts$/;
|
|
794
794
|
var STRIP_NG_FACTORY = /(.*)NgFactory$/;
|
|
@@ -935,7 +935,7 @@ function updateInitializers(stmt, update) {
|
|
|
935
935
|
return ts7.factory.updateVariableStatement(stmt, stmt.modifiers, ts7.factory.updateVariableDeclarationList(stmt.declarationList, stmt.declarationList.declarations.map((decl) => ts7.updateVariableDeclaration(decl, decl.name, decl.type, update(decl.initializer)))));
|
|
936
936
|
}
|
|
937
937
|
|
|
938
|
-
// bazel-out/
|
|
938
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
939
939
|
var ShimReferenceTagger = class {
|
|
940
940
|
constructor(shimExtensions) {
|
|
941
941
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -969,7 +969,7 @@ var ShimReferenceTagger = class {
|
|
|
969
969
|
}
|
|
970
970
|
};
|
|
971
971
|
|
|
972
|
-
// bazel-out/
|
|
972
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
|
|
973
973
|
import ts8 from "typescript";
|
|
974
974
|
var SummaryGenerator = class {
|
|
975
975
|
constructor() {
|
|
@@ -1009,7 +1009,7 @@ function isExported2(decl) {
|
|
|
1009
1009
|
return decl.modifiers !== void 0 && decl.modifiers.some((mod) => mod.kind == ts8.SyntaxKind.ExportKeyword);
|
|
1010
1010
|
}
|
|
1011
1011
|
|
|
1012
|
-
// bazel-out/
|
|
1012
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
1013
1013
|
var DelegatingCompilerHost = class {
|
|
1014
1014
|
constructor(delegate) {
|
|
1015
1015
|
this.delegate = delegate;
|
|
@@ -1119,7 +1119,7 @@ var TsCreateProgramDriver = class {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
};
|
|
1121
1121
|
|
|
1122
|
-
// bazel-out/
|
|
1122
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
1123
1123
|
var FileDependencyGraph = class {
|
|
1124
1124
|
constructor() {
|
|
1125
1125
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -1186,7 +1186,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
1186
1186
|
return false;
|
|
1187
1187
|
}
|
|
1188
1188
|
|
|
1189
|
-
// bazel-out/
|
|
1189
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
1190
1190
|
var IncrementalStateKind;
|
|
1191
1191
|
(function(IncrementalStateKind2) {
|
|
1192
1192
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -1194,7 +1194,7 @@ var IncrementalStateKind;
|
|
|
1194
1194
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
1195
1195
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
1196
1196
|
|
|
1197
|
-
// bazel-out/
|
|
1197
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
1198
1198
|
var PhaseKind;
|
|
1199
1199
|
(function(PhaseKind2) {
|
|
1200
1200
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -1395,7 +1395,7 @@ function toOriginalSourceFile(sf) {
|
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
1397
|
|
|
1398
|
-
// bazel-out/
|
|
1398
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
1399
1399
|
var TrackedIncrementalBuildStrategy = class {
|
|
1400
1400
|
constructor() {
|
|
1401
1401
|
this.state = null;
|
|
@@ -1431,7 +1431,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
|
|
|
1431
1431
|
};
|
|
1432
1432
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
1433
1433
|
|
|
1434
|
-
// bazel-out/
|
|
1434
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
1435
1435
|
var IdentifierKind;
|
|
1436
1436
|
(function(IdentifierKind2) {
|
|
1437
1437
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -1449,7 +1449,7 @@ var AbsoluteSourceSpan = class {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
};
|
|
1451
1451
|
|
|
1452
|
-
// bazel-out/
|
|
1452
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
1453
1453
|
var IndexingContext = class {
|
|
1454
1454
|
constructor() {
|
|
1455
1455
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -1459,10 +1459,10 @@ var IndexingContext = class {
|
|
|
1459
1459
|
}
|
|
1460
1460
|
};
|
|
1461
1461
|
|
|
1462
|
-
// bazel-out/
|
|
1462
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1463
1463
|
import { ParseSourceFile } from "@angular/compiler";
|
|
1464
1464
|
|
|
1465
|
-
// bazel-out/
|
|
1465
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
1466
1466
|
import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate } from "@angular/compiler";
|
|
1467
1467
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
1468
1468
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
@@ -1699,7 +1699,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
1699
1699
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
1700
1700
|
}
|
|
1701
1701
|
|
|
1702
|
-
// bazel-out/
|
|
1702
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1703
1703
|
function generateAnalysis(context) {
|
|
1704
1704
|
const analysis = /* @__PURE__ */ new Map();
|
|
1705
1705
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -1735,7 +1735,7 @@ function generateAnalysis(context) {
|
|
|
1735
1735
|
return analysis;
|
|
1736
1736
|
}
|
|
1737
1737
|
|
|
1738
|
-
// bazel-out/
|
|
1738
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
1739
1739
|
import ts10 from "typescript";
|
|
1740
1740
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
1741
1741
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -1881,7 +1881,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
1881
1881
|
};
|
|
1882
1882
|
}
|
|
1883
1883
|
|
|
1884
|
-
// bazel-out/
|
|
1884
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
1885
1885
|
var StandaloneComponentScopeReader = class {
|
|
1886
1886
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
1887
1887
|
this.metaReader = metaReader;
|
|
@@ -1959,10 +1959,10 @@ var StandaloneComponentScopeReader = class {
|
|
|
1959
1959
|
}
|
|
1960
1960
|
};
|
|
1961
1961
|
|
|
1962
|
-
// bazel-out/
|
|
1962
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
1963
1963
|
import { CssSelector, DomElementSchemaRegistry as DomElementSchemaRegistry2 } from "@angular/compiler";
|
|
1964
1964
|
|
|
1965
|
-
// bazel-out/
|
|
1965
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
1966
1966
|
import ts11 from "typescript";
|
|
1967
1967
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
1968
1968
|
if (mapping.type === "direct") {
|
|
@@ -2035,7 +2035,7 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
|
|
|
2035
2035
|
}
|
|
2036
2036
|
}
|
|
2037
2037
|
|
|
2038
|
-
// bazel-out/
|
|
2038
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
2039
2039
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
2040
2040
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
2041
2041
|
function getTemplateId(clazz) {
|
|
@@ -2052,11 +2052,11 @@ function allocateTemplateId(sf) {
|
|
|
2052
2052
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
2053
2053
|
}
|
|
2054
2054
|
|
|
2055
|
-
// bazel-out/
|
|
2055
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2056
2056
|
import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
|
|
2057
2057
|
import ts13 from "typescript";
|
|
2058
2058
|
|
|
2059
|
-
// bazel-out/
|
|
2059
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
2060
2060
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
|
|
2061
2061
|
import ts12 from "typescript";
|
|
2062
2062
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
@@ -2176,7 +2176,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
2176
2176
|
}) || false;
|
|
2177
2177
|
}
|
|
2178
2178
|
|
|
2179
|
-
// bazel-out/
|
|
2179
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2180
2180
|
var CompletionEngine = class {
|
|
2181
2181
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
2182
2182
|
this.tcb = tcb;
|
|
@@ -2333,10 +2333,10 @@ var CompletionEngine = class {
|
|
|
2333
2333
|
}
|
|
2334
2334
|
};
|
|
2335
2335
|
|
|
2336
|
-
// bazel-out/
|
|
2336
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
2337
2337
|
import ts27 from "typescript";
|
|
2338
2338
|
|
|
2339
|
-
// bazel-out/
|
|
2339
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
2340
2340
|
import { DomElementSchemaRegistry } from "@angular/compiler";
|
|
2341
2341
|
import ts14 from "typescript";
|
|
2342
2342
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
@@ -2389,11 +2389,11 @@ var RegistryDomSchemaChecker = class {
|
|
|
2389
2389
|
}
|
|
2390
2390
|
};
|
|
2391
2391
|
|
|
2392
|
-
// bazel-out/
|
|
2392
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
2393
2393
|
import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
|
|
2394
2394
|
import ts20 from "typescript";
|
|
2395
2395
|
|
|
2396
|
-
// bazel-out/
|
|
2396
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
2397
2397
|
import ts15 from "typescript";
|
|
2398
2398
|
var PARSED_TS_VERSION = parseFloat(ts15.versionMajorMinor);
|
|
2399
2399
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
@@ -2444,16 +2444,16 @@ function isAccessExpression(node) {
|
|
|
2444
2444
|
return ts15.isPropertyAccessExpression(node) || ts15.isElementAccessExpression(node);
|
|
2445
2445
|
}
|
|
2446
2446
|
|
|
2447
|
-
// bazel-out/
|
|
2447
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
2448
2448
|
import ts19 from "typescript";
|
|
2449
2449
|
|
|
2450
|
-
// bazel-out/
|
|
2450
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
2451
2451
|
import ts18 from "typescript";
|
|
2452
2452
|
|
|
2453
|
-
// bazel-out/
|
|
2453
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
2454
2454
|
import ts17 from "typescript";
|
|
2455
2455
|
|
|
2456
|
-
// bazel-out/
|
|
2456
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
|
|
2457
2457
|
import ts16 from "typescript";
|
|
2458
2458
|
var INELIGIBLE = {};
|
|
2459
2459
|
function canEmitType(type, canEmit) {
|
|
@@ -2515,7 +2515,7 @@ var TypeEmitter = class {
|
|
|
2515
2515
|
}
|
|
2516
2516
|
};
|
|
2517
2517
|
|
|
2518
|
-
// bazel-out/
|
|
2518
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
2519
2519
|
var TypeParameterEmitter = class {
|
|
2520
2520
|
constructor(typeParameters, reflector) {
|
|
2521
2521
|
this.typeParameters = typeParameters;
|
|
@@ -2592,7 +2592,7 @@ var TypeParameterEmitter = class {
|
|
|
2592
2592
|
}
|
|
2593
2593
|
};
|
|
2594
2594
|
|
|
2595
|
-
// bazel-out/
|
|
2595
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
2596
2596
|
var TcbInliningRequirement;
|
|
2597
2597
|
(function(TcbInliningRequirement2) {
|
|
2598
2598
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -2672,7 +2672,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
2672
2672
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
2673
2673
|
}
|
|
2674
2674
|
|
|
2675
|
-
// bazel-out/
|
|
2675
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
2676
2676
|
function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
2677
2677
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
2678
2678
|
const rawType = ts19.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -2743,7 +2743,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
2743
2743
|
});
|
|
2744
2744
|
}
|
|
2745
2745
|
|
|
2746
|
-
// bazel-out/
|
|
2746
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
2747
2747
|
var Environment = class {
|
|
2748
2748
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
2749
2749
|
this.config = config;
|
|
@@ -2835,7 +2835,7 @@ var Environment = class {
|
|
|
2835
2835
|
}
|
|
2836
2836
|
};
|
|
2837
2837
|
|
|
2838
|
-
// bazel-out/
|
|
2838
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
2839
2839
|
import { TmplAstElement as TmplAstElement2 } from "@angular/compiler";
|
|
2840
2840
|
import ts21 from "typescript";
|
|
2841
2841
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
@@ -2967,7 +2967,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
2967
2967
|
});
|
|
2968
2968
|
}
|
|
2969
2969
|
|
|
2970
|
-
// bazel-out/
|
|
2970
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
2971
2971
|
import ts22 from "typescript";
|
|
2972
2972
|
var TypeCheckShimGenerator = class {
|
|
2973
2973
|
constructor() {
|
|
@@ -2985,11 +2985,11 @@ var TypeCheckShimGenerator = class {
|
|
|
2985
2985
|
}
|
|
2986
2986
|
};
|
|
2987
2987
|
|
|
2988
|
-
// bazel-out/
|
|
2988
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
2989
2989
|
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";
|
|
2990
2990
|
import ts25 from "typescript";
|
|
2991
2991
|
|
|
2992
|
-
// bazel-out/
|
|
2992
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
2993
2993
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
|
|
2994
2994
|
import ts23 from "typescript";
|
|
2995
2995
|
function wrapForDiagnostics(expr) {
|
|
@@ -3035,7 +3035,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
3035
3035
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
3036
3036
|
}
|
|
3037
3037
|
|
|
3038
|
-
// bazel-out/
|
|
3038
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
3039
3039
|
import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
|
|
3040
3040
|
import ts24 from "typescript";
|
|
3041
3041
|
var NULL_AS_ANY = ts24.factory.createAsExpression(ts24.factory.createNull(), ts24.factory.createKeywordTypeNode(ts24.SyntaxKind.AnyKeyword));
|
|
@@ -3365,7 +3365,7 @@ var VeSafeLhsInferenceBugDetector = class {
|
|
|
3365
3365
|
};
|
|
3366
3366
|
VeSafeLhsInferenceBugDetector.SINGLETON = new VeSafeLhsInferenceBugDetector();
|
|
3367
3367
|
|
|
3368
|
-
// bazel-out/
|
|
3368
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
3369
3369
|
import { ImplicitReceiver as ImplicitReceiver3, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstVariable } from "@angular/compiler";
|
|
3370
3370
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
3371
3371
|
constructor(templateId, boundTarget, oob) {
|
|
@@ -3389,7 +3389,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
|
3389
3389
|
}
|
|
3390
3390
|
};
|
|
3391
3391
|
|
|
3392
|
-
// bazel-out/
|
|
3392
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
3393
3393
|
var TcbGenericContextBehavior;
|
|
3394
3394
|
(function(TcbGenericContextBehavior2) {
|
|
3395
3395
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -4440,7 +4440,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
|
|
|
4440
4440
|
}
|
|
4441
4441
|
};
|
|
4442
4442
|
|
|
4443
|
-
// bazel-out/
|
|
4443
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
4444
4444
|
import ts26 from "typescript";
|
|
4445
4445
|
var TypeCheckFile = class extends Environment {
|
|
4446
4446
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -4476,7 +4476,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
4476
4476
|
}
|
|
4477
4477
|
};
|
|
4478
4478
|
|
|
4479
|
-
// bazel-out/
|
|
4479
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
4480
4480
|
var InliningMode;
|
|
4481
4481
|
(function(InliningMode2) {
|
|
4482
4482
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -4707,10 +4707,10 @@ function splitStringAtPoints(str, points) {
|
|
|
4707
4707
|
return splits;
|
|
4708
4708
|
}
|
|
4709
4709
|
|
|
4710
|
-
// bazel-out/
|
|
4710
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
4711
4711
|
import { ParseLocation, ParseSourceSpan } from "@angular/compiler";
|
|
4712
4712
|
|
|
4713
|
-
// bazel-out/
|
|
4713
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
4714
4714
|
var LF_CHAR = 10;
|
|
4715
4715
|
var CR_CHAR = 13;
|
|
4716
4716
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -4751,7 +4751,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
4751
4751
|
return low - 1;
|
|
4752
4752
|
}
|
|
4753
4753
|
|
|
4754
|
-
// bazel-out/
|
|
4754
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
4755
4755
|
var TemplateSource = class {
|
|
4756
4756
|
constructor(mapping, file) {
|
|
4757
4757
|
this.mapping = mapping;
|
|
@@ -4802,7 +4802,7 @@ var TemplateSourceManager = class {
|
|
|
4802
4802
|
}
|
|
4803
4803
|
};
|
|
4804
4804
|
|
|
4805
|
-
// bazel-out/
|
|
4805
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
4806
4806
|
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";
|
|
4807
4807
|
import ts28 from "typescript";
|
|
4808
4808
|
var SymbolBuilder = class {
|
|
@@ -5242,7 +5242,7 @@ function sourceSpanEqual(a, b) {
|
|
|
5242
5242
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
5243
5243
|
}
|
|
5244
5244
|
|
|
5245
|
-
// bazel-out/
|
|
5245
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
5246
5246
|
var REGISTRY2 = new DomElementSchemaRegistry2();
|
|
5247
5247
|
var TemplateTypeCheckerImpl = class {
|
|
5248
5248
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -5778,10 +5778,10 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
5778
5778
|
}
|
|
5779
5779
|
};
|
|
5780
5780
|
|
|
5781
|
-
// bazel-out/
|
|
5781
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
5782
5782
|
import { TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
|
|
5783
5783
|
|
|
5784
|
-
// bazel-out/
|
|
5784
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
5785
5785
|
import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor3 } from "@angular/compiler";
|
|
5786
5786
|
var TemplateCheckWithVisitor = class {
|
|
5787
5787
|
run(ctx, component, template) {
|
|
@@ -5858,7 +5858,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor3 {
|
|
|
5858
5858
|
}
|
|
5859
5859
|
};
|
|
5860
5860
|
|
|
5861
|
-
// bazel-out/
|
|
5861
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
5862
5862
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
5863
5863
|
constructor() {
|
|
5864
5864
|
super(...arguments);
|
|
@@ -5883,7 +5883,7 @@ var factory = {
|
|
|
5883
5883
|
create: () => new InvalidBananaInBoxCheck()
|
|
5884
5884
|
};
|
|
5885
5885
|
|
|
5886
|
-
// bazel-out/
|
|
5886
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
5887
5887
|
import { TmplAstTemplate as TmplAstTemplate4 } from "@angular/compiler";
|
|
5888
5888
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Set(["ngIf", "ngFor", "ngSwitchCase", "ngSwitchDefault"]);
|
|
5889
5889
|
var MissingControlFlowDirectiveCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -5922,7 +5922,7 @@ var factory2 = {
|
|
|
5922
5922
|
}
|
|
5923
5923
|
};
|
|
5924
5924
|
|
|
5925
|
-
// bazel-out/
|
|
5925
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
5926
5926
|
import { Binary } from "@angular/compiler";
|
|
5927
5927
|
import ts29 from "typescript";
|
|
5928
5928
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -5967,10 +5967,49 @@ var factory3 = {
|
|
|
5967
5967
|
}
|
|
5968
5968
|
};
|
|
5969
5969
|
|
|
5970
|
-
// bazel-out/
|
|
5970
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
5971
|
+
import { TmplAstTextAttribute as TmplAstTextAttribute4 } from "@angular/compiler";
|
|
5972
|
+
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
5973
|
+
constructor() {
|
|
5974
|
+
super(...arguments);
|
|
5975
|
+
this.code = ErrorCode.TEXT_ATTRIBUTE_NOT_BINDING;
|
|
5976
|
+
}
|
|
5977
|
+
visitNode(ctx, component, node) {
|
|
5978
|
+
if (!(node instanceof TmplAstTextAttribute4))
|
|
5979
|
+
return [];
|
|
5980
|
+
const name = node.name;
|
|
5981
|
+
if (!name.startsWith("attr.") && !name.startsWith("style.") && !name.startsWith("class.")) {
|
|
5982
|
+
return [];
|
|
5983
|
+
}
|
|
5984
|
+
let errorString;
|
|
5985
|
+
if (name.startsWith("attr.")) {
|
|
5986
|
+
const staticAttr = name.replace("attr.", "");
|
|
5987
|
+
errorString = `Static attributes should be written without the 'attr.' prefix.`;
|
|
5988
|
+
if (node.value) {
|
|
5989
|
+
errorString += ` For example, ${staticAttr}="${node.value}".`;
|
|
5990
|
+
}
|
|
5991
|
+
} else {
|
|
5992
|
+
const expectedKey = `[${name}]`;
|
|
5993
|
+
const expectedValue = node.value === "true" || node.value === "false" ? node.value : `'${node.value}'`;
|
|
5994
|
+
errorString = "Attribute, style, and class bindings should be enclosed with square braces.";
|
|
5995
|
+
if (node.value) {
|
|
5996
|
+
errorString += ` For example, '${expectedKey}="${expectedValue}"'.`;
|
|
5997
|
+
}
|
|
5998
|
+
}
|
|
5999
|
+
const diagnostic = ctx.makeTemplateDiagnostic(node.sourceSpan, errorString);
|
|
6000
|
+
return [diagnostic];
|
|
6001
|
+
}
|
|
6002
|
+
};
|
|
6003
|
+
var factory4 = {
|
|
6004
|
+
code: ErrorCode.TEXT_ATTRIBUTE_NOT_BINDING,
|
|
6005
|
+
name: ExtendedTemplateDiagnosticName.TEXT_ATTRIBUTE_NOT_BINDING,
|
|
6006
|
+
create: () => new TextAttributeNotBindingSpec()
|
|
6007
|
+
};
|
|
6008
|
+
|
|
6009
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
5971
6010
|
import ts30 from "typescript";
|
|
5972
6011
|
|
|
5973
|
-
// bazel-out/
|
|
6012
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
5974
6013
|
var DiagnosticCategoryLabel;
|
|
5975
6014
|
(function(DiagnosticCategoryLabel2) {
|
|
5976
6015
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -5978,18 +6017,18 @@ var DiagnosticCategoryLabel;
|
|
|
5978
6017
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
5979
6018
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
5980
6019
|
|
|
5981
|
-
// bazel-out/
|
|
6020
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
5982
6021
|
var ExtendedTemplateCheckerImpl = class {
|
|
5983
6022
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
5984
6023
|
var _a, _b, _c, _d, _e;
|
|
5985
6024
|
this.partialCtx = { templateTypeChecker, typeChecker };
|
|
5986
6025
|
this.templateChecks = /* @__PURE__ */ new Map();
|
|
5987
|
-
for (const
|
|
5988
|
-
const category = diagnosticLabelToCategory((_e = (_d = (_b = (_a = options == null ? void 0 : options.extendedDiagnostics) == null ? void 0 : _a.checks) == null ? void 0 : _b[
|
|
6026
|
+
for (const factory5 of templateCheckFactories) {
|
|
6027
|
+
const category = diagnosticLabelToCategory((_e = (_d = (_b = (_a = options == null ? void 0 : options.extendedDiagnostics) == null ? void 0 : _a.checks) == null ? void 0 : _b[factory5.name]) != null ? _d : (_c = options == null ? void 0 : options.extendedDiagnostics) == null ? void 0 : _c.defaultCategory) != null ? _e : DiagnosticCategoryLabel.Warning);
|
|
5989
6028
|
if (category === null) {
|
|
5990
6029
|
continue;
|
|
5991
6030
|
}
|
|
5992
|
-
const check =
|
|
6031
|
+
const check = factory5.create(options);
|
|
5993
6032
|
if (check === null) {
|
|
5994
6033
|
continue;
|
|
5995
6034
|
}
|
|
@@ -6030,14 +6069,15 @@ function assertNever(value) {
|
|
|
6030
6069
|
${value}`);
|
|
6031
6070
|
}
|
|
6032
6071
|
|
|
6033
|
-
// bazel-out/
|
|
6072
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
6034
6073
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
6035
6074
|
factory,
|
|
6036
6075
|
factory3,
|
|
6037
|
-
factory2
|
|
6076
|
+
factory2,
|
|
6077
|
+
factory4
|
|
6038
6078
|
];
|
|
6039
6079
|
|
|
6040
|
-
// bazel-out/
|
|
6080
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
6041
6081
|
var CompilationTicketKind;
|
|
6042
6082
|
(function(CompilationTicketKind2) {
|
|
6043
6083
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -6650,7 +6690,7 @@ ${allowedCategoryLabels.join("\n")}
|
|
|
6650
6690
|
`.trim()
|
|
6651
6691
|
});
|
|
6652
6692
|
}
|
|
6653
|
-
const allExtendedDiagnosticNames = ALL_DIAGNOSTIC_FACTORIES.map((
|
|
6693
|
+
const allExtendedDiagnosticNames = ALL_DIAGNOSTIC_FACTORIES.map((factory5) => factory5.name);
|
|
6654
6694
|
for (const [checkName, category] of Object.entries((_c = (_b = options.extendedDiagnostics) == null ? void 0 : _b.checks) != null ? _c : {})) {
|
|
6655
6695
|
if (!allExtendedDiagnosticNames.includes(checkName)) {
|
|
6656
6696
|
yield makeConfigDiagnostic({
|
|
@@ -6734,7 +6774,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
6734
6774
|
return versions;
|
|
6735
6775
|
}
|
|
6736
6776
|
|
|
6737
|
-
// bazel-out/
|
|
6777
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
6738
6778
|
import ts32 from "typescript";
|
|
6739
6779
|
var DelegatingCompilerHost2 = class {
|
|
6740
6780
|
constructor(delegate) {
|
|
@@ -6878,7 +6918,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
6878
6918
|
}
|
|
6879
6919
|
};
|
|
6880
6920
|
|
|
6881
|
-
// bazel-out/
|
|
6921
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
6882
6922
|
var NgtscProgram = class {
|
|
6883
6923
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
6884
6924
|
this.options = options;
|
|
@@ -7087,15 +7127,15 @@ function mergeEmitResults(emitResults) {
|
|
|
7087
7127
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
7088
7128
|
}
|
|
7089
7129
|
|
|
7090
|
-
// bazel-out/
|
|
7130
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
7091
7131
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
7092
7132
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
7093
7133
|
}
|
|
7094
7134
|
|
|
7095
|
-
// bazel-out/
|
|
7135
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
7096
7136
|
import ts35 from "typescript";
|
|
7097
7137
|
|
|
7098
|
-
// bazel-out/
|
|
7138
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
7099
7139
|
import ts34 from "typescript";
|
|
7100
7140
|
var GENERATED_FILES = /(.*?)\.(ngfactory|shim\.ngstyle|ngstyle|ngsummary)\.(js|d\.ts|ts)$/;
|
|
7101
7141
|
function createMessageDiagnostic(messageText) {
|
|
@@ -7110,7 +7150,7 @@ function createMessageDiagnostic(messageText) {
|
|
|
7110
7150
|
};
|
|
7111
7151
|
}
|
|
7112
7152
|
|
|
7113
|
-
// bazel-out/
|
|
7153
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
7114
7154
|
var defaultFormatHost = {
|
|
7115
7155
|
getCurrentDirectory: () => ts35.sys.getCurrentDirectory(),
|
|
7116
7156
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -7323,4 +7363,4 @@ export {
|
|
|
7323
7363
|
* found in the LICENSE file at https://angular.io/license
|
|
7324
7364
|
*/
|
|
7325
7365
|
// Closure Compiler ignores @suppress and similar if the comment contains @license.
|
|
7326
|
-
//# sourceMappingURL=chunk-
|
|
7366
|
+
//# sourceMappingURL=chunk-K4XEMWX4.js.map
|