@angular/compiler-cli 20.0.0-next.2 → 20.0.0-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/{chunk-7HRFJETP.js → chunk-2DGDPAPS.js} +45 -47
- package/bundles/chunk-2DGDPAPS.js.map +6 -0
- package/bundles/{chunk-B73DMM7T.js → chunk-4SDRFXKJ.js} +5 -5
- package/bundles/{chunk-77D5CI2U.js → chunk-5UDS2TPQ.js} +7 -7
- package/bundles/{chunk-RFDMMGNB.js → chunk-7CTS3DE5.js} +160 -127
- package/bundles/{chunk-RFDMMGNB.js.map → chunk-7CTS3DE5.js.map} +3 -3
- package/bundles/{chunk-SWJRL4N4.js → chunk-DT3KYPVN.js} +31 -31
- package/bundles/{chunk-FKXFEX7K.js → chunk-GBKXY6BH.js} +3 -3
- package/bundles/{chunk-CD575TJ6.js → chunk-GDREVFAO.js} +7624 -7182
- package/bundles/chunk-GDREVFAO.js.map +6 -0
- package/bundles/{chunk-PAYJFU4V.js → chunk-HIV6YFKL.js} +12 -12
- package/bundles/{chunk-Q2WE7ECN.js → chunk-I6R3GL3L.js} +5 -5
- package/bundles/{chunk-37JMVF7H.js → chunk-STORTTKY.js} +8 -8
- package/bundles/{chunk-FVYXSSAL.js → chunk-YUAM2GYT.js} +3 -3
- 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 +3 -3
- package/src/ngtsc/annotations/component/src/handler.d.ts +2 -1
- package/src/ngtsc/annotations/component/src/metadata.d.ts +3 -0
- package/src/ngtsc/annotations/directive/src/handler.d.ts +12 -3
- package/src/ngtsc/annotations/directive/src/shared.d.ts +10 -4
- package/src/ngtsc/core/api/src/options.d.ts +2 -2
- package/src/ngtsc/core/api/src/public_options.d.ts +4 -2
- package/src/ngtsc/diagnostics/src/error_code.d.ts +4 -0
- package/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.d.ts +2 -1
- package/src/ngtsc/metadata/src/resource_registry.d.ts +4 -1
- package/src/ngtsc/typecheck/api/api.d.ts +1 -1
- package/src/ngtsc/typecheck/api/checker.d.ts +5 -1
- package/src/ngtsc/typecheck/api/context.d.ts +11 -2
- package/src/ngtsc/typecheck/extended/checks/unparenthesized_nullish_coalescing/index.d.ts +10 -0
- package/src/ngtsc/typecheck/index.d.ts +1 -0
- package/src/ngtsc/typecheck/src/checker.d.ts +2 -1
- package/src/ngtsc/typecheck/src/context.d.ts +7 -3
- package/src/ngtsc/typecheck/src/dom.d.ts +15 -4
- package/src/ngtsc/typecheck/src/host_bindings.d.ts +31 -0
- package/src/ngtsc/typecheck/src/source.d.ts +5 -13
- package/src/ngtsc/typecheck/src/tcb_util.d.ts +8 -0
- package/src/ngtsc/typecheck/src/ts_util.d.ts +1 -1
- package/src/ngtsc/typecheck/src/type_check_block.d.ts +7 -3
- package/bundles/chunk-7HRFJETP.js.map +0 -6
- package/bundles/chunk-CD575TJ6.js.map +0 -6
- /package/bundles/{chunk-B73DMM7T.js.map → chunk-4SDRFXKJ.js.map} +0 -0
- /package/bundles/{chunk-77D5CI2U.js.map → chunk-5UDS2TPQ.js.map} +0 -0
- /package/bundles/{chunk-SWJRL4N4.js.map → chunk-DT3KYPVN.js.map} +0 -0
- /package/bundles/{chunk-FKXFEX7K.js.map → chunk-GBKXY6BH.js.map} +0 -0
- /package/bundles/{chunk-PAYJFU4V.js.map → chunk-HIV6YFKL.js.map} +0 -0
- /package/bundles/{chunk-Q2WE7ECN.js.map → chunk-I6R3GL3L.js.map} +0 -0
- /package/bundles/{chunk-37JMVF7H.js.map → chunk-STORTTKY.js.map} +0 -0
- /package/bundles/{chunk-FVYXSSAL.js.map → chunk-YUAM2GYT.js.map} +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
angularJitApplicationTransform
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HIV6YFKL.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-GDREVFAO.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-2DGDPAPS.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;
|
|
@@ -2207,7 +2207,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
2207
2207
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
2208
2208
|
}
|
|
2209
2209
|
|
|
2210
|
-
// bazel-out/
|
|
2210
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
2211
2211
|
function generateAnalysis(context) {
|
|
2212
2212
|
const analysis = /* @__PURE__ */ new Map();
|
|
2213
2213
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -2243,7 +2243,7 @@ function generateAnalysis(context) {
|
|
|
2243
2243
|
return analysis;
|
|
2244
2244
|
}
|
|
2245
2245
|
|
|
2246
|
-
// bazel-out/
|
|
2246
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
2247
2247
|
var NgModuleIndexImpl = class {
|
|
2248
2248
|
metaReader;
|
|
2249
2249
|
localReader;
|
|
@@ -2334,7 +2334,7 @@ var NgModuleIndexImpl = class {
|
|
|
2334
2334
|
}
|
|
2335
2335
|
};
|
|
2336
2336
|
|
|
2337
|
-
// bazel-out/
|
|
2337
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
2338
2338
|
import ts17 from "typescript";
|
|
2339
2339
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
2340
2340
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -2492,7 +2492,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
2492
2492
|
};
|
|
2493
2493
|
}
|
|
2494
2494
|
|
|
2495
|
-
// bazel-out/
|
|
2495
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
2496
2496
|
var StandaloneComponentScopeReader = class {
|
|
2497
2497
|
metaReader;
|
|
2498
2498
|
localModuleReader;
|
|
@@ -2591,10 +2591,10 @@ var StandaloneComponentScopeReader = class {
|
|
|
2591
2591
|
}
|
|
2592
2592
|
};
|
|
2593
2593
|
|
|
2594
|
-
// bazel-out/
|
|
2594
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
2595
2595
|
import { ASTWithSource as ASTWithSource3, BindingType, Interpolation, PropertyRead as PropertyRead2, TmplAstBoundAttribute } from "@angular/compiler";
|
|
2596
2596
|
|
|
2597
|
-
// bazel-out/
|
|
2597
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/symbol_util.mjs
|
|
2598
2598
|
import ts18 from "typescript";
|
|
2599
2599
|
var SIGNAL_FNS = /* @__PURE__ */ new Set([
|
|
2600
2600
|
"WritableSignal",
|
|
@@ -2614,7 +2614,7 @@ function isSignalSymbol(symbol) {
|
|
|
2614
2614
|
});
|
|
2615
2615
|
}
|
|
2616
2616
|
|
|
2617
|
-
// bazel-out/
|
|
2617
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
2618
2618
|
import { ASTWithSource as ASTWithSource2, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstBoundDeferredTrigger as TmplAstBoundDeferredTrigger2 } from "@angular/compiler";
|
|
2619
2619
|
var TemplateCheckWithVisitor = class {
|
|
2620
2620
|
canVisitStructuralAttributes = true;
|
|
@@ -2751,7 +2751,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
|
2751
2751
|
}
|
|
2752
2752
|
};
|
|
2753
2753
|
|
|
2754
|
-
// bazel-out/
|
|
2754
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
2755
2755
|
var SIGNAL_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["set", "update", "asReadonly"]);
|
|
2756
2756
|
var FUNCTION_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["name", "length", "prototype"]);
|
|
2757
2757
|
var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -2800,7 +2800,7 @@ var factory = {
|
|
|
2800
2800
|
create: () => new InterpolatedSignalCheck()
|
|
2801
2801
|
};
|
|
2802
2802
|
|
|
2803
|
-
// bazel-out/
|
|
2803
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
2804
2804
|
import { TmplAstBoundEvent } from "@angular/compiler";
|
|
2805
2805
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
2806
2806
|
code = ErrorCode.INVALID_BANANA_IN_BOX;
|
|
@@ -2823,7 +2823,7 @@ var factory2 = {
|
|
|
2823
2823
|
create: () => new InvalidBananaInBoxCheck()
|
|
2824
2824
|
};
|
|
2825
2825
|
|
|
2826
|
-
// bazel-out/
|
|
2826
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
2827
2827
|
import { TmplAstTemplate as TmplAstTemplate2 } from "@angular/compiler";
|
|
2828
2828
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
2829
2829
|
["ngIf", { directive: "NgIf", builtIn: "@if" }],
|
|
@@ -2865,7 +2865,7 @@ var factory3 = {
|
|
|
2865
2865
|
}
|
|
2866
2866
|
};
|
|
2867
2867
|
|
|
2868
|
-
// bazel-out/
|
|
2868
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
2869
2869
|
import { TmplAstTemplate as TmplAstTemplate3 } from "@angular/compiler";
|
|
2870
2870
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
2871
2871
|
code = ErrorCode.MISSING_NGFOROF_LET;
|
|
@@ -2895,7 +2895,7 @@ var factory4 = {
|
|
|
2895
2895
|
create: () => new MissingNgForOfLetCheck()
|
|
2896
2896
|
};
|
|
2897
2897
|
|
|
2898
|
-
// bazel-out/
|
|
2898
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
2899
2899
|
import { Binary } from "@angular/compiler";
|
|
2900
2900
|
import ts19 from "typescript";
|
|
2901
2901
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -2938,7 +2938,7 @@ var factory5 = {
|
|
|
2938
2938
|
}
|
|
2939
2939
|
};
|
|
2940
2940
|
|
|
2941
|
-
// bazel-out/
|
|
2941
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
2942
2942
|
import { SafeCall, SafeKeyedRead, SafePropertyRead } from "@angular/compiler";
|
|
2943
2943
|
import ts20 from "typescript";
|
|
2944
2944
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -2982,13 +2982,39 @@ var factory6 = {
|
|
|
2982
2982
|
}
|
|
2983
2983
|
};
|
|
2984
2984
|
|
|
2985
|
-
// bazel-out/
|
|
2986
|
-
import { TmplAstBoundAttribute as TmplAstBoundAttribute2 } from "@angular/compiler";
|
|
2985
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/skip_hydration_not_static/index.mjs
|
|
2986
|
+
import { TmplAstBoundAttribute as TmplAstBoundAttribute2, TmplAstTextAttribute } from "@angular/compiler";
|
|
2987
|
+
var NG_SKIP_HYDRATION_ATTR_NAME = "ngSkipHydration";
|
|
2988
|
+
var NgSkipHydrationSpec = class extends TemplateCheckWithVisitor {
|
|
2989
|
+
code = ErrorCode.SKIP_HYDRATION_NOT_STATIC;
|
|
2990
|
+
visitNode(ctx, component, node) {
|
|
2991
|
+
if (node instanceof TmplAstBoundAttribute2 && node.name === NG_SKIP_HYDRATION_ATTR_NAME) {
|
|
2992
|
+
const errorString = `ngSkipHydration should not be used as a binding.`;
|
|
2993
|
+
const diagnostic = ctx.makeTemplateDiagnostic(node.sourceSpan, errorString);
|
|
2994
|
+
return [diagnostic];
|
|
2995
|
+
}
|
|
2996
|
+
const acceptedValues = ["true", ""];
|
|
2997
|
+
if (node instanceof TmplAstTextAttribute && node.name === NG_SKIP_HYDRATION_ATTR_NAME && !acceptedValues.includes(node.value) && node.value !== void 0) {
|
|
2998
|
+
const errorString = `ngSkipHydration only accepts "true" or "" as value or no value at all. For example 'ngSkipHydration="true"' or 'ngSkipHydration'`;
|
|
2999
|
+
const diagnostic = ctx.makeTemplateDiagnostic(node.sourceSpan, errorString);
|
|
3000
|
+
return [diagnostic];
|
|
3001
|
+
}
|
|
3002
|
+
return [];
|
|
3003
|
+
}
|
|
3004
|
+
};
|
|
3005
|
+
var factory7 = {
|
|
3006
|
+
code: ErrorCode.SKIP_HYDRATION_NOT_STATIC,
|
|
3007
|
+
name: ExtendedTemplateDiagnosticName.SKIP_HYDRATION_NOT_STATIC,
|
|
3008
|
+
create: () => new NgSkipHydrationSpec()
|
|
3009
|
+
};
|
|
3010
|
+
|
|
3011
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
3012
|
+
import { TmplAstBoundAttribute as TmplAstBoundAttribute3 } from "@angular/compiler";
|
|
2987
3013
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
2988
3014
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
2989
3015
|
code = ErrorCode.SUFFIX_NOT_SUPPORTED;
|
|
2990
3016
|
visitNode(ctx, component, node) {
|
|
2991
|
-
if (!(node instanceof
|
|
3017
|
+
if (!(node instanceof TmplAstBoundAttribute3))
|
|
2992
3018
|
return [];
|
|
2993
3019
|
if (!node.keySpan.toString().startsWith("attr.") || !STYLE_SUFFIXES.some((suffix) => node.name.endsWith(`.${suffix}`))) {
|
|
2994
3020
|
return [];
|
|
@@ -2997,18 +3023,18 @@ var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
|
2997
3023
|
return [diagnostic];
|
|
2998
3024
|
}
|
|
2999
3025
|
};
|
|
3000
|
-
var
|
|
3026
|
+
var factory8 = {
|
|
3001
3027
|
code: ErrorCode.SUFFIX_NOT_SUPPORTED,
|
|
3002
3028
|
name: ExtendedTemplateDiagnosticName.SUFFIX_NOT_SUPPORTED,
|
|
3003
3029
|
create: () => new SuffixNotSupportedCheck()
|
|
3004
3030
|
};
|
|
3005
3031
|
|
|
3006
|
-
// bazel-out/
|
|
3007
|
-
import { TmplAstTextAttribute } from "@angular/compiler";
|
|
3032
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
3033
|
+
import { TmplAstTextAttribute as TmplAstTextAttribute2 } from "@angular/compiler";
|
|
3008
3034
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
3009
3035
|
code = ErrorCode.TEXT_ATTRIBUTE_NOT_BINDING;
|
|
3010
3036
|
visitNode(ctx, component, node) {
|
|
3011
|
-
if (!(node instanceof
|
|
3037
|
+
if (!(node instanceof TmplAstTextAttribute2))
|
|
3012
3038
|
return [];
|
|
3013
3039
|
const name = node.name;
|
|
3014
3040
|
if (!name.startsWith("attr.") && !name.startsWith("style.") && !name.startsWith("class.")) {
|
|
@@ -3033,13 +3059,13 @@ var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
|
3033
3059
|
return [diagnostic];
|
|
3034
3060
|
}
|
|
3035
3061
|
};
|
|
3036
|
-
var
|
|
3062
|
+
var factory9 = {
|
|
3037
3063
|
code: ErrorCode.TEXT_ATTRIBUTE_NOT_BINDING,
|
|
3038
3064
|
name: ExtendedTemplateDiagnosticName.TEXT_ATTRIBUTE_NOT_BINDING,
|
|
3039
3065
|
create: () => new TextAttributeNotBindingSpec()
|
|
3040
3066
|
};
|
|
3041
3067
|
|
|
3042
|
-
// bazel-out/
|
|
3068
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/uninvoked_function_in_event_binding/index.mjs
|
|
3043
3069
|
import { ASTWithSource as ASTWithSource4, Call, Chain, Conditional, ParsedEventType, PropertyRead as PropertyRead3, SafeCall as SafeCall2, SafePropertyRead as SafePropertyRead2, TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
|
|
3044
3070
|
var UninvokedFunctionInEventBindingSpec = class extends TemplateCheckWithVisitor {
|
|
3045
3071
|
code = ErrorCode.UNINVOKED_FUNCTION_IN_EVENT_BINDING;
|
|
@@ -3082,13 +3108,43 @@ function assertExpressionInvoked(expression, component, node, expressionText, ct
|
|
|
3082
3108
|
function generateStringFromExpression(expression, source) {
|
|
3083
3109
|
return source.substring(expression.span.start, expression.span.end);
|
|
3084
3110
|
}
|
|
3085
|
-
var
|
|
3111
|
+
var factory10 = {
|
|
3086
3112
|
code: ErrorCode.UNINVOKED_FUNCTION_IN_EVENT_BINDING,
|
|
3087
3113
|
name: ExtendedTemplateDiagnosticName.UNINVOKED_FUNCTION_IN_EVENT_BINDING,
|
|
3088
3114
|
create: () => new UninvokedFunctionInEventBindingSpec()
|
|
3089
3115
|
};
|
|
3090
3116
|
|
|
3091
|
-
// bazel-out/
|
|
3117
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/unparenthesized_nullish_coalescing/index.mjs
|
|
3118
|
+
import { Binary as Binary2 } from "@angular/compiler";
|
|
3119
|
+
var UnparenthesizedNullishCoalescing = class extends TemplateCheckWithVisitor {
|
|
3120
|
+
code = ErrorCode.UNPARENTHESIZED_NULLISH_COALESCING;
|
|
3121
|
+
visitNode(ctx, component, node) {
|
|
3122
|
+
if (node instanceof Binary2) {
|
|
3123
|
+
if (node.operation === "&&" || node.operation === "||") {
|
|
3124
|
+
if (node.left instanceof Binary2 && node.left.operation === "??" || node.right instanceof Binary2 && node.right.operation === "??") {
|
|
3125
|
+
const symbol = ctx.templateTypeChecker.getSymbolOfNode(node, component);
|
|
3126
|
+
if ((symbol == null ? void 0 : symbol.kind) !== SymbolKind.Expression) {
|
|
3127
|
+
return [];
|
|
3128
|
+
}
|
|
3129
|
+
const sourceMapping = ctx.templateTypeChecker.getSourceMappingAtTcbLocation(symbol.tcbLocation);
|
|
3130
|
+
if (sourceMapping === null) {
|
|
3131
|
+
return [];
|
|
3132
|
+
}
|
|
3133
|
+
const diagnostic = ctx.makeTemplateDiagnostic(sourceMapping.span, `Parentheses are required to disambiguate precedence when mixing '??' with '&&' and '||'.`);
|
|
3134
|
+
return [diagnostic];
|
|
3135
|
+
}
|
|
3136
|
+
}
|
|
3137
|
+
}
|
|
3138
|
+
return [];
|
|
3139
|
+
}
|
|
3140
|
+
};
|
|
3141
|
+
var factory11 = {
|
|
3142
|
+
code: ErrorCode.UNPARENTHESIZED_NULLISH_COALESCING,
|
|
3143
|
+
name: ExtendedTemplateDiagnosticName.UNPARENTHESIZED_NULLISH_COALESCING,
|
|
3144
|
+
create: () => new UnparenthesizedNullishCoalescing()
|
|
3145
|
+
};
|
|
3146
|
+
|
|
3147
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/unused_let_declaration/index.mjs
|
|
3092
3148
|
import { AST, ASTWithSource as ASTWithSource5, TmplAstLetDeclaration } from "@angular/compiler";
|
|
3093
3149
|
var UnusedLetDeclarationCheck = class extends TemplateCheckWithVisitor {
|
|
3094
3150
|
code = ErrorCode.UNUSED_LET_DECLARATION;
|
|
@@ -3124,42 +3180,16 @@ var UnusedLetDeclarationCheck = class extends TemplateCheckWithVisitor {
|
|
|
3124
3180
|
return this.analysis.get(node);
|
|
3125
3181
|
}
|
|
3126
3182
|
};
|
|
3127
|
-
var
|
|
3183
|
+
var factory12 = {
|
|
3128
3184
|
code: ErrorCode.UNUSED_LET_DECLARATION,
|
|
3129
3185
|
name: ExtendedTemplateDiagnosticName.UNUSED_LET_DECLARATION,
|
|
3130
3186
|
create: () => new UnusedLetDeclarationCheck()
|
|
3131
3187
|
};
|
|
3132
3188
|
|
|
3133
|
-
// bazel-out/
|
|
3134
|
-
import { TmplAstBoundAttribute as TmplAstBoundAttribute3, TmplAstTextAttribute as TmplAstTextAttribute2 } from "@angular/compiler";
|
|
3135
|
-
var NG_SKIP_HYDRATION_ATTR_NAME = "ngSkipHydration";
|
|
3136
|
-
var NgSkipHydrationSpec = class extends TemplateCheckWithVisitor {
|
|
3137
|
-
code = ErrorCode.SKIP_HYDRATION_NOT_STATIC;
|
|
3138
|
-
visitNode(ctx, component, node) {
|
|
3139
|
-
if (node instanceof TmplAstBoundAttribute3 && node.name === NG_SKIP_HYDRATION_ATTR_NAME) {
|
|
3140
|
-
const errorString = `ngSkipHydration should not be used as a binding.`;
|
|
3141
|
-
const diagnostic = ctx.makeTemplateDiagnostic(node.sourceSpan, errorString);
|
|
3142
|
-
return [diagnostic];
|
|
3143
|
-
}
|
|
3144
|
-
const acceptedValues = ["true", ""];
|
|
3145
|
-
if (node instanceof TmplAstTextAttribute2 && node.name === NG_SKIP_HYDRATION_ATTR_NAME && !acceptedValues.includes(node.value) && node.value !== void 0) {
|
|
3146
|
-
const errorString = `ngSkipHydration only accepts "true" or "" as value or no value at all. For example 'ngSkipHydration="true"' or 'ngSkipHydration'`;
|
|
3147
|
-
const diagnostic = ctx.makeTemplateDiagnostic(node.sourceSpan, errorString);
|
|
3148
|
-
return [diagnostic];
|
|
3149
|
-
}
|
|
3150
|
-
return [];
|
|
3151
|
-
}
|
|
3152
|
-
};
|
|
3153
|
-
var factory11 = {
|
|
3154
|
-
code: ErrorCode.SKIP_HYDRATION_NOT_STATIC,
|
|
3155
|
-
name: ExtendedTemplateDiagnosticName.SKIP_HYDRATION_NOT_STATIC,
|
|
3156
|
-
create: () => new NgSkipHydrationSpec()
|
|
3157
|
-
};
|
|
3158
|
-
|
|
3159
|
-
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
3189
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
3160
3190
|
import ts21 from "typescript";
|
|
3161
3191
|
|
|
3162
|
-
// bazel-out/
|
|
3192
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
3163
3193
|
var DiagnosticCategoryLabel;
|
|
3164
3194
|
(function(DiagnosticCategoryLabel2) {
|
|
3165
3195
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -3167,7 +3197,7 @@ var DiagnosticCategoryLabel;
|
|
|
3167
3197
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
3168
3198
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
3169
3199
|
|
|
3170
|
-
// bazel-out/
|
|
3200
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
3171
3201
|
var ExtendedTemplateCheckerImpl = class {
|
|
3172
3202
|
partialCtx;
|
|
3173
3203
|
templateChecks;
|
|
@@ -3175,12 +3205,12 @@ var ExtendedTemplateCheckerImpl = class {
|
|
|
3175
3205
|
var _a, _b, _c, _d, _e;
|
|
3176
3206
|
this.partialCtx = { templateTypeChecker, typeChecker };
|
|
3177
3207
|
this.templateChecks = /* @__PURE__ */ new Map();
|
|
3178
|
-
for (const
|
|
3179
|
-
const category = diagnosticLabelToCategory((_e = (_d = (_b = (_a = options == null ? void 0 : options.extendedDiagnostics) == null ? void 0 : _a.checks) == null ? void 0 : _b[
|
|
3208
|
+
for (const factory13 of templateCheckFactories) {
|
|
3209
|
+
const category = diagnosticLabelToCategory((_e = (_d = (_b = (_a = options == null ? void 0 : options.extendedDiagnostics) == null ? void 0 : _a.checks) == null ? void 0 : _b[factory13.name]) != null ? _d : (_c = options == null ? void 0 : options.extendedDiagnostics) == null ? void 0 : _c.defaultCategory) != null ? _e : DiagnosticCategoryLabel.Warning);
|
|
3180
3210
|
if (category === null) {
|
|
3181
3211
|
continue;
|
|
3182
3212
|
}
|
|
3183
|
-
const check =
|
|
3213
|
+
const check = factory13.create(options);
|
|
3184
3214
|
if (check === null) {
|
|
3185
3215
|
continue;
|
|
3186
3216
|
}
|
|
@@ -3222,27 +3252,28 @@ function assertNever(value) {
|
|
|
3222
3252
|
${value}`);
|
|
3223
3253
|
}
|
|
3224
3254
|
|
|
3225
|
-
// bazel-out/
|
|
3255
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
3226
3256
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
3227
3257
|
factory2,
|
|
3228
3258
|
factory5,
|
|
3229
3259
|
factory6,
|
|
3230
3260
|
factory3,
|
|
3231
|
-
|
|
3261
|
+
factory9,
|
|
3232
3262
|
factory4,
|
|
3233
|
-
|
|
3263
|
+
factory8,
|
|
3234
3264
|
factory,
|
|
3235
|
-
factory9,
|
|
3236
3265
|
factory10,
|
|
3266
|
+
factory12,
|
|
3267
|
+
factory7,
|
|
3237
3268
|
factory11
|
|
3238
3269
|
];
|
|
3239
3270
|
var SUPPORTED_DIAGNOSTIC_NAMES = /* @__PURE__ */ new Set([
|
|
3240
3271
|
ExtendedTemplateDiagnosticName.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION,
|
|
3241
3272
|
ExtendedTemplateDiagnosticName.UNUSED_STANDALONE_IMPORTS,
|
|
3242
|
-
...ALL_DIAGNOSTIC_FACTORIES.map((
|
|
3273
|
+
...ALL_DIAGNOSTIC_FACTORIES.map((factory13) => factory13.name)
|
|
3243
3274
|
]);
|
|
3244
3275
|
|
|
3245
|
-
// bazel-out/
|
|
3276
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/template_semantics/src/template_semantics_checker.mjs
|
|
3246
3277
|
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";
|
|
3247
3278
|
import ts22 from "typescript";
|
|
3248
3279
|
var TemplateSemanticsCheckerImpl = class {
|
|
@@ -3338,7 +3369,7 @@ function unwrapAstWithSource(ast) {
|
|
|
3338
3369
|
return ast instanceof ASTWithSource6 ? ast.ast : ast;
|
|
3339
3370
|
}
|
|
3340
3371
|
|
|
3341
|
-
// bazel-out/
|
|
3372
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/rules/initializer_api_usage_rule.mjs
|
|
3342
3373
|
import ts23 from "typescript";
|
|
3343
3374
|
var APIS_TO_CHECK = [
|
|
3344
3375
|
INPUT_INITIALIZER_FN,
|
|
@@ -3391,7 +3422,7 @@ var InitializerApiUsageRule = class {
|
|
|
3391
3422
|
}
|
|
3392
3423
|
};
|
|
3393
3424
|
|
|
3394
|
-
// bazel-out/
|
|
3425
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/rules/unused_standalone_imports_rule.mjs
|
|
3395
3426
|
import ts24 from "typescript";
|
|
3396
3427
|
var UnusedStandaloneImportsRule = class {
|
|
3397
3428
|
templateTypeChecker;
|
|
@@ -3483,10 +3514,10 @@ function closestNode(start, predicate) {
|
|
|
3483
3514
|
return null;
|
|
3484
3515
|
}
|
|
3485
3516
|
|
|
3486
|
-
// bazel-out/
|
|
3517
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/config.mjs
|
|
3487
3518
|
var UNUSED_STANDALONE_IMPORTS_RULE_ENABLED = true;
|
|
3488
3519
|
|
|
3489
|
-
// bazel-out/
|
|
3520
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/source_file_validator.mjs
|
|
3490
3521
|
var SourceFileValidator = class {
|
|
3491
3522
|
rules;
|
|
3492
3523
|
constructor(reflector, importedSymbolsTracker, templateTypeChecker, typeCheckingConfig) {
|
|
@@ -3528,7 +3559,7 @@ var SourceFileValidator = class {
|
|
|
3528
3559
|
}
|
|
3529
3560
|
};
|
|
3530
3561
|
|
|
3531
|
-
// bazel-out/
|
|
3562
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/core_version.mjs
|
|
3532
3563
|
function coreHasSymbol(program, symbol) {
|
|
3533
3564
|
const checker = program.getTypeChecker();
|
|
3534
3565
|
for (const sf of program.getSourceFiles().filter(isMaybeCore)) {
|
|
@@ -3547,7 +3578,7 @@ function isMaybeCore(sf) {
|
|
|
3547
3578
|
return sf.isDeclarationFile && sf.fileName.includes("@angular/core") && sf.fileName.endsWith("index.d.ts");
|
|
3548
3579
|
}
|
|
3549
3580
|
|
|
3550
|
-
// bazel-out/
|
|
3581
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/feature_detection.mjs
|
|
3551
3582
|
import semver from "semver";
|
|
3552
3583
|
function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
3553
3584
|
if (coreVersion === `0.0.0-${"PLACEHOLDER"}`) {
|
|
@@ -3556,7 +3587,7 @@ function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
|
3556
3587
|
return semver.satisfies(coreVersion, minVersion, { includePrerelease: true });
|
|
3557
3588
|
}
|
|
3558
3589
|
|
|
3559
|
-
// bazel-out/
|
|
3590
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
3560
3591
|
var CompilationTicketKind;
|
|
3561
3592
|
(function(CompilationTicketKind2) {
|
|
3562
3593
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -3815,7 +3846,8 @@ var NgCompiler = class {
|
|
|
3815
3846
|
const { resourceRegistry } = this.ensureAnalyzed();
|
|
3816
3847
|
const styles = resourceRegistry.getStyles(classDecl);
|
|
3817
3848
|
const template = resourceRegistry.getTemplate(classDecl);
|
|
3818
|
-
|
|
3849
|
+
const hostBindings = resourceRegistry.getHostBindings(classDecl);
|
|
3850
|
+
return { styles, template, hostBindings };
|
|
3819
3851
|
}
|
|
3820
3852
|
getMeta(classDecl) {
|
|
3821
3853
|
var _a;
|
|
@@ -4135,7 +4167,7 @@ var NgCompiler = class {
|
|
|
4135
4167
|
return diagnostics;
|
|
4136
4168
|
}
|
|
4137
4169
|
makeCompilation() {
|
|
4138
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
4170
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4139
4171
|
const isCore = (_a = this.options._isAngularCoreCompilation) != null ? _a : isAngularCorePackage(this.inputProgram);
|
|
4140
4172
|
let compilationMode = CompilationMode.FULL;
|
|
4141
4173
|
if (!isCore) {
|
|
@@ -4220,6 +4252,7 @@ var NgCompiler = class {
|
|
|
4220
4252
|
const supportJitMode = (_c = this.options["supportJitMode"]) != null ? _c : true;
|
|
4221
4253
|
const supportTestBed = (_d = this.options["supportTestBed"]) != null ? _d : true;
|
|
4222
4254
|
const externalRuntimeStyles = (_e = this.options["externalRuntimeStyles"]) != null ? _e : false;
|
|
4255
|
+
const typeCheckHostBindings = (_f = this.options.typeCheckHostBindings) != null ? _f : false;
|
|
4223
4256
|
if (supportTestBed === false && compilationMode === CompilationMode.PARTIAL) {
|
|
4224
4257
|
throw new Error('TestBed support ("supportTestBed" option) cannot be disabled in partial compilation mode.');
|
|
4225
4258
|
}
|
|
@@ -4231,11 +4264,11 @@ var NgCompiler = class {
|
|
|
4231
4264
|
}
|
|
4232
4265
|
const jitDeclarationRegistry = new JitDeclarationRegistry();
|
|
4233
4266
|
const handlers = [
|
|
4234
|
-
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, (
|
|
4235
|
-
new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, importTracker, supportTestBed, compilationMode, jitDeclarationRegistry, !!this.options.strictStandalone, this.implicitStandaloneValue),
|
|
4267
|
+
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),
|
|
4268
|
+
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),
|
|
4236
4269
|
new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder, supportTestBed, compilationMode, !!this.options.generateExtraImportsInLocalMode, !!this.options.strictStandalone, this.implicitStandaloneValue),
|
|
4237
4270
|
new InjectableDecoratorHandler(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, compilationMode),
|
|
4238
|
-
new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, this.closureCompilerEnabled, (
|
|
4271
|
+
new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, this.closureCompilerEnabled, (_h = this.options.onlyPublishPublicTypingsForNgModules) != null ? _h : false, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, supportJitMode, compilationMode, localCompilationExtraImportsTracker, jitDeclarationRegistry)
|
|
4239
4272
|
];
|
|
4240
4273
|
const traitCompiler = new TraitCompiler(handlers, reflector, this.delegatingPerfRecorder, this.incrementalCompilation, this.options.compileNonExportedClasses !== false, compilationMode, dtsTransforms, semanticDepGraphUpdater, this.adapter);
|
|
4241
4274
|
const notifyingDriver = new NotifyingProgramDriverWrapper(this.programDriver, (program) => {
|
|
@@ -4433,7 +4466,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
4433
4466
|
return versions;
|
|
4434
4467
|
}
|
|
4435
4468
|
|
|
4436
|
-
// bazel-out/
|
|
4469
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
4437
4470
|
import ts26 from "typescript";
|
|
4438
4471
|
var DelegatingCompilerHost = class {
|
|
4439
4472
|
delegate;
|
|
@@ -4607,7 +4640,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost {
|
|
|
4607
4640
|
}
|
|
4608
4641
|
};
|
|
4609
4642
|
|
|
4610
|
-
// bazel-out/
|
|
4643
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
4611
4644
|
var NgtscProgram = class {
|
|
4612
4645
|
options;
|
|
4613
4646
|
compiler;
|
|
@@ -4838,15 +4871,15 @@ function mergeEmitResults(emitResults) {
|
|
|
4838
4871
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
4839
4872
|
}
|
|
4840
4873
|
|
|
4841
|
-
// bazel-out/
|
|
4874
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
4842
4875
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
4843
4876
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
4844
4877
|
}
|
|
4845
4878
|
|
|
4846
|
-
// bazel-out/
|
|
4879
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
4847
4880
|
import ts29 from "typescript";
|
|
4848
4881
|
|
|
4849
|
-
// bazel-out/
|
|
4882
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
4850
4883
|
import ts28 from "typescript";
|
|
4851
4884
|
function createMessageDiagnostic(messageText) {
|
|
4852
4885
|
return {
|
|
@@ -4860,7 +4893,7 @@ function createMessageDiagnostic(messageText) {
|
|
|
4860
4893
|
};
|
|
4861
4894
|
}
|
|
4862
4895
|
|
|
4863
|
-
// bazel-out/
|
|
4896
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
4864
4897
|
var defaultFormatHost = {
|
|
4865
4898
|
getCurrentDirectory: () => ts29.sys.getCurrentDirectory(),
|
|
4866
4899
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -5093,4 +5126,4 @@ export {
|
|
|
5093
5126
|
* Use of this source code is governed by an MIT-style license that can be
|
|
5094
5127
|
* found in the LICENSE file at https://angular.dev/license
|
|
5095
5128
|
*/
|
|
5096
|
-
//# sourceMappingURL=chunk-
|
|
5129
|
+
//# sourceMappingURL=chunk-7CTS3DE5.js.map
|