@angular/compiler-cli 20.0.0-next.5 → 20.0.0-next.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/{chunk-5QDXDB4N.js → chunk-2YHDKFJ5.js} +5 -5
- package/bundles/{chunk-4Q2AWNO5.js → chunk-5AFVNN25.js} +3 -3
- package/bundles/{chunk-77D5CI2U.js → chunk-5UDS2TPQ.js} +7 -7
- package/bundles/{chunk-WWBWIRJR.js → chunk-BFF3JTCC.js} +44 -42
- package/bundles/chunk-BFF3JTCC.js.map +6 -0
- package/bundles/{chunk-NIVE5PXL.js → chunk-BOV3QCZL.js} +31 -31
- package/bundles/{chunk-FKXFEX7K.js → chunk-GBKXY6BH.js} +3 -3
- package/bundles/{chunk-Q2WE7ECN.js → chunk-I6R3GL3L.js} +5 -5
- package/bundles/{chunk-GYERXSPU.js → chunk-JSHLK5PX.js} +151 -89
- package/bundles/chunk-JSHLK5PX.js.map +6 -0
- package/bundles/{chunk-6PQV2MG7.js → chunk-K6NOY73Y.js} +12 -12
- package/bundles/{chunk-4L4X3YJZ.js → chunk-QDS4K6PQ.js} +127 -127
- package/bundles/{chunk-37JMVF7H.js → chunk-STORTTKY.js} +8 -8
- 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/diagnostics/src/error_code.d.ts +16 -0
- package/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.d.ts +1 -0
- package/src/ngtsc/typecheck/extended/checks/uninvoked_track_function/index.d.ts +10 -0
- package/bundles/chunk-GYERXSPU.js.map +0 -6
- package/bundles/chunk-WWBWIRJR.js.map +0 -6
- /package/bundles/{chunk-5QDXDB4N.js.map → chunk-2YHDKFJ5.js.map} +0 -0
- /package/bundles/{chunk-4Q2AWNO5.js.map → chunk-5AFVNN25.js.map} +0 -0
- /package/bundles/{chunk-77D5CI2U.js.map → chunk-5UDS2TPQ.js.map} +0 -0
- /package/bundles/{chunk-NIVE5PXL.js.map → chunk-BOV3QCZL.js.map} +0 -0
- /package/bundles/{chunk-FKXFEX7K.js.map → chunk-GBKXY6BH.js.map} +0 -0
- /package/bundles/{chunk-Q2WE7ECN.js.map → chunk-I6R3GL3L.js.map} +0 -0
- /package/bundles/{chunk-6PQV2MG7.js.map → chunk-K6NOY73Y.js.map} +0 -0
- /package/bundles/{chunk-4L4X3YJZ.js.map → chunk-QDS4K6PQ.js.map} +0 -0
- /package/bundles/{chunk-37JMVF7H.js.map → chunk-STORTTKY.js.map} +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
angularJitApplicationTransform
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-K6NOY73Y.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-QDS4K6PQ.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-BFF3JTCC.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-I6R3GL3L.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-STORTTKY.js";
|
|
108
108
|
|
|
109
|
-
// bazel-out/
|
|
109
|
+
// bazel-out/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
|
|
264
264
|
var FunctionExtractor = class {
|
|
265
265
|
name;
|
|
266
266
|
exportDeclaration;
|
|
@@ -371,7 +371,7 @@ function findImplementationOfFunction(node, typeChecker) {
|
|
|
371
371
|
return implementation;
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
-
// bazel-out/
|
|
374
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/internal.mjs
|
|
375
375
|
import ts5 from "typescript";
|
|
376
376
|
function isInternal(member) {
|
|
377
377
|
return extractJsDocTags(member).some((tag) => tag.name === "internal") || hasLeadingInternalComment(member);
|
|
@@ -390,7 +390,7 @@ function hasLeadingInternalComment(member) {
|
|
|
390
390
|
)) != null ? _a : false;
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
// bazel-out/
|
|
393
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
|
|
394
394
|
var ClassExtractor = class {
|
|
395
395
|
declaration;
|
|
396
396
|
typeChecker;
|
|
@@ -706,7 +706,7 @@ function extractInterface(declaration, typeChecker) {
|
|
|
706
706
|
return extractor.extract();
|
|
707
707
|
}
|
|
708
708
|
|
|
709
|
-
// bazel-out/
|
|
709
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/constant_extractor.mjs
|
|
710
710
|
import ts7 from "typescript";
|
|
711
711
|
var LITERAL_AS_ENUM_TAG = "object-literal-as-enum";
|
|
712
712
|
function extractConstant(declaration, typeChecker) {
|
|
@@ -764,7 +764,7 @@ function extractLiteralPropertiesAsEnumMembers(declaration) {
|
|
|
764
764
|
});
|
|
765
765
|
}
|
|
766
766
|
|
|
767
|
-
// bazel-out/
|
|
767
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/decorator_extractor.mjs
|
|
768
768
|
import ts8 from "typescript";
|
|
769
769
|
function extractorDecorator(declaration, typeChecker) {
|
|
770
770
|
const documentedNode = getDecoratorJsDocNode(declaration);
|
|
@@ -837,7 +837,7 @@ function getDecoratorJsDocNode(declaration) {
|
|
|
837
837
|
return callSignature;
|
|
838
838
|
}
|
|
839
839
|
|
|
840
|
-
// bazel-out/
|
|
840
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/enum_extractor.mjs
|
|
841
841
|
import ts9 from "typescript";
|
|
842
842
|
function extractEnum(declaration, typeChecker) {
|
|
843
843
|
return {
|
|
@@ -868,7 +868,7 @@ function getEnumMemberValue(memberNode) {
|
|
|
868
868
|
return (_a = literal == null ? void 0 : literal.getText()) != null ? _a : "";
|
|
869
869
|
}
|
|
870
870
|
|
|
871
|
-
// bazel-out/
|
|
871
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/initializer_api_function_extractor.mjs
|
|
872
872
|
import ts10 from "typescript";
|
|
873
873
|
var initializerApiTag = "initializerApiFunction";
|
|
874
874
|
function isInitializerApiFunction(node, typeChecker) {
|
|
@@ -977,7 +977,7 @@ function extractFunctionWithOverloads(name, type, typeChecker) {
|
|
|
977
977
|
};
|
|
978
978
|
}
|
|
979
979
|
|
|
980
|
-
// bazel-out/
|
|
980
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_alias_extractor.mjs
|
|
981
981
|
function extractTypeAlias(declaration) {
|
|
982
982
|
return {
|
|
983
983
|
name: declaration.name.getText(),
|
|
@@ -990,7 +990,7 @@ function extractTypeAlias(declaration) {
|
|
|
990
990
|
};
|
|
991
991
|
}
|
|
992
992
|
|
|
993
|
-
// bazel-out/
|
|
993
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/import_extractor.mjs
|
|
994
994
|
import ts11 from "typescript";
|
|
995
995
|
function getImportedSymbols(sourceFile) {
|
|
996
996
|
const importSpecifiers = /* @__PURE__ */ new Map();
|
|
@@ -1015,7 +1015,7 @@ function getImportedSymbols(sourceFile) {
|
|
|
1015
1015
|
return importSpecifiers;
|
|
1016
1016
|
}
|
|
1017
1017
|
|
|
1018
|
-
// bazel-out/
|
|
1018
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
1019
1019
|
var DocsExtractor = class {
|
|
1020
1020
|
typeChecker;
|
|
1021
1021
|
metadataReader;
|
|
@@ -1103,11 +1103,11 @@ function getRelativeFilePath(sourceFile, rootDir) {
|
|
|
1103
1103
|
return relativePath;
|
|
1104
1104
|
}
|
|
1105
1105
|
|
|
1106
|
-
// bazel-out/
|
|
1106
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
1107
1107
|
import { HtmlParser, MessageBundle } from "@angular/compiler";
|
|
1108
1108
|
import ts27 from "typescript";
|
|
1109
1109
|
|
|
1110
|
-
// bazel-out/
|
|
1110
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
1111
1111
|
import { Xliff, Xliff2, Xmb } from "@angular/compiler";
|
|
1112
1112
|
import * as path from "path";
|
|
1113
1113
|
function i18nGetExtension(formatName) {
|
|
@@ -1158,10 +1158,10 @@ function getPathNormalizer(basePath) {
|
|
|
1158
1158
|
};
|
|
1159
1159
|
}
|
|
1160
1160
|
|
|
1161
|
-
// bazel-out/
|
|
1161
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
1162
1162
|
import ts13 from "typescript";
|
|
1163
1163
|
|
|
1164
|
-
// bazel-out/
|
|
1164
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
1165
1165
|
function toNumbers(value) {
|
|
1166
1166
|
const suffixIndex = value.lastIndexOf("-");
|
|
1167
1167
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -1196,7 +1196,7 @@ function compareVersions(v1, v2) {
|
|
|
1196
1196
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
1197
1197
|
}
|
|
1198
1198
|
|
|
1199
|
-
// bazel-out/
|
|
1199
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
1200
1200
|
var MIN_TS_VERSION = "5.8.0";
|
|
1201
1201
|
var MAX_TS_VERSION = "5.9.0";
|
|
1202
1202
|
var tsVersion = ts13.version;
|
|
@@ -1209,11 +1209,11 @@ function verifySupportedTypeScriptVersion() {
|
|
|
1209
1209
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
1210
1210
|
}
|
|
1211
1211
|
|
|
1212
|
-
// bazel-out/
|
|
1212
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
1213
1213
|
import { R3Identifiers } from "@angular/compiler";
|
|
1214
1214
|
import ts25 from "typescript";
|
|
1215
1215
|
|
|
1216
|
-
// bazel-out/
|
|
1216
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
1217
1217
|
var CycleAnalyzer = class {
|
|
1218
1218
|
importGraph;
|
|
1219
1219
|
cachedResults = null;
|
|
@@ -1290,7 +1290,7 @@ var Cycle = class {
|
|
|
1290
1290
|
}
|
|
1291
1291
|
};
|
|
1292
1292
|
|
|
1293
|
-
// bazel-out/
|
|
1293
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
1294
1294
|
import ts14 from "typescript";
|
|
1295
1295
|
var ImportGraph = class {
|
|
1296
1296
|
checker;
|
|
@@ -1386,7 +1386,7 @@ var Found = class {
|
|
|
1386
1386
|
}
|
|
1387
1387
|
};
|
|
1388
1388
|
|
|
1389
|
-
// bazel-out/
|
|
1389
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
1390
1390
|
import ts15 from "typescript";
|
|
1391
1391
|
var FlatIndexGenerator = class {
|
|
1392
1392
|
entryPoint;
|
|
@@ -1414,7 +1414,7 @@ export * from '${relativeEntryPoint}';
|
|
|
1414
1414
|
}
|
|
1415
1415
|
};
|
|
1416
1416
|
|
|
1417
|
-
// bazel-out/
|
|
1417
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
1418
1418
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
1419
1419
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
1420
1420
|
let resolvedEntryPoint = null;
|
|
@@ -1430,7 +1430,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
1430
1430
|
return resolvedEntryPoint;
|
|
1431
1431
|
}
|
|
1432
1432
|
|
|
1433
|
-
// bazel-out/
|
|
1433
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
1434
1434
|
import ts16 from "typescript";
|
|
1435
1435
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
1436
1436
|
const diagnostics = [];
|
|
@@ -1510,7 +1510,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
1510
1510
|
}
|
|
1511
1511
|
}
|
|
1512
1512
|
|
|
1513
|
-
// bazel-out/
|
|
1513
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
1514
1514
|
var ReferenceGraph = class {
|
|
1515
1515
|
references = /* @__PURE__ */ new Map();
|
|
1516
1516
|
add(from, to) {
|
|
@@ -1562,7 +1562,7 @@ var ReferenceGraph = class {
|
|
|
1562
1562
|
}
|
|
1563
1563
|
};
|
|
1564
1564
|
|
|
1565
|
-
// bazel-out/
|
|
1565
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
1566
1566
|
var FileDependencyGraph = class {
|
|
1567
1567
|
nodes = /* @__PURE__ */ new Map();
|
|
1568
1568
|
addDependency(from, on) {
|
|
@@ -1627,7 +1627,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
1627
1627
|
return false;
|
|
1628
1628
|
}
|
|
1629
1629
|
|
|
1630
|
-
// bazel-out/
|
|
1630
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
1631
1631
|
var IncrementalStateKind;
|
|
1632
1632
|
(function(IncrementalStateKind2) {
|
|
1633
1633
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -1635,7 +1635,7 @@ var IncrementalStateKind;
|
|
|
1635
1635
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
1636
1636
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
1637
1637
|
|
|
1638
|
-
// bazel-out/
|
|
1638
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
1639
1639
|
var PhaseKind;
|
|
1640
1640
|
(function(PhaseKind2) {
|
|
1641
1641
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -1841,7 +1841,7 @@ function toOriginalSourceFile(sf) {
|
|
|
1841
1841
|
}
|
|
1842
1842
|
}
|
|
1843
1843
|
|
|
1844
|
-
// bazel-out/
|
|
1844
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
1845
1845
|
var TrackedIncrementalBuildStrategy = class {
|
|
1846
1846
|
state = null;
|
|
1847
1847
|
isSet = false;
|
|
@@ -1875,7 +1875,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
|
|
|
1875
1875
|
};
|
|
1876
1876
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
1877
1877
|
|
|
1878
|
-
// bazel-out/
|
|
1878
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
1879
1879
|
var IdentifierKind;
|
|
1880
1880
|
(function(IdentifierKind2) {
|
|
1881
1881
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -1896,7 +1896,7 @@ var AbsoluteSourceSpan = class {
|
|
|
1896
1896
|
}
|
|
1897
1897
|
};
|
|
1898
1898
|
|
|
1899
|
-
// bazel-out/
|
|
1899
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
1900
1900
|
var IndexingContext = class {
|
|
1901
1901
|
components = /* @__PURE__ */ new Set();
|
|
1902
1902
|
addComponent(info) {
|
|
@@ -1904,10 +1904,10 @@ var IndexingContext = class {
|
|
|
1904
1904
|
}
|
|
1905
1905
|
};
|
|
1906
1906
|
|
|
1907
|
-
// bazel-out/
|
|
1907
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1908
1908
|
import { ParseSourceFile } from "@angular/compiler";
|
|
1909
1909
|
|
|
1910
|
-
// bazel-out/
|
|
1910
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
1911
1911
|
import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstBoundDeferredTrigger, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate, TmplAstVariable } from "@angular/compiler";
|
|
1912
1912
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
1913
1913
|
expressionStr;
|
|
@@ -1988,6 +1988,7 @@ var TemplateVisitor = class extends TmplAstRecursiveVisitor {
|
|
|
1988
1988
|
this.visitAll(element.references);
|
|
1989
1989
|
this.visitAll(element.inputs);
|
|
1990
1990
|
this.visitAll(element.attributes);
|
|
1991
|
+
this.visitAll(element.directives);
|
|
1991
1992
|
this.visitAll(element.children);
|
|
1992
1993
|
this.visitAll(element.outputs);
|
|
1993
1994
|
}
|
|
@@ -1996,6 +1997,7 @@ var TemplateVisitor = class extends TmplAstRecursiveVisitor {
|
|
|
1996
1997
|
if (templateIdentifier !== null) {
|
|
1997
1998
|
this.identifiers.add(templateIdentifier);
|
|
1998
1999
|
}
|
|
2000
|
+
this.visitAll(template.directives);
|
|
1999
2001
|
this.visitAll(template.variables);
|
|
2000
2002
|
this.visitAll(template.attributes);
|
|
2001
2003
|
this.visitAll(template.templateAttrs);
|
|
@@ -2082,6 +2084,12 @@ var TemplateVisitor = class extends TmplAstRecursiveVisitor {
|
|
|
2082
2084
|
}
|
|
2083
2085
|
this.visitExpression(decl.value);
|
|
2084
2086
|
}
|
|
2087
|
+
visitComponent(component) {
|
|
2088
|
+
throw new Error("TODO");
|
|
2089
|
+
}
|
|
2090
|
+
visitDirective(directive) {
|
|
2091
|
+
throw new Error("TODO");
|
|
2092
|
+
}
|
|
2085
2093
|
elementOrTemplateToIdentifier(node) {
|
|
2086
2094
|
var _a;
|
|
2087
2095
|
if (this.elementAndTemplateIdentifierCache.has(node)) {
|
|
@@ -2207,7 +2215,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
2207
2215
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
2208
2216
|
}
|
|
2209
2217
|
|
|
2210
|
-
// bazel-out/
|
|
2218
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
2211
2219
|
function generateAnalysis(context) {
|
|
2212
2220
|
const analysis = /* @__PURE__ */ new Map();
|
|
2213
2221
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -2243,7 +2251,7 @@ function generateAnalysis(context) {
|
|
|
2243
2251
|
return analysis;
|
|
2244
2252
|
}
|
|
2245
2253
|
|
|
2246
|
-
// bazel-out/
|
|
2254
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
2247
2255
|
var NgModuleIndexImpl = class {
|
|
2248
2256
|
metaReader;
|
|
2249
2257
|
localReader;
|
|
@@ -2334,7 +2342,7 @@ var NgModuleIndexImpl = class {
|
|
|
2334
2342
|
}
|
|
2335
2343
|
};
|
|
2336
2344
|
|
|
2337
|
-
// bazel-out/
|
|
2345
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
2338
2346
|
import ts17 from "typescript";
|
|
2339
2347
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
2340
2348
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -2492,7 +2500,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
2492
2500
|
};
|
|
2493
2501
|
}
|
|
2494
2502
|
|
|
2495
|
-
// bazel-out/
|
|
2503
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
2496
2504
|
var StandaloneComponentScopeReader = class {
|
|
2497
2505
|
metaReader;
|
|
2498
2506
|
localModuleReader;
|
|
@@ -2591,10 +2599,10 @@ var StandaloneComponentScopeReader = class {
|
|
|
2591
2599
|
}
|
|
2592
2600
|
};
|
|
2593
2601
|
|
|
2594
|
-
// bazel-out/
|
|
2602
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
2595
2603
|
import { ASTWithSource as ASTWithSource3, BindingType, Interpolation, PropertyRead as PropertyRead2, TmplAstBoundAttribute } from "@angular/compiler";
|
|
2596
2604
|
|
|
2597
|
-
// bazel-out/
|
|
2605
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/symbol_util.mjs
|
|
2598
2606
|
import ts18 from "typescript";
|
|
2599
2607
|
var SIGNAL_FNS = /* @__PURE__ */ new Set([
|
|
2600
2608
|
"WritableSignal",
|
|
@@ -2614,7 +2622,7 @@ function isSignalSymbol(symbol) {
|
|
|
2614
2622
|
});
|
|
2615
2623
|
}
|
|
2616
2624
|
|
|
2617
|
-
// bazel-out/
|
|
2625
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
2618
2626
|
import { ASTWithSource as ASTWithSource2, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstBoundDeferredTrigger as TmplAstBoundDeferredTrigger2 } from "@angular/compiler";
|
|
2619
2627
|
var TemplateCheckWithVisitor = class {
|
|
2620
2628
|
canVisitStructuralAttributes = true;
|
|
@@ -2653,6 +2661,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
|
2653
2661
|
this.visitAllNodes(element.attributes);
|
|
2654
2662
|
this.visitAllNodes(element.inputs);
|
|
2655
2663
|
this.visitAllNodes(element.outputs);
|
|
2664
|
+
this.visitAllNodes(element.directives);
|
|
2656
2665
|
this.visitAllNodes(element.references);
|
|
2657
2666
|
this.visitAllNodes(element.children);
|
|
2658
2667
|
}
|
|
@@ -2663,6 +2672,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
|
2663
2672
|
this.visitAllNodes(template.inputs);
|
|
2664
2673
|
this.visitAllNodes(template.outputs);
|
|
2665
2674
|
}
|
|
2675
|
+
this.visitAllNodes(template.directives);
|
|
2666
2676
|
if (this.check.canVisitStructuralAttributes || isInlineTemplate) {
|
|
2667
2677
|
this.visitAllNodes(template.templateAttrs);
|
|
2668
2678
|
}
|
|
@@ -2744,6 +2754,20 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
|
2744
2754
|
visitLetDeclaration(decl) {
|
|
2745
2755
|
this.visitAst(decl.value);
|
|
2746
2756
|
}
|
|
2757
|
+
visitComponent(component) {
|
|
2758
|
+
this.visitAllNodes(component.attributes);
|
|
2759
|
+
this.visitAllNodes(component.inputs);
|
|
2760
|
+
this.visitAllNodes(component.outputs);
|
|
2761
|
+
this.visitAllNodes(component.directives);
|
|
2762
|
+
this.visitAllNodes(component.references);
|
|
2763
|
+
this.visitAllNodes(component.children);
|
|
2764
|
+
}
|
|
2765
|
+
visitDirective(directive) {
|
|
2766
|
+
this.visitAllNodes(directive.attributes);
|
|
2767
|
+
this.visitAllNodes(directive.inputs);
|
|
2768
|
+
this.visitAllNodes(directive.outputs);
|
|
2769
|
+
this.visitAllNodes(directive.references);
|
|
2770
|
+
}
|
|
2747
2771
|
getDiagnostics(template) {
|
|
2748
2772
|
this.diagnostics = [];
|
|
2749
2773
|
this.visitAllNodes(template);
|
|
@@ -2751,7 +2775,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
|
2751
2775
|
}
|
|
2752
2776
|
};
|
|
2753
2777
|
|
|
2754
|
-
// bazel-out/
|
|
2778
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
2755
2779
|
var SIGNAL_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["set", "update", "asReadonly"]);
|
|
2756
2780
|
var FUNCTION_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["name", "length", "prototype"]);
|
|
2757
2781
|
var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -2800,7 +2824,7 @@ var factory = {
|
|
|
2800
2824
|
create: () => new InterpolatedSignalCheck()
|
|
2801
2825
|
};
|
|
2802
2826
|
|
|
2803
|
-
// bazel-out/
|
|
2827
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
2804
2828
|
import { TmplAstBoundEvent } from "@angular/compiler";
|
|
2805
2829
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
2806
2830
|
code = ErrorCode.INVALID_BANANA_IN_BOX;
|
|
@@ -2823,7 +2847,7 @@ var factory2 = {
|
|
|
2823
2847
|
create: () => new InvalidBananaInBoxCheck()
|
|
2824
2848
|
};
|
|
2825
2849
|
|
|
2826
|
-
// bazel-out/
|
|
2850
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
2827
2851
|
import { TmplAstTemplate as TmplAstTemplate2 } from "@angular/compiler";
|
|
2828
2852
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
2829
2853
|
["ngIf", { directive: "NgIf", builtIn: "@if" }],
|
|
@@ -2865,7 +2889,7 @@ var factory3 = {
|
|
|
2865
2889
|
}
|
|
2866
2890
|
};
|
|
2867
2891
|
|
|
2868
|
-
// bazel-out/
|
|
2892
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
2869
2893
|
import { TmplAstTemplate as TmplAstTemplate3 } from "@angular/compiler";
|
|
2870
2894
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
2871
2895
|
code = ErrorCode.MISSING_NGFOROF_LET;
|
|
@@ -2895,7 +2919,7 @@ var factory4 = {
|
|
|
2895
2919
|
create: () => new MissingNgForOfLetCheck()
|
|
2896
2920
|
};
|
|
2897
2921
|
|
|
2898
|
-
// bazel-out/
|
|
2922
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
2899
2923
|
import { Binary } from "@angular/compiler";
|
|
2900
2924
|
import ts19 from "typescript";
|
|
2901
2925
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -2938,7 +2962,7 @@ var factory5 = {
|
|
|
2938
2962
|
}
|
|
2939
2963
|
};
|
|
2940
2964
|
|
|
2941
|
-
// bazel-out/
|
|
2965
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
2942
2966
|
import { SafeCall, SafeKeyedRead, SafePropertyRead } from "@angular/compiler";
|
|
2943
2967
|
import ts20 from "typescript";
|
|
2944
2968
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -2982,7 +3006,7 @@ var factory6 = {
|
|
|
2982
3006
|
}
|
|
2983
3007
|
};
|
|
2984
3008
|
|
|
2985
|
-
// bazel-out/
|
|
3009
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/skip_hydration_not_static/index.mjs
|
|
2986
3010
|
import { TmplAstBoundAttribute as TmplAstBoundAttribute2, TmplAstTextAttribute } from "@angular/compiler";
|
|
2987
3011
|
var NG_SKIP_HYDRATION_ATTR_NAME = "ngSkipHydration";
|
|
2988
3012
|
var NgSkipHydrationSpec = class extends TemplateCheckWithVisitor {
|
|
@@ -3008,7 +3032,7 @@ var factory7 = {
|
|
|
3008
3032
|
create: () => new NgSkipHydrationSpec()
|
|
3009
3033
|
};
|
|
3010
3034
|
|
|
3011
|
-
// bazel-out/
|
|
3035
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
3012
3036
|
import { TmplAstBoundAttribute as TmplAstBoundAttribute3 } from "@angular/compiler";
|
|
3013
3037
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
3014
3038
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -3029,7 +3053,7 @@ var factory8 = {
|
|
|
3029
3053
|
create: () => new SuffixNotSupportedCheck()
|
|
3030
3054
|
};
|
|
3031
3055
|
|
|
3032
|
-
// bazel-out/
|
|
3056
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
3033
3057
|
import { TmplAstTextAttribute as TmplAstTextAttribute2 } from "@angular/compiler";
|
|
3034
3058
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
3035
3059
|
code = ErrorCode.TEXT_ATTRIBUTE_NOT_BINDING;
|
|
@@ -3065,7 +3089,7 @@ var factory9 = {
|
|
|
3065
3089
|
create: () => new TextAttributeNotBindingSpec()
|
|
3066
3090
|
};
|
|
3067
3091
|
|
|
3068
|
-
// bazel-out/
|
|
3092
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/uninvoked_function_in_event_binding/index.mjs
|
|
3069
3093
|
import { ASTWithSource as ASTWithSource4, Call, Chain, Conditional, ParsedEventType, PropertyRead as PropertyRead3, SafeCall as SafeCall2, SafePropertyRead as SafePropertyRead2, TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
|
|
3070
3094
|
var UninvokedFunctionInEventBindingSpec = class extends TemplateCheckWithVisitor {
|
|
3071
3095
|
code = ErrorCode.UNINVOKED_FUNCTION_IN_EVENT_BINDING;
|
|
@@ -3114,7 +3138,7 @@ var factory10 = {
|
|
|
3114
3138
|
create: () => new UninvokedFunctionInEventBindingSpec()
|
|
3115
3139
|
};
|
|
3116
3140
|
|
|
3117
|
-
// bazel-out/
|
|
3141
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/unparenthesized_nullish_coalescing/index.mjs
|
|
3118
3142
|
import { Binary as Binary2 } from "@angular/compiler";
|
|
3119
3143
|
var UnparenthesizedNullishCoalescing = class extends TemplateCheckWithVisitor {
|
|
3120
3144
|
code = ErrorCode.UNPARENTHESIZED_NULLISH_COALESCING;
|
|
@@ -3144,7 +3168,7 @@ var factory11 = {
|
|
|
3144
3168
|
create: () => new UnparenthesizedNullishCoalescing()
|
|
3145
3169
|
};
|
|
3146
3170
|
|
|
3147
|
-
// bazel-out/
|
|
3171
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/unused_let_declaration/index.mjs
|
|
3148
3172
|
import { AST, ASTWithSource as ASTWithSource5, TmplAstLetDeclaration } from "@angular/compiler";
|
|
3149
3173
|
var UnusedLetDeclarationCheck = class extends TemplateCheckWithVisitor {
|
|
3150
3174
|
code = ErrorCode.UNUSED_LET_DECLARATION;
|
|
@@ -3186,10 +3210,43 @@ var factory12 = {
|
|
|
3186
3210
|
create: () => new UnusedLetDeclarationCheck()
|
|
3187
3211
|
};
|
|
3188
3212
|
|
|
3189
|
-
// bazel-out/
|
|
3213
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/uninvoked_track_function/index.mjs
|
|
3214
|
+
import { Call as Call2, PropertyRead as PropertyRead4, SafeCall as SafeCall3, SafePropertyRead as SafePropertyRead3, TmplAstForLoopBlock } from "@angular/compiler";
|
|
3215
|
+
var UninvokedTrackFunctionCheck = class extends TemplateCheckWithVisitor {
|
|
3216
|
+
code = ErrorCode.UNINVOKED_TRACK_FUNCTION;
|
|
3217
|
+
visitNode(ctx, component, node) {
|
|
3218
|
+
var _a;
|
|
3219
|
+
if (!(node instanceof TmplAstForLoopBlock) || !node.trackBy) {
|
|
3220
|
+
return [];
|
|
3221
|
+
}
|
|
3222
|
+
if (node.trackBy.ast instanceof Call2 || node.trackBy.ast instanceof SafeCall3) {
|
|
3223
|
+
return [];
|
|
3224
|
+
}
|
|
3225
|
+
if (!(node.trackBy.ast instanceof PropertyRead4) && !(node.trackBy.ast instanceof SafePropertyRead3)) {
|
|
3226
|
+
return [];
|
|
3227
|
+
}
|
|
3228
|
+
const symbol = ctx.templateTypeChecker.getSymbolOfNode(node.trackBy.ast, component);
|
|
3229
|
+
if (symbol !== null && symbol.kind === SymbolKind.Expression && ((_a = symbol.tsType.getCallSignatures()) == null ? void 0 : _a.length) > 0) {
|
|
3230
|
+
const fullExpressionText = generateStringFromExpression2(node.trackBy.ast, node.trackBy.source || "");
|
|
3231
|
+
const errorString = `The track function in the @for block should be invoked: ${fullExpressionText}(/* arguments */)`;
|
|
3232
|
+
return [ctx.makeTemplateDiagnostic(node.sourceSpan, errorString)];
|
|
3233
|
+
}
|
|
3234
|
+
return [];
|
|
3235
|
+
}
|
|
3236
|
+
};
|
|
3237
|
+
function generateStringFromExpression2(expression, source) {
|
|
3238
|
+
return source.substring(expression.span.start, expression.span.end);
|
|
3239
|
+
}
|
|
3240
|
+
var factory13 = {
|
|
3241
|
+
code: ErrorCode.UNINVOKED_TRACK_FUNCTION,
|
|
3242
|
+
name: ExtendedTemplateDiagnosticName.UNINVOKED_TRACK_FUNCTION,
|
|
3243
|
+
create: () => new UninvokedTrackFunctionCheck()
|
|
3244
|
+
};
|
|
3245
|
+
|
|
3246
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
3190
3247
|
import ts21 from "typescript";
|
|
3191
3248
|
|
|
3192
|
-
// bazel-out/
|
|
3249
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
3193
3250
|
var DiagnosticCategoryLabel;
|
|
3194
3251
|
(function(DiagnosticCategoryLabel2) {
|
|
3195
3252
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -3197,7 +3254,7 @@ var DiagnosticCategoryLabel;
|
|
|
3197
3254
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
3198
3255
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
3199
3256
|
|
|
3200
|
-
// bazel-out/
|
|
3257
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
3201
3258
|
var ExtendedTemplateCheckerImpl = class {
|
|
3202
3259
|
partialCtx;
|
|
3203
3260
|
templateChecks;
|
|
@@ -3205,12 +3262,12 @@ var ExtendedTemplateCheckerImpl = class {
|
|
|
3205
3262
|
var _a, _b, _c, _d, _e;
|
|
3206
3263
|
this.partialCtx = { templateTypeChecker, typeChecker };
|
|
3207
3264
|
this.templateChecks = /* @__PURE__ */ new Map();
|
|
3208
|
-
for (const
|
|
3209
|
-
const category = diagnosticLabelToCategory((_e = (_d = (_b = (_a = options == null ? void 0 : options.extendedDiagnostics) == null ? void 0 : _a.checks) == null ? void 0 : _b[
|
|
3265
|
+
for (const factory14 of templateCheckFactories) {
|
|
3266
|
+
const category = diagnosticLabelToCategory((_e = (_d = (_b = (_a = options == null ? void 0 : options.extendedDiagnostics) == null ? void 0 : _a.checks) == null ? void 0 : _b[factory14.name]) != null ? _d : (_c = options == null ? void 0 : options.extendedDiagnostics) == null ? void 0 : _c.defaultCategory) != null ? _e : DiagnosticCategoryLabel.Warning);
|
|
3210
3267
|
if (category === null) {
|
|
3211
3268
|
continue;
|
|
3212
3269
|
}
|
|
3213
|
-
const check =
|
|
3270
|
+
const check = factory14.create(options);
|
|
3214
3271
|
if (check === null) {
|
|
3215
3272
|
continue;
|
|
3216
3273
|
}
|
|
@@ -3252,7 +3309,7 @@ function assertNever(value) {
|
|
|
3252
3309
|
${value}`);
|
|
3253
3310
|
}
|
|
3254
3311
|
|
|
3255
|
-
// bazel-out/
|
|
3312
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
3256
3313
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
3257
3314
|
factory2,
|
|
3258
3315
|
factory5,
|
|
@@ -3265,15 +3322,16 @@ var ALL_DIAGNOSTIC_FACTORIES = [
|
|
|
3265
3322
|
factory10,
|
|
3266
3323
|
factory12,
|
|
3267
3324
|
factory7,
|
|
3268
|
-
factory11
|
|
3325
|
+
factory11,
|
|
3326
|
+
factory13
|
|
3269
3327
|
];
|
|
3270
3328
|
var SUPPORTED_DIAGNOSTIC_NAMES = /* @__PURE__ */ new Set([
|
|
3271
3329
|
ExtendedTemplateDiagnosticName.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION,
|
|
3272
3330
|
ExtendedTemplateDiagnosticName.UNUSED_STANDALONE_IMPORTS,
|
|
3273
|
-
...ALL_DIAGNOSTIC_FACTORIES.map((
|
|
3331
|
+
...ALL_DIAGNOSTIC_FACTORIES.map((factory14) => factory14.name)
|
|
3274
3332
|
]);
|
|
3275
3333
|
|
|
3276
|
-
// bazel-out/
|
|
3334
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/template_semantics/src/template_semantics_checker.mjs
|
|
3277
3335
|
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";
|
|
3278
3336
|
import ts22 from "typescript";
|
|
3279
3337
|
var TemplateSemanticsCheckerImpl = class {
|
|
@@ -3369,7 +3427,7 @@ function unwrapAstWithSource(ast) {
|
|
|
3369
3427
|
return ast instanceof ASTWithSource6 ? ast.ast : ast;
|
|
3370
3428
|
}
|
|
3371
3429
|
|
|
3372
|
-
// bazel-out/
|
|
3430
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/rules/initializer_api_usage_rule.mjs
|
|
3373
3431
|
import ts23 from "typescript";
|
|
3374
3432
|
var APIS_TO_CHECK = [
|
|
3375
3433
|
INPUT_INITIALIZER_FN,
|
|
@@ -3422,7 +3480,7 @@ var InitializerApiUsageRule = class {
|
|
|
3422
3480
|
}
|
|
3423
3481
|
};
|
|
3424
3482
|
|
|
3425
|
-
// bazel-out/
|
|
3483
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/rules/unused_standalone_imports_rule.mjs
|
|
3426
3484
|
import ts24 from "typescript";
|
|
3427
3485
|
var UnusedStandaloneImportsRule = class {
|
|
3428
3486
|
templateTypeChecker;
|
|
@@ -3514,10 +3572,10 @@ function closestNode(start, predicate) {
|
|
|
3514
3572
|
return null;
|
|
3515
3573
|
}
|
|
3516
3574
|
|
|
3517
|
-
// bazel-out/
|
|
3575
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/config.mjs
|
|
3518
3576
|
var UNUSED_STANDALONE_IMPORTS_RULE_ENABLED = true;
|
|
3519
3577
|
|
|
3520
|
-
// bazel-out/
|
|
3578
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/source_file_validator.mjs
|
|
3521
3579
|
var SourceFileValidator = class {
|
|
3522
3580
|
rules;
|
|
3523
3581
|
constructor(reflector, importedSymbolsTracker, templateTypeChecker, typeCheckingConfig) {
|
|
@@ -3559,7 +3617,7 @@ var SourceFileValidator = class {
|
|
|
3559
3617
|
}
|
|
3560
3618
|
};
|
|
3561
3619
|
|
|
3562
|
-
// bazel-out/
|
|
3620
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/core_version.mjs
|
|
3563
3621
|
function coreHasSymbol(program, symbol) {
|
|
3564
3622
|
const checker = program.getTypeChecker();
|
|
3565
3623
|
for (const sf of program.getSourceFiles().filter(isMaybeCore)) {
|
|
@@ -3578,7 +3636,7 @@ function isMaybeCore(sf) {
|
|
|
3578
3636
|
return sf.isDeclarationFile && sf.fileName.includes("@angular/core") && sf.fileName.endsWith("index.d.ts");
|
|
3579
3637
|
}
|
|
3580
3638
|
|
|
3581
|
-
// bazel-out/
|
|
3639
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/feature_detection.mjs
|
|
3582
3640
|
import semver from "semver";
|
|
3583
3641
|
function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
3584
3642
|
if (coreVersion === `0.0.0-${"PLACEHOLDER"}`) {
|
|
@@ -3587,7 +3645,7 @@ function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
|
3587
3645
|
return semver.satisfies(coreVersion, minVersion, { includePrerelease: true });
|
|
3588
3646
|
}
|
|
3589
3647
|
|
|
3590
|
-
// bazel-out/
|
|
3648
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
3591
3649
|
var CompilationTicketKind;
|
|
3592
3650
|
(function(CompilationTicketKind2) {
|
|
3593
3651
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -3963,7 +4021,11 @@ var NgCompiler = class {
|
|
|
3963
4021
|
const printer = ts25.createPrinter();
|
|
3964
4022
|
const nodeText = printer.printNode(ts25.EmitHint.Unspecified, callback, sourceFile);
|
|
3965
4023
|
return ts25.transpileModule(nodeText, {
|
|
3966
|
-
compilerOptions:
|
|
4024
|
+
compilerOptions: {
|
|
4025
|
+
...this.options,
|
|
4026
|
+
module: ts25.ModuleKind.ES2022,
|
|
4027
|
+
target: ts25.ScriptTarget.ES2022
|
|
4028
|
+
},
|
|
3967
4029
|
fileName: sourceFile.fileName,
|
|
3968
4030
|
reportDiagnostics: false
|
|
3969
4031
|
}).outputText;
|
|
@@ -4466,7 +4528,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
4466
4528
|
return versions;
|
|
4467
4529
|
}
|
|
4468
4530
|
|
|
4469
|
-
// bazel-out/
|
|
4531
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
4470
4532
|
import ts26 from "typescript";
|
|
4471
4533
|
var DelegatingCompilerHost = class {
|
|
4472
4534
|
delegate;
|
|
@@ -4640,7 +4702,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost {
|
|
|
4640
4702
|
}
|
|
4641
4703
|
};
|
|
4642
4704
|
|
|
4643
|
-
// bazel-out/
|
|
4705
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
4644
4706
|
var NgtscProgram = class {
|
|
4645
4707
|
options;
|
|
4646
4708
|
compiler;
|
|
@@ -4871,15 +4933,15 @@ function mergeEmitResults(emitResults) {
|
|
|
4871
4933
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
4872
4934
|
}
|
|
4873
4935
|
|
|
4874
|
-
// bazel-out/
|
|
4936
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
4875
4937
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
4876
4938
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
4877
4939
|
}
|
|
4878
4940
|
|
|
4879
|
-
// bazel-out/
|
|
4941
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
4880
4942
|
import ts29 from "typescript";
|
|
4881
4943
|
|
|
4882
|
-
// bazel-out/
|
|
4944
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
4883
4945
|
import ts28 from "typescript";
|
|
4884
4946
|
function createMessageDiagnostic(messageText) {
|
|
4885
4947
|
return {
|
|
@@ -4893,7 +4955,7 @@ function createMessageDiagnostic(messageText) {
|
|
|
4893
4955
|
};
|
|
4894
4956
|
}
|
|
4895
4957
|
|
|
4896
|
-
// bazel-out/
|
|
4958
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
4897
4959
|
var defaultFormatHost = {
|
|
4898
4960
|
getCurrentDirectory: () => ts29.sys.getCurrentDirectory(),
|
|
4899
4961
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -5126,4 +5188,4 @@ export {
|
|
|
5126
5188
|
* Use of this source code is governed by an MIT-style license that can be
|
|
5127
5189
|
* found in the LICENSE file at https://angular.dev/license
|
|
5128
5190
|
*/
|
|
5129
|
-
//# sourceMappingURL=chunk-
|
|
5191
|
+
//# sourceMappingURL=chunk-JSHLK5PX.js.map
|