@angular/compiler-cli 20.0.0-next.8 → 20.0.0-next.9
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-TM3ZKHZM.js → chunk-2F5IGGXH.js} +12 -12
- package/bundles/{chunk-STORTTKY.js → chunk-37JMVF7H.js} +8 -8
- package/bundles/{chunk-AWZM3PZV.js → chunk-5HL3AR4R.js} +149 -106
- package/bundles/chunk-5HL3AR4R.js.map +6 -0
- package/bundles/{chunk-5UDS2TPQ.js → chunk-77D5CI2U.js} +7 -7
- package/bundles/{chunk-GBKXY6BH.js → chunk-FKXFEX7K.js} +3 -3
- package/bundles/{chunk-6YKQWDSS.js → chunk-KIC4TVVW.js} +47 -41
- package/bundles/chunk-KIC4TVVW.js.map +6 -0
- package/bundles/{chunk-I6R3GL3L.js → chunk-Q2WE7ECN.js} +5 -5
- package/bundles/{chunk-H7PFOEVE.js → chunk-Q6YAKOMH.js} +5 -5
- package/bundles/{chunk-JM3CQZO5.js → chunk-SBWQVXJA.js} +47 -42
- package/bundles/chunk-SBWQVXJA.js.map +6 -0
- package/bundles/{chunk-EYJS7FMV.js → chunk-UTYYMB4Z.js} +3 -3
- package/bundles/{chunk-OVF3OTQY.js → chunk-WNWOEBZS.js} +642 -414
- package/bundles/chunk-WNWOEBZS.js.map +6 -0
- package/bundles/index.js +12 -12
- package/bundles/linker/babel/index.js +12 -12
- package/bundles/linker/index.js +4 -4
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +4 -4
- package/bundles/private/tooling.js +6 -6
- package/bundles/src/bin/ng_xi18n.js +10 -10
- package/bundles/src/bin/ngc.js +8 -8
- package/bundles_metadata.json +1 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/annotations/component/src/handler.d.ts +16 -1
- package/src/ngtsc/annotations/component/src/resources.d.ts +1 -0
- package/src/ngtsc/core/src/compiler.d.ts +1 -0
- package/src/ngtsc/diagnostics/src/error_code.d.ts +18 -0
- package/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.d.ts +1 -0
- package/src/ngtsc/typecheck/extended/checks/missing_structural_directive/index.d.ts +16 -0
- package/src/ngtsc/typecheck/src/dom.d.ts +11 -11
- package/src/ngtsc/typecheck/src/oob.d.ts +27 -3
- package/src/ngtsc/typecheck/src/tcb_util.d.ts +2 -0
- package/src/ngtsc/typecheck/src/type_check_block.d.ts +14 -5
- package/bundles/chunk-6YKQWDSS.js.map +0 -6
- package/bundles/chunk-AWZM3PZV.js.map +0 -6
- package/bundles/chunk-JM3CQZO5.js.map +0 -6
- package/bundles/chunk-OVF3OTQY.js.map +0 -6
- /package/bundles/{chunk-TM3ZKHZM.js.map → chunk-2F5IGGXH.js.map} +0 -0
- /package/bundles/{chunk-STORTTKY.js.map → chunk-37JMVF7H.js.map} +0 -0
- /package/bundles/{chunk-5UDS2TPQ.js.map → chunk-77D5CI2U.js.map} +0 -0
- /package/bundles/{chunk-GBKXY6BH.js.map → chunk-FKXFEX7K.js.map} +0 -0
- /package/bundles/{chunk-I6R3GL3L.js.map → chunk-Q2WE7ECN.js.map} +0 -0
- /package/bundles/{chunk-H7PFOEVE.js.map → chunk-Q6YAKOMH.js.map} +0 -0
- /package/bundles/{chunk-EYJS7FMV.js.map → chunk-UTYYMB4Z.js.map} +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
angularJitApplicationTransform
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2F5IGGXH.js";
|
|
8
8
|
import {
|
|
9
9
|
CompilationMode,
|
|
10
10
|
ComponentDecoratorHandler,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
retagAllTsFiles,
|
|
52
52
|
tryParseInitializerApi,
|
|
53
53
|
untagAllTsFiles
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-WNWOEBZS.js";
|
|
55
55
|
import {
|
|
56
56
|
AbsoluteModuleStrategy,
|
|
57
57
|
AliasStrategy,
|
|
@@ -87,14 +87,14 @@ import {
|
|
|
87
87
|
relativePathBetween,
|
|
88
88
|
replaceTsWithNgInErrors,
|
|
89
89
|
toUnredirectedSourceFile
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-SBWQVXJA.js";
|
|
91
91
|
import {
|
|
92
92
|
ActivePerfRecorder,
|
|
93
93
|
DelegatingPerfRecorder,
|
|
94
94
|
PerfCheckpoint,
|
|
95
95
|
PerfEvent,
|
|
96
96
|
PerfPhase
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-Q2WE7ECN.js";
|
|
98
98
|
import {
|
|
99
99
|
LogicalFileSystem,
|
|
100
100
|
absoluteFrom,
|
|
@@ -104,9 +104,9 @@ import {
|
|
|
104
104
|
getFileSystem,
|
|
105
105
|
join,
|
|
106
106
|
resolve
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-37JMVF7H.js";
|
|
108
108
|
|
|
109
|
-
// bazel-out/
|
|
109
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
110
110
|
var DEFAULT_ERROR_CODE = 100;
|
|
111
111
|
var UNKNOWN_ERROR_CODE = 500;
|
|
112
112
|
var SOURCE = "angular";
|
|
@@ -124,7 +124,7 @@ var EmitFlags;
|
|
|
124
124
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
125
125
|
})(EmitFlags || (EmitFlags = {}));
|
|
126
126
|
|
|
127
|
-
// bazel-out/
|
|
127
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
128
128
|
import ts from "typescript";
|
|
129
129
|
var wrapHostForTest = null;
|
|
130
130
|
function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, true) }) {
|
|
@@ -134,7 +134,7 @@ function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, t
|
|
|
134
134
|
return tsHost;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
// bazel-out/
|
|
137
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/entities.mjs
|
|
138
138
|
var EntryType;
|
|
139
139
|
(function(EntryType2) {
|
|
140
140
|
EntryType2["Block"] = "block";
|
|
@@ -181,23 +181,23 @@ function isDocEntryWithSourceInfo(entry) {
|
|
|
181
181
|
return "source" in entry;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
// bazel-out/
|
|
184
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
185
185
|
import ts12 from "typescript";
|
|
186
186
|
|
|
187
|
-
// bazel-out/
|
|
187
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
|
|
188
188
|
import ts6 from "typescript";
|
|
189
189
|
|
|
190
|
-
// bazel-out/
|
|
190
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/filters.mjs
|
|
191
191
|
function isAngularPrivateName(name) {
|
|
192
192
|
var _a;
|
|
193
193
|
const firstChar = (_a = name[0]) != null ? _a : "";
|
|
194
194
|
return firstChar === "\u0275" || firstChar === "_";
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
-
// bazel-out/
|
|
197
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
|
|
198
198
|
import ts4 from "typescript";
|
|
199
199
|
|
|
200
|
-
// bazel-out/
|
|
200
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/generics_extractor.mjs
|
|
201
201
|
function extractGenerics(declaration) {
|
|
202
202
|
var _a, _b;
|
|
203
203
|
return (_b = (_a = declaration.typeParameters) == null ? void 0 : _a.map((typeParam) => {
|
|
@@ -210,7 +210,7 @@ function extractGenerics(declaration) {
|
|
|
210
210
|
})) != null ? _b : [];
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
// bazel-out/
|
|
213
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/jsdoc_extractor.mjs
|
|
214
214
|
import ts2 from "typescript";
|
|
215
215
|
var decoratorExpression = /@(?=(Injectable|Component|Directive|Pipe|NgModule|Input|Output|HostBinding|HostListener|Inject|Optional|Self|Host|SkipSelf|ViewChild|ViewChildren|ContentChild|ContentChildren))/g;
|
|
216
216
|
function extractJsDocTags(node) {
|
|
@@ -254,13 +254,13 @@ function unescapeAngularDecorators(comment) {
|
|
|
254
254
|
return comment.replace(/_NG_AT_/g, "@");
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
// bazel-out/
|
|
257
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_extractor.mjs
|
|
258
258
|
import ts3 from "typescript";
|
|
259
259
|
function extractResolvedTypeString(node, checker) {
|
|
260
260
|
return checker.typeToString(checker.getTypeAtLocation(node), void 0, ts3.TypeFormatFlags.NoTruncation);
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
// bazel-out/
|
|
263
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
|
|
264
264
|
var FunctionExtractor = class {
|
|
265
265
|
name;
|
|
266
266
|
exportDeclaration;
|
|
@@ -374,7 +374,7 @@ function findImplementationOfFunction(node, typeChecker) {
|
|
|
374
374
|
return implementation;
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
-
// bazel-out/
|
|
377
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/internal.mjs
|
|
378
378
|
import ts5 from "typescript";
|
|
379
379
|
function isInternal(member) {
|
|
380
380
|
return extractJsDocTags(member).some((tag) => tag.name === "internal") || hasLeadingInternalComment(member);
|
|
@@ -393,7 +393,7 @@ function hasLeadingInternalComment(member) {
|
|
|
393
393
|
)) != null ? _a : false;
|
|
394
394
|
}
|
|
395
395
|
|
|
396
|
-
// bazel-out/
|
|
396
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
|
|
397
397
|
var ClassExtractor = class {
|
|
398
398
|
declaration;
|
|
399
399
|
typeChecker;
|
|
@@ -720,7 +720,7 @@ function extractPipeSyntax(metadata, classDeclaration) {
|
|
|
720
720
|
return `{{ value_expression | ${metadata.name}${paramNames.length ? ":" + paramNames.join(":") : ""} }}`;
|
|
721
721
|
}
|
|
722
722
|
|
|
723
|
-
// bazel-out/
|
|
723
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/constant_extractor.mjs
|
|
724
724
|
import ts7 from "typescript";
|
|
725
725
|
var LITERAL_AS_ENUM_TAG = "object-literal-as-enum";
|
|
726
726
|
function extractConstant(declaration, typeChecker) {
|
|
@@ -778,7 +778,7 @@ function extractLiteralPropertiesAsEnumMembers(declaration) {
|
|
|
778
778
|
});
|
|
779
779
|
}
|
|
780
780
|
|
|
781
|
-
// bazel-out/
|
|
781
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/decorator_extractor.mjs
|
|
782
782
|
import ts8 from "typescript";
|
|
783
783
|
function extractorDecorator(declaration, typeChecker) {
|
|
784
784
|
const documentedNode = getDecoratorJsDocNode(declaration);
|
|
@@ -851,7 +851,7 @@ function getDecoratorJsDocNode(declaration) {
|
|
|
851
851
|
return callSignature;
|
|
852
852
|
}
|
|
853
853
|
|
|
854
|
-
// bazel-out/
|
|
854
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/enum_extractor.mjs
|
|
855
855
|
import ts9 from "typescript";
|
|
856
856
|
function extractEnum(declaration, typeChecker) {
|
|
857
857
|
return {
|
|
@@ -882,7 +882,7 @@ function getEnumMemberValue(memberNode) {
|
|
|
882
882
|
return (_a = literal == null ? void 0 : literal.getText()) != null ? _a : "";
|
|
883
883
|
}
|
|
884
884
|
|
|
885
|
-
// bazel-out/
|
|
885
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/initializer_api_function_extractor.mjs
|
|
886
886
|
import ts10 from "typescript";
|
|
887
887
|
var initializerApiTag = "initializerApiFunction";
|
|
888
888
|
function isInitializerApiFunction(node, typeChecker) {
|
|
@@ -991,7 +991,7 @@ function extractFunctionWithOverloads(name, type, typeChecker) {
|
|
|
991
991
|
};
|
|
992
992
|
}
|
|
993
993
|
|
|
994
|
-
// bazel-out/
|
|
994
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_alias_extractor.mjs
|
|
995
995
|
function extractTypeAlias(declaration) {
|
|
996
996
|
return {
|
|
997
997
|
name: declaration.name.getText(),
|
|
@@ -1004,7 +1004,7 @@ function extractTypeAlias(declaration) {
|
|
|
1004
1004
|
};
|
|
1005
1005
|
}
|
|
1006
1006
|
|
|
1007
|
-
// bazel-out/
|
|
1007
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/import_extractor.mjs
|
|
1008
1008
|
import ts11 from "typescript";
|
|
1009
1009
|
function getImportedSymbols(sourceFile) {
|
|
1010
1010
|
const importSpecifiers = /* @__PURE__ */ new Map();
|
|
@@ -1029,7 +1029,7 @@ function getImportedSymbols(sourceFile) {
|
|
|
1029
1029
|
return importSpecifiers;
|
|
1030
1030
|
}
|
|
1031
1031
|
|
|
1032
|
-
// bazel-out/
|
|
1032
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
1033
1033
|
var DocsExtractor = class {
|
|
1034
1034
|
typeChecker;
|
|
1035
1035
|
metadataReader;
|
|
@@ -1117,11 +1117,11 @@ function getRelativeFilePath(sourceFile, rootDir) {
|
|
|
1117
1117
|
return relativePath;
|
|
1118
1118
|
}
|
|
1119
1119
|
|
|
1120
|
-
// bazel-out/
|
|
1120
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
1121
1121
|
import { HtmlParser, MessageBundle } from "@angular/compiler";
|
|
1122
1122
|
import ts27 from "typescript";
|
|
1123
1123
|
|
|
1124
|
-
// bazel-out/
|
|
1124
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
1125
1125
|
import { Xliff, Xliff2, Xmb } from "@angular/compiler";
|
|
1126
1126
|
import * as path from "path";
|
|
1127
1127
|
function i18nGetExtension(formatName) {
|
|
@@ -1172,10 +1172,10 @@ function getPathNormalizer(basePath) {
|
|
|
1172
1172
|
};
|
|
1173
1173
|
}
|
|
1174
1174
|
|
|
1175
|
-
// bazel-out/
|
|
1175
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
1176
1176
|
import ts13 from "typescript";
|
|
1177
1177
|
|
|
1178
|
-
// bazel-out/
|
|
1178
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
1179
1179
|
function toNumbers(value) {
|
|
1180
1180
|
const suffixIndex = value.lastIndexOf("-");
|
|
1181
1181
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -1210,7 +1210,7 @@ function compareVersions(v1, v2) {
|
|
|
1210
1210
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
1211
1211
|
}
|
|
1212
1212
|
|
|
1213
|
-
// bazel-out/
|
|
1213
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
1214
1214
|
var MIN_TS_VERSION = "5.8.0";
|
|
1215
1215
|
var MAX_TS_VERSION = "5.9.0";
|
|
1216
1216
|
var tsVersion = ts13.version;
|
|
@@ -1223,10 +1223,10 @@ function verifySupportedTypeScriptVersion() {
|
|
|
1223
1223
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
1224
1224
|
}
|
|
1225
1225
|
|
|
1226
|
-
// bazel-out/
|
|
1226
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
1227
1227
|
import ts25 from "typescript";
|
|
1228
1228
|
|
|
1229
|
-
// bazel-out/
|
|
1229
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
1230
1230
|
var CycleAnalyzer = class {
|
|
1231
1231
|
importGraph;
|
|
1232
1232
|
cachedResults = null;
|
|
@@ -1303,7 +1303,7 @@ var Cycle = class {
|
|
|
1303
1303
|
}
|
|
1304
1304
|
};
|
|
1305
1305
|
|
|
1306
|
-
// bazel-out/
|
|
1306
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
1307
1307
|
import ts14 from "typescript";
|
|
1308
1308
|
var ImportGraph = class {
|
|
1309
1309
|
checker;
|
|
@@ -1399,7 +1399,7 @@ var Found = class {
|
|
|
1399
1399
|
}
|
|
1400
1400
|
};
|
|
1401
1401
|
|
|
1402
|
-
// bazel-out/
|
|
1402
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
1403
1403
|
import ts15 from "typescript";
|
|
1404
1404
|
var FlatIndexGenerator = class {
|
|
1405
1405
|
entryPoint;
|
|
@@ -1427,7 +1427,7 @@ export * from '${relativeEntryPoint}';
|
|
|
1427
1427
|
}
|
|
1428
1428
|
};
|
|
1429
1429
|
|
|
1430
|
-
// bazel-out/
|
|
1430
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
1431
1431
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
1432
1432
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
1433
1433
|
let resolvedEntryPoint = null;
|
|
@@ -1443,7 +1443,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
1443
1443
|
return resolvedEntryPoint;
|
|
1444
1444
|
}
|
|
1445
1445
|
|
|
1446
|
-
// bazel-out/
|
|
1446
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
1447
1447
|
import ts16 from "typescript";
|
|
1448
1448
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
1449
1449
|
const diagnostics = [];
|
|
@@ -1523,7 +1523,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
1523
1523
|
}
|
|
1524
1524
|
}
|
|
1525
1525
|
|
|
1526
|
-
// bazel-out/
|
|
1526
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
1527
1527
|
var ReferenceGraph = class {
|
|
1528
1528
|
references = /* @__PURE__ */ new Map();
|
|
1529
1529
|
add(from, to) {
|
|
@@ -1575,7 +1575,7 @@ var ReferenceGraph = class {
|
|
|
1575
1575
|
}
|
|
1576
1576
|
};
|
|
1577
1577
|
|
|
1578
|
-
// bazel-out/
|
|
1578
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
1579
1579
|
var FileDependencyGraph = class {
|
|
1580
1580
|
nodes = /* @__PURE__ */ new Map();
|
|
1581
1581
|
addDependency(from, on) {
|
|
@@ -1640,7 +1640,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
1640
1640
|
return false;
|
|
1641
1641
|
}
|
|
1642
1642
|
|
|
1643
|
-
// bazel-out/
|
|
1643
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
1644
1644
|
var IncrementalStateKind;
|
|
1645
1645
|
(function(IncrementalStateKind2) {
|
|
1646
1646
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -1648,7 +1648,7 @@ var IncrementalStateKind;
|
|
|
1648
1648
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
1649
1649
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
1650
1650
|
|
|
1651
|
-
// bazel-out/
|
|
1651
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
1652
1652
|
var PhaseKind;
|
|
1653
1653
|
(function(PhaseKind2) {
|
|
1654
1654
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -1854,7 +1854,7 @@ function toOriginalSourceFile(sf) {
|
|
|
1854
1854
|
}
|
|
1855
1855
|
}
|
|
1856
1856
|
|
|
1857
|
-
// bazel-out/
|
|
1857
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
1858
1858
|
var TrackedIncrementalBuildStrategy = class {
|
|
1859
1859
|
state = null;
|
|
1860
1860
|
isSet = false;
|
|
@@ -1888,7 +1888,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
|
|
|
1888
1888
|
};
|
|
1889
1889
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
1890
1890
|
|
|
1891
|
-
// bazel-out/
|
|
1891
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
1892
1892
|
var IdentifierKind;
|
|
1893
1893
|
(function(IdentifierKind2) {
|
|
1894
1894
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -1909,7 +1909,7 @@ var AbsoluteSourceSpan = class {
|
|
|
1909
1909
|
}
|
|
1910
1910
|
};
|
|
1911
1911
|
|
|
1912
|
-
// bazel-out/
|
|
1912
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
1913
1913
|
var IndexingContext = class {
|
|
1914
1914
|
components = /* @__PURE__ */ new Set();
|
|
1915
1915
|
addComponent(info) {
|
|
@@ -1917,10 +1917,10 @@ var IndexingContext = class {
|
|
|
1917
1917
|
}
|
|
1918
1918
|
};
|
|
1919
1919
|
|
|
1920
|
-
// bazel-out/
|
|
1920
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1921
1921
|
import { ParseSourceFile } from "@angular/compiler";
|
|
1922
1922
|
|
|
1923
|
-
// bazel-out/
|
|
1923
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
1924
1924
|
import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstBoundDeferredTrigger, TmplAstComponent, TmplAstDirective, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate, TmplAstVariable } from "@angular/compiler";
|
|
1925
1925
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
1926
1926
|
expressionStr;
|
|
@@ -2231,7 +2231,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
2231
2231
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
2232
2232
|
}
|
|
2233
2233
|
|
|
2234
|
-
// bazel-out/
|
|
2234
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
2235
2235
|
function generateAnalysis(context) {
|
|
2236
2236
|
const analysis = /* @__PURE__ */ new Map();
|
|
2237
2237
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -2267,7 +2267,7 @@ function generateAnalysis(context) {
|
|
|
2267
2267
|
return analysis;
|
|
2268
2268
|
}
|
|
2269
2269
|
|
|
2270
|
-
// bazel-out/
|
|
2270
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
2271
2271
|
var NgModuleIndexImpl = class {
|
|
2272
2272
|
metaReader;
|
|
2273
2273
|
localReader;
|
|
@@ -2358,7 +2358,7 @@ var NgModuleIndexImpl = class {
|
|
|
2358
2358
|
}
|
|
2359
2359
|
};
|
|
2360
2360
|
|
|
2361
|
-
// bazel-out/
|
|
2361
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
2362
2362
|
import ts17 from "typescript";
|
|
2363
2363
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
2364
2364
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -2516,7 +2516,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
2516
2516
|
};
|
|
2517
2517
|
}
|
|
2518
2518
|
|
|
2519
|
-
// bazel-out/
|
|
2519
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
2520
2520
|
var StandaloneComponentScopeReader = class {
|
|
2521
2521
|
metaReader;
|
|
2522
2522
|
localModuleReader;
|
|
@@ -2615,10 +2615,10 @@ var StandaloneComponentScopeReader = class {
|
|
|
2615
2615
|
}
|
|
2616
2616
|
};
|
|
2617
2617
|
|
|
2618
|
-
// bazel-out/
|
|
2618
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
2619
2619
|
import { ASTWithSource as ASTWithSource3, BindingType, Interpolation, PropertyRead as PropertyRead2, TmplAstBoundAttribute } from "@angular/compiler";
|
|
2620
2620
|
|
|
2621
|
-
// bazel-out/
|
|
2621
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/symbol_util.mjs
|
|
2622
2622
|
import ts18 from "typescript";
|
|
2623
2623
|
var SIGNAL_FNS = /* @__PURE__ */ new Set([
|
|
2624
2624
|
"WritableSignal",
|
|
@@ -2634,11 +2634,11 @@ function isSignalSymbol(symbol) {
|
|
|
2634
2634
|
const declarations = symbol.getDeclarations();
|
|
2635
2635
|
return declarations !== void 0 && declarations.some((decl) => {
|
|
2636
2636
|
const fileName = decl.getSourceFile().fileName;
|
|
2637
|
-
return (ts18.isInterfaceDeclaration(decl) || ts18.isTypeAliasDeclaration(decl)) && SIGNAL_FNS.has(decl.name.text) && (fileName.includes("@angular/core") || fileName.includes("angular2/rc/packages/core"));
|
|
2637
|
+
return (ts18.isInterfaceDeclaration(decl) || ts18.isTypeAliasDeclaration(decl)) && SIGNAL_FNS.has(decl.name.text) && (fileName.includes("@angular/core") || fileName.includes("angular2/rc/packages/core") || fileName.includes("bin/packages/core"));
|
|
2638
2638
|
});
|
|
2639
2639
|
}
|
|
2640
2640
|
|
|
2641
|
-
// bazel-out/
|
|
2641
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
2642
2642
|
import { ASTWithSource as ASTWithSource2, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstBoundDeferredTrigger as TmplAstBoundDeferredTrigger2 } from "@angular/compiler";
|
|
2643
2643
|
var TemplateCheckWithVisitor = class {
|
|
2644
2644
|
canVisitStructuralAttributes = true;
|
|
@@ -2791,7 +2791,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
|
2791
2791
|
}
|
|
2792
2792
|
};
|
|
2793
2793
|
|
|
2794
|
-
// bazel-out/
|
|
2794
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
2795
2795
|
var SIGNAL_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["set", "update", "asReadonly"]);
|
|
2796
2796
|
var FUNCTION_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["name", "length", "prototype"]);
|
|
2797
2797
|
var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -2840,7 +2840,7 @@ var factory = {
|
|
|
2840
2840
|
create: () => new InterpolatedSignalCheck()
|
|
2841
2841
|
};
|
|
2842
2842
|
|
|
2843
|
-
// bazel-out/
|
|
2843
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
2844
2844
|
import { TmplAstBoundEvent } from "@angular/compiler";
|
|
2845
2845
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
2846
2846
|
code = ErrorCode.INVALID_BANANA_IN_BOX;
|
|
@@ -2863,7 +2863,7 @@ var factory2 = {
|
|
|
2863
2863
|
create: () => new InvalidBananaInBoxCheck()
|
|
2864
2864
|
};
|
|
2865
2865
|
|
|
2866
|
-
// bazel-out/
|
|
2866
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
2867
2867
|
import { TmplAstTemplate as TmplAstTemplate2 } from "@angular/compiler";
|
|
2868
2868
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
2869
2869
|
["ngIf", { directive: "NgIf", builtIn: "@if" }],
|
|
@@ -2905,7 +2905,7 @@ var factory3 = {
|
|
|
2905
2905
|
}
|
|
2906
2906
|
};
|
|
2907
2907
|
|
|
2908
|
-
// bazel-out/
|
|
2908
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
2909
2909
|
import { TmplAstTemplate as TmplAstTemplate3 } from "@angular/compiler";
|
|
2910
2910
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
2911
2911
|
code = ErrorCode.MISSING_NGFOROF_LET;
|
|
@@ -2935,7 +2935,47 @@ var factory4 = {
|
|
|
2935
2935
|
create: () => new MissingNgForOfLetCheck()
|
|
2936
2936
|
};
|
|
2937
2937
|
|
|
2938
|
-
// bazel-out/
|
|
2938
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_structural_directive/index.mjs
|
|
2939
|
+
import { TmplAstTemplate as TmplAstTemplate4 } from "@angular/compiler";
|
|
2940
|
+
var KNOWN_CONTROL_FLOW_DIRECTIVES2 = /* @__PURE__ */ new Set([
|
|
2941
|
+
"ngIf",
|
|
2942
|
+
"ngFor",
|
|
2943
|
+
"ngForOf",
|
|
2944
|
+
"ngForTrackBy",
|
|
2945
|
+
"ngSwitchCase",
|
|
2946
|
+
"ngSwitchDefault"
|
|
2947
|
+
]);
|
|
2948
|
+
var MissingStructuralDirectiveCheck = class extends TemplateCheckWithVisitor {
|
|
2949
|
+
code = ErrorCode.MISSING_STRUCTURAL_DIRECTIVE;
|
|
2950
|
+
run(ctx, component, template) {
|
|
2951
|
+
const componentMetadata = ctx.templateTypeChecker.getDirectiveMetadata(component);
|
|
2952
|
+
if (!componentMetadata || !componentMetadata.isStandalone) {
|
|
2953
|
+
return [];
|
|
2954
|
+
}
|
|
2955
|
+
return super.run(ctx, component, template);
|
|
2956
|
+
}
|
|
2957
|
+
visitNode(ctx, component, node) {
|
|
2958
|
+
if (!(node instanceof TmplAstTemplate4))
|
|
2959
|
+
return [];
|
|
2960
|
+
const customStructuralDirective = node.templateAttrs.find((attr) => !KNOWN_CONTROL_FLOW_DIRECTIVES2.has(attr.name));
|
|
2961
|
+
if (!customStructuralDirective)
|
|
2962
|
+
return [];
|
|
2963
|
+
const symbol = ctx.templateTypeChecker.getSymbolOfNode(node, component);
|
|
2964
|
+
if (symbol == null ? void 0 : symbol.directives.length) {
|
|
2965
|
+
return [];
|
|
2966
|
+
}
|
|
2967
|
+
const sourceSpan = customStructuralDirective.keySpan || customStructuralDirective.sourceSpan;
|
|
2968
|
+
const errorMessage = `A structural directive \`${customStructuralDirective.name}\` was used in the template without a corresponding import in the component. Make sure that the directive is included in the \`@Component.imports\` array of this component.`;
|
|
2969
|
+
return [ctx.makeTemplateDiagnostic(sourceSpan, errorMessage)];
|
|
2970
|
+
}
|
|
2971
|
+
};
|
|
2972
|
+
var factory5 = {
|
|
2973
|
+
code: ErrorCode.MISSING_STRUCTURAL_DIRECTIVE,
|
|
2974
|
+
name: ExtendedTemplateDiagnosticName.MISSING_STRUCTURAL_DIRECTIVE,
|
|
2975
|
+
create: () => new MissingStructuralDirectiveCheck()
|
|
2976
|
+
};
|
|
2977
|
+
|
|
2978
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
2939
2979
|
import { Binary } from "@angular/compiler";
|
|
2940
2980
|
import ts19 from "typescript";
|
|
2941
2981
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -2966,7 +3006,7 @@ var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
|
2966
3006
|
return [diagnostic];
|
|
2967
3007
|
}
|
|
2968
3008
|
};
|
|
2969
|
-
var
|
|
3009
|
+
var factory6 = {
|
|
2970
3010
|
code: ErrorCode.NULLISH_COALESCING_NOT_NULLABLE,
|
|
2971
3011
|
name: ExtendedTemplateDiagnosticName.NULLISH_COALESCING_NOT_NULLABLE,
|
|
2972
3012
|
create: (options) => {
|
|
@@ -2978,7 +3018,7 @@ var factory5 = {
|
|
|
2978
3018
|
}
|
|
2979
3019
|
};
|
|
2980
3020
|
|
|
2981
|
-
// bazel-out/
|
|
3021
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
2982
3022
|
import { SafeCall, SafeKeyedRead, SafePropertyRead } from "@angular/compiler";
|
|
2983
3023
|
import ts20 from "typescript";
|
|
2984
3024
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -3010,7 +3050,7 @@ var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
|
3010
3050
|
return [diagnostic];
|
|
3011
3051
|
}
|
|
3012
3052
|
};
|
|
3013
|
-
var
|
|
3053
|
+
var factory7 = {
|
|
3014
3054
|
code: ErrorCode.OPTIONAL_CHAIN_NOT_NULLABLE,
|
|
3015
3055
|
name: ExtendedTemplateDiagnosticName.OPTIONAL_CHAIN_NOT_NULLABLE,
|
|
3016
3056
|
create: (options) => {
|
|
@@ -3022,7 +3062,7 @@ var factory6 = {
|
|
|
3022
3062
|
}
|
|
3023
3063
|
};
|
|
3024
3064
|
|
|
3025
|
-
// bazel-out/
|
|
3065
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/skip_hydration_not_static/index.mjs
|
|
3026
3066
|
import { TmplAstBoundAttribute as TmplAstBoundAttribute2, TmplAstTextAttribute } from "@angular/compiler";
|
|
3027
3067
|
var NG_SKIP_HYDRATION_ATTR_NAME = "ngSkipHydration";
|
|
3028
3068
|
var NgSkipHydrationSpec = class extends TemplateCheckWithVisitor {
|
|
@@ -3042,13 +3082,13 @@ var NgSkipHydrationSpec = class extends TemplateCheckWithVisitor {
|
|
|
3042
3082
|
return [];
|
|
3043
3083
|
}
|
|
3044
3084
|
};
|
|
3045
|
-
var
|
|
3085
|
+
var factory8 = {
|
|
3046
3086
|
code: ErrorCode.SKIP_HYDRATION_NOT_STATIC,
|
|
3047
3087
|
name: ExtendedTemplateDiagnosticName.SKIP_HYDRATION_NOT_STATIC,
|
|
3048
3088
|
create: () => new NgSkipHydrationSpec()
|
|
3049
3089
|
};
|
|
3050
3090
|
|
|
3051
|
-
// bazel-out/
|
|
3091
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
3052
3092
|
import { TmplAstBoundAttribute as TmplAstBoundAttribute3 } from "@angular/compiler";
|
|
3053
3093
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
3054
3094
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -3063,13 +3103,13 @@ var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
|
3063
3103
|
return [diagnostic];
|
|
3064
3104
|
}
|
|
3065
3105
|
};
|
|
3066
|
-
var
|
|
3106
|
+
var factory9 = {
|
|
3067
3107
|
code: ErrorCode.SUFFIX_NOT_SUPPORTED,
|
|
3068
3108
|
name: ExtendedTemplateDiagnosticName.SUFFIX_NOT_SUPPORTED,
|
|
3069
3109
|
create: () => new SuffixNotSupportedCheck()
|
|
3070
3110
|
};
|
|
3071
3111
|
|
|
3072
|
-
// bazel-out/
|
|
3112
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
3073
3113
|
import { TmplAstTextAttribute as TmplAstTextAttribute2 } from "@angular/compiler";
|
|
3074
3114
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
3075
3115
|
code = ErrorCode.TEXT_ATTRIBUTE_NOT_BINDING;
|
|
@@ -3099,13 +3139,13 @@ var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
|
3099
3139
|
return [diagnostic];
|
|
3100
3140
|
}
|
|
3101
3141
|
};
|
|
3102
|
-
var
|
|
3142
|
+
var factory10 = {
|
|
3103
3143
|
code: ErrorCode.TEXT_ATTRIBUTE_NOT_BINDING,
|
|
3104
3144
|
name: ExtendedTemplateDiagnosticName.TEXT_ATTRIBUTE_NOT_BINDING,
|
|
3105
3145
|
create: () => new TextAttributeNotBindingSpec()
|
|
3106
3146
|
};
|
|
3107
3147
|
|
|
3108
|
-
// bazel-out/
|
|
3148
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/uninvoked_function_in_event_binding/index.mjs
|
|
3109
3149
|
import { ASTWithSource as ASTWithSource4, Call, Chain, Conditional, ParsedEventType, PropertyRead as PropertyRead3, SafeCall as SafeCall2, SafePropertyRead as SafePropertyRead2, TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
|
|
3110
3150
|
var UninvokedFunctionInEventBindingSpec = class extends TemplateCheckWithVisitor {
|
|
3111
3151
|
code = ErrorCode.UNINVOKED_FUNCTION_IN_EVENT_BINDING;
|
|
@@ -3148,13 +3188,13 @@ function assertExpressionInvoked(expression, component, node, expressionText, ct
|
|
|
3148
3188
|
function generateStringFromExpression(expression, source) {
|
|
3149
3189
|
return source.substring(expression.span.start, expression.span.end);
|
|
3150
3190
|
}
|
|
3151
|
-
var
|
|
3191
|
+
var factory11 = {
|
|
3152
3192
|
code: ErrorCode.UNINVOKED_FUNCTION_IN_EVENT_BINDING,
|
|
3153
3193
|
name: ExtendedTemplateDiagnosticName.UNINVOKED_FUNCTION_IN_EVENT_BINDING,
|
|
3154
3194
|
create: () => new UninvokedFunctionInEventBindingSpec()
|
|
3155
3195
|
};
|
|
3156
3196
|
|
|
3157
|
-
// bazel-out/
|
|
3197
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/unparenthesized_nullish_coalescing/index.mjs
|
|
3158
3198
|
import { Binary as Binary2 } from "@angular/compiler";
|
|
3159
3199
|
var UnparenthesizedNullishCoalescing = class extends TemplateCheckWithVisitor {
|
|
3160
3200
|
code = ErrorCode.UNPARENTHESIZED_NULLISH_COALESCING;
|
|
@@ -3178,13 +3218,13 @@ var UnparenthesizedNullishCoalescing = class extends TemplateCheckWithVisitor {
|
|
|
3178
3218
|
return [];
|
|
3179
3219
|
}
|
|
3180
3220
|
};
|
|
3181
|
-
var
|
|
3221
|
+
var factory12 = {
|
|
3182
3222
|
code: ErrorCode.UNPARENTHESIZED_NULLISH_COALESCING,
|
|
3183
3223
|
name: ExtendedTemplateDiagnosticName.UNPARENTHESIZED_NULLISH_COALESCING,
|
|
3184
3224
|
create: () => new UnparenthesizedNullishCoalescing()
|
|
3185
3225
|
};
|
|
3186
3226
|
|
|
3187
|
-
// bazel-out/
|
|
3227
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/unused_let_declaration/index.mjs
|
|
3188
3228
|
import { AST, ASTWithSource as ASTWithSource5, TmplAstLetDeclaration } from "@angular/compiler";
|
|
3189
3229
|
var UnusedLetDeclarationCheck = class extends TemplateCheckWithVisitor {
|
|
3190
3230
|
code = ErrorCode.UNUSED_LET_DECLARATION;
|
|
@@ -3220,13 +3260,13 @@ var UnusedLetDeclarationCheck = class extends TemplateCheckWithVisitor {
|
|
|
3220
3260
|
return this.analysis.get(node);
|
|
3221
3261
|
}
|
|
3222
3262
|
};
|
|
3223
|
-
var
|
|
3263
|
+
var factory13 = {
|
|
3224
3264
|
code: ErrorCode.UNUSED_LET_DECLARATION,
|
|
3225
3265
|
name: ExtendedTemplateDiagnosticName.UNUSED_LET_DECLARATION,
|
|
3226
3266
|
create: () => new UnusedLetDeclarationCheck()
|
|
3227
3267
|
};
|
|
3228
3268
|
|
|
3229
|
-
// bazel-out/
|
|
3269
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/uninvoked_track_function/index.mjs
|
|
3230
3270
|
import { Call as Call2, PropertyRead as PropertyRead4, SafeCall as SafeCall3, SafePropertyRead as SafePropertyRead3, TmplAstForLoopBlock } from "@angular/compiler";
|
|
3231
3271
|
var UninvokedTrackFunctionCheck = class extends TemplateCheckWithVisitor {
|
|
3232
3272
|
code = ErrorCode.UNINVOKED_TRACK_FUNCTION;
|
|
@@ -3253,16 +3293,16 @@ var UninvokedTrackFunctionCheck = class extends TemplateCheckWithVisitor {
|
|
|
3253
3293
|
function generateStringFromExpression2(expression, source) {
|
|
3254
3294
|
return source.substring(expression.span.start, expression.span.end);
|
|
3255
3295
|
}
|
|
3256
|
-
var
|
|
3296
|
+
var factory14 = {
|
|
3257
3297
|
code: ErrorCode.UNINVOKED_TRACK_FUNCTION,
|
|
3258
3298
|
name: ExtendedTemplateDiagnosticName.UNINVOKED_TRACK_FUNCTION,
|
|
3259
3299
|
create: () => new UninvokedTrackFunctionCheck()
|
|
3260
3300
|
};
|
|
3261
3301
|
|
|
3262
|
-
// bazel-out/
|
|
3302
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
3263
3303
|
import ts21 from "typescript";
|
|
3264
3304
|
|
|
3265
|
-
// bazel-out/
|
|
3305
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
3266
3306
|
var DiagnosticCategoryLabel;
|
|
3267
3307
|
(function(DiagnosticCategoryLabel2) {
|
|
3268
3308
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -3270,7 +3310,7 @@ var DiagnosticCategoryLabel;
|
|
|
3270
3310
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
3271
3311
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
3272
3312
|
|
|
3273
|
-
// bazel-out/
|
|
3313
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
3274
3314
|
var ExtendedTemplateCheckerImpl = class {
|
|
3275
3315
|
partialCtx;
|
|
3276
3316
|
templateChecks;
|
|
@@ -3278,12 +3318,12 @@ var ExtendedTemplateCheckerImpl = class {
|
|
|
3278
3318
|
var _a, _b, _c, _d, _e;
|
|
3279
3319
|
this.partialCtx = { templateTypeChecker, typeChecker };
|
|
3280
3320
|
this.templateChecks = /* @__PURE__ */ new Map();
|
|
3281
|
-
for (const
|
|
3282
|
-
const category = diagnosticLabelToCategory((_e = (_d = (_b = (_a = options == null ? void 0 : options.extendedDiagnostics) == null ? void 0 : _a.checks) == null ? void 0 : _b[
|
|
3321
|
+
for (const factory15 of templateCheckFactories) {
|
|
3322
|
+
const category = diagnosticLabelToCategory((_e = (_d = (_b = (_a = options == null ? void 0 : options.extendedDiagnostics) == null ? void 0 : _a.checks) == null ? void 0 : _b[factory15.name]) != null ? _d : (_c = options == null ? void 0 : options.extendedDiagnostics) == null ? void 0 : _c.defaultCategory) != null ? _e : DiagnosticCategoryLabel.Warning);
|
|
3283
3323
|
if (category === null) {
|
|
3284
3324
|
continue;
|
|
3285
3325
|
}
|
|
3286
|
-
const check =
|
|
3326
|
+
const check = factory15.create(options);
|
|
3287
3327
|
if (check === null) {
|
|
3288
3328
|
continue;
|
|
3289
3329
|
}
|
|
@@ -3325,29 +3365,30 @@ function assertNever(value) {
|
|
|
3325
3365
|
${value}`);
|
|
3326
3366
|
}
|
|
3327
3367
|
|
|
3328
|
-
// bazel-out/
|
|
3368
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
3329
3369
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
3330
3370
|
factory2,
|
|
3331
|
-
factory5,
|
|
3332
3371
|
factory6,
|
|
3372
|
+
factory7,
|
|
3333
3373
|
factory3,
|
|
3334
|
-
|
|
3374
|
+
factory10,
|
|
3335
3375
|
factory4,
|
|
3336
|
-
|
|
3376
|
+
factory5,
|
|
3377
|
+
factory9,
|
|
3337
3378
|
factory,
|
|
3338
|
-
factory10,
|
|
3339
|
-
factory12,
|
|
3340
|
-
factory7,
|
|
3341
3379
|
factory11,
|
|
3342
|
-
factory13
|
|
3380
|
+
factory13,
|
|
3381
|
+
factory8,
|
|
3382
|
+
factory12,
|
|
3383
|
+
factory14
|
|
3343
3384
|
];
|
|
3344
3385
|
var SUPPORTED_DIAGNOSTIC_NAMES = /* @__PURE__ */ new Set([
|
|
3345
3386
|
ExtendedTemplateDiagnosticName.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION,
|
|
3346
3387
|
ExtendedTemplateDiagnosticName.UNUSED_STANDALONE_IMPORTS,
|
|
3347
|
-
...ALL_DIAGNOSTIC_FACTORIES.map((
|
|
3388
|
+
...ALL_DIAGNOSTIC_FACTORIES.map((factory15) => factory15.name)
|
|
3348
3389
|
]);
|
|
3349
3390
|
|
|
3350
|
-
// bazel-out/
|
|
3391
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/template_semantics/src/template_semantics_checker.mjs
|
|
3351
3392
|
import { ASTWithSource as ASTWithSource6, ImplicitReceiver as ImplicitReceiver2, ParsedEventType as ParsedEventType2, RecursiveAstVisitor as RecursiveAstVisitor3, TmplAstBoundEvent as TmplAstBoundEvent3, TmplAstLetDeclaration as TmplAstLetDeclaration2, TmplAstRecursiveVisitor as TmplAstRecursiveVisitor2, TmplAstVariable as TmplAstVariable2 } from "@angular/compiler";
|
|
3352
3393
|
import ts22 from "typescript";
|
|
3353
3394
|
var TemplateSemanticsCheckerImpl = class {
|
|
@@ -3443,7 +3484,7 @@ function unwrapAstWithSource(ast) {
|
|
|
3443
3484
|
return ast instanceof ASTWithSource6 ? ast.ast : ast;
|
|
3444
3485
|
}
|
|
3445
3486
|
|
|
3446
|
-
// bazel-out/
|
|
3487
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/rules/initializer_api_usage_rule.mjs
|
|
3447
3488
|
import ts23 from "typescript";
|
|
3448
3489
|
var APIS_TO_CHECK = [
|
|
3449
3490
|
INPUT_INITIALIZER_FN,
|
|
@@ -3496,7 +3537,7 @@ var InitializerApiUsageRule = class {
|
|
|
3496
3537
|
}
|
|
3497
3538
|
};
|
|
3498
3539
|
|
|
3499
|
-
// bazel-out/
|
|
3540
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/rules/unused_standalone_imports_rule.mjs
|
|
3500
3541
|
import ts24 from "typescript";
|
|
3501
3542
|
var UnusedStandaloneImportsRule = class {
|
|
3502
3543
|
templateTypeChecker;
|
|
@@ -3588,10 +3629,10 @@ function closestNode(start, predicate) {
|
|
|
3588
3629
|
return null;
|
|
3589
3630
|
}
|
|
3590
3631
|
|
|
3591
|
-
// bazel-out/
|
|
3632
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/config.mjs
|
|
3592
3633
|
var UNUSED_STANDALONE_IMPORTS_RULE_ENABLED = true;
|
|
3593
3634
|
|
|
3594
|
-
// bazel-out/
|
|
3635
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/source_file_validator.mjs
|
|
3595
3636
|
var SourceFileValidator = class {
|
|
3596
3637
|
rules;
|
|
3597
3638
|
constructor(reflector, importedSymbolsTracker, templateTypeChecker, typeCheckingConfig) {
|
|
@@ -3633,7 +3674,7 @@ var SourceFileValidator = class {
|
|
|
3633
3674
|
}
|
|
3634
3675
|
};
|
|
3635
3676
|
|
|
3636
|
-
// bazel-out/
|
|
3677
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/feature_detection.mjs
|
|
3637
3678
|
import semver from "semver";
|
|
3638
3679
|
function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
3639
3680
|
if (coreVersion === `0.0.0-${"PLACEHOLDER"}`) {
|
|
@@ -3642,7 +3683,7 @@ function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
|
3642
3683
|
return semver.satisfies(coreVersion, minVersion, { includePrerelease: true });
|
|
3643
3684
|
}
|
|
3644
3685
|
|
|
3645
|
-
// bazel-out/
|
|
3686
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
3646
3687
|
var CompilationTicketKind;
|
|
3647
3688
|
(function(CompilationTicketKind2) {
|
|
3648
3689
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -3726,6 +3767,7 @@ var NgCompiler = class {
|
|
|
3726
3767
|
angularCoreVersion;
|
|
3727
3768
|
enableHmr;
|
|
3728
3769
|
implicitStandaloneValue;
|
|
3770
|
+
enableSelectorless;
|
|
3729
3771
|
delegatingPerfRecorder;
|
|
3730
3772
|
static fromTicket(ticket, adapter) {
|
|
3731
3773
|
switch (ticket.kind) {
|
|
@@ -3740,7 +3782,7 @@ var NgCompiler = class {
|
|
|
3740
3782
|
}
|
|
3741
3783
|
}
|
|
3742
3784
|
constructor(adapter, options, inputProgram, programDriver, incrementalStrategy, incrementalCompilation, enableTemplateTypeChecker, usePoisonedData, livePerfRecorder) {
|
|
3743
|
-
var _a, _b, _c;
|
|
3785
|
+
var _a, _b, _c, _d;
|
|
3744
3786
|
this.adapter = adapter;
|
|
3745
3787
|
this.options = options;
|
|
3746
3788
|
this.inputProgram = inputProgram;
|
|
@@ -3755,6 +3797,7 @@ var NgCompiler = class {
|
|
|
3755
3797
|
this.enableTemplateTypeChecker = enableTemplateTypeChecker || !!options._enableTemplateTypeChecker;
|
|
3756
3798
|
this.enableBlockSyntax = (_b = options["_enableBlockSyntax"]) != null ? _b : true;
|
|
3757
3799
|
this.enableLetSyntax = (_c = options["_enableLetSyntax"]) != null ? _c : true;
|
|
3800
|
+
this.enableSelectorless = (_d = options["_enableSelectorless"]) != null ? _d : false;
|
|
3758
3801
|
this.implicitStandaloneValue = this.angularCoreVersion === null || coreVersionSupportsFeature(this.angularCoreVersion, ">= 19.0.0");
|
|
3759
3802
|
this.enableHmr = !!options["_enableHmr"];
|
|
3760
3803
|
this.constructionDiagnostics.push(...this.adapter.constructionDiagnostics, ...verifyCompatibleTypeCheckOptions(this.options));
|
|
@@ -4323,7 +4366,7 @@ var NgCompiler = class {
|
|
|
4323
4366
|
}
|
|
4324
4367
|
const jitDeclarationRegistry = new JitDeclarationRegistry();
|
|
4325
4368
|
const handlers = [
|
|
4326
|
-
new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, this.adapter, 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, referencesRegistry, this.incrementalCompilation.depGraph, injectableRegistry, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, hostDirectivesResolver, importTracker, supportTestBed, compilationMode, deferredSymbolsTracker, !!this.options.forbidOrphanComponents, this.enableBlockSyntax, this.enableLetSyntax, externalRuntimeStyles, localCompilationExtraImportsTracker, jitDeclarationRegistry, (_g = this.options.i18nPreserveWhitespaceForLegacyExtraction) != null ? _g : true, !!this.options.strictStandalone, this.enableHmr, this.implicitStandaloneValue, typeCheckHostBindings),
|
|
4369
|
+
new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, this.adapter, 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, referencesRegistry, this.incrementalCompilation.depGraph, injectableRegistry, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, hostDirectivesResolver, importTracker, supportTestBed, compilationMode, deferredSymbolsTracker, !!this.options.forbidOrphanComponents, this.enableBlockSyntax, this.enableLetSyntax, externalRuntimeStyles, localCompilationExtraImportsTracker, jitDeclarationRegistry, (_g = this.options.i18nPreserveWhitespaceForLegacyExtraction) != null ? _g : true, !!this.options.strictStandalone, this.enableHmr, this.implicitStandaloneValue, typeCheckHostBindings, this.enableSelectorless),
|
|
4327
4370
|
new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, importTracker, supportTestBed, typeCheckScopeRegistry, compilationMode, jitDeclarationRegistry, resourceRegistry, !!this.options.strictStandalone, this.implicitStandaloneValue, this.usePoisonedData, typeCheckHostBindings),
|
|
4328
4371
|
new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder, supportTestBed, compilationMode, !!this.options.generateExtraImportsInLocalMode, !!this.options.strictStandalone, this.implicitStandaloneValue),
|
|
4329
4372
|
new InjectableDecoratorHandler(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, compilationMode),
|
|
@@ -4525,7 +4568,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
4525
4568
|
return versions;
|
|
4526
4569
|
}
|
|
4527
4570
|
|
|
4528
|
-
// bazel-out/
|
|
4571
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
4529
4572
|
import ts26 from "typescript";
|
|
4530
4573
|
var DelegatingCompilerHost = class {
|
|
4531
4574
|
delegate;
|
|
@@ -4699,7 +4742,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost {
|
|
|
4699
4742
|
}
|
|
4700
4743
|
};
|
|
4701
4744
|
|
|
4702
|
-
// bazel-out/
|
|
4745
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
4703
4746
|
var NgtscProgram = class {
|
|
4704
4747
|
options;
|
|
4705
4748
|
compiler;
|
|
@@ -4930,15 +4973,15 @@ function mergeEmitResults(emitResults) {
|
|
|
4930
4973
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
4931
4974
|
}
|
|
4932
4975
|
|
|
4933
|
-
// bazel-out/
|
|
4976
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
4934
4977
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
4935
4978
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
4936
4979
|
}
|
|
4937
4980
|
|
|
4938
|
-
// bazel-out/
|
|
4981
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
4939
4982
|
import ts29 from "typescript";
|
|
4940
4983
|
|
|
4941
|
-
// bazel-out/
|
|
4984
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
4942
4985
|
import ts28 from "typescript";
|
|
4943
4986
|
function createMessageDiagnostic(messageText) {
|
|
4944
4987
|
return {
|
|
@@ -4952,7 +4995,7 @@ function createMessageDiagnostic(messageText) {
|
|
|
4952
4995
|
};
|
|
4953
4996
|
}
|
|
4954
4997
|
|
|
4955
|
-
// bazel-out/
|
|
4998
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
4956
4999
|
var defaultFormatHost = {
|
|
4957
5000
|
getCurrentDirectory: () => ts29.sys.getCurrentDirectory(),
|
|
4958
5001
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -5185,4 +5228,4 @@ export {
|
|
|
5185
5228
|
* Use of this source code is governed by an MIT-style license that can be
|
|
5186
5229
|
* found in the LICENSE file at https://angular.dev/license
|
|
5187
5230
|
*/
|
|
5188
|
-
//# sourceMappingURL=chunk-
|
|
5231
|
+
//# sourceMappingURL=chunk-5HL3AR4R.js.map
|