@angular/compiler-cli 17.0.0 → 17.0.2
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-3IBJEGH3.js → chunk-BV3ZUD7T.js} +5 -5
- package/bundles/{chunk-GYHDNUIK.js → chunk-EKTJ7622.js} +7 -7
- package/bundles/{chunk-KIPH6OCC.js → chunk-EKZWOVDR.js} +185 -129
- package/bundles/chunk-EKZWOVDR.js.map +6 -0
- package/bundles/{chunk-QDHJ26RK.js → chunk-ELZXPNCU.js} +9 -9
- package/bundles/{chunk-6JN5EFEW.js → chunk-HKIDKKUJ.js} +88 -83
- package/bundles/{chunk-6JN5EFEW.js.map → chunk-HKIDKKUJ.js.map} +1 -1
- package/bundles/{chunk-UHYH6BYB.js → chunk-JZC4T2RR.js} +1 -1
- package/bundles/{chunk-SBDNBITT.js → chunk-LYJKWJUC.js} +3 -3
- package/bundles/{chunk-VNJI35KB.js → chunk-MHTLEXGT.js} +4 -4
- package/bundles/{chunk-CLTYCPJK.js → chunk-OTTOC3WQ.js} +27 -27
- package/bundles/{chunk-CSOLWS7O.js → chunk-PCMLSPQF.js} +7 -7
- package/bundles/{chunk-6WFRHXYB.js → chunk-WJ2RDNX4.js} +5 -5
- package/bundles/{chunk-QFTMYSLL.js → chunk-Z4QM3XT4.js} +30 -30
- package/bundles/index.js +13 -13
- package/bundles/linker/babel/index.js +13 -13
- package/bundles/linker/index.js +5 -5
- package/bundles/ngcc/index.js +1 -1
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +6 -6
- package/bundles/private/tooling.js +4 -4
- package/bundles/src/bin/ng_xi18n.js +11 -11
- package/bundles/src/bin/ngc.js +9 -9
- package/bundles_metadata.json +1 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/annotations/component/src/handler.d.ts +2 -1
- package/src/ngtsc/annotations/component/src/resources.d.ts +1 -0
- package/src/ngtsc/core/src/compiler.d.ts +1 -0
- package/src/ngtsc/typecheck/src/type_check_block.d.ts +4 -0
- package/bundles/chunk-KIPH6OCC.js.map +0 -6
- /package/bundles/{chunk-3IBJEGH3.js.map → chunk-BV3ZUD7T.js.map} +0 -0
- /package/bundles/{chunk-GYHDNUIK.js.map → chunk-EKTJ7622.js.map} +0 -0
- /package/bundles/{chunk-QDHJ26RK.js.map → chunk-ELZXPNCU.js.map} +0 -0
- /package/bundles/{chunk-UHYH6BYB.js.map → chunk-JZC4T2RR.js.map} +0 -0
- /package/bundles/{chunk-SBDNBITT.js.map → chunk-LYJKWJUC.js.map} +0 -0
- /package/bundles/{chunk-VNJI35KB.js.map → chunk-MHTLEXGT.js.map} +0 -0
- /package/bundles/{chunk-CLTYCPJK.js.map → chunk-OTTOC3WQ.js.map} +0 -0
- /package/bundles/{chunk-CSOLWS7O.js.map → chunk-PCMLSPQF.js.map} +0 -0
- /package/bundles/{chunk-6WFRHXYB.js.map → chunk-WJ2RDNX4.js.map} +0 -0
- /package/bundles/{chunk-QFTMYSLL.js.map → chunk-Z4QM3XT4.js.map} +0 -0
|
@@ -36,14 +36,14 @@ import {
|
|
|
36
36
|
aliasTransformFactory,
|
|
37
37
|
declarationTransformFactory,
|
|
38
38
|
ivyTransformFactory
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-HKIDKKUJ.js";
|
|
40
40
|
import {
|
|
41
41
|
ImportManager,
|
|
42
42
|
TypeEmitter,
|
|
43
43
|
canEmitType,
|
|
44
44
|
translateExpression,
|
|
45
45
|
translateType
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-ELZXPNCU.js";
|
|
47
47
|
import {
|
|
48
48
|
AbsoluteModuleStrategy,
|
|
49
49
|
AliasStrategy,
|
|
@@ -85,14 +85,14 @@ import {
|
|
|
85
85
|
relativePathBetween,
|
|
86
86
|
replaceTsWithNgInErrors,
|
|
87
87
|
toUnredirectedSourceFile
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-OTTOC3WQ.js";
|
|
89
89
|
import {
|
|
90
90
|
ActivePerfRecorder,
|
|
91
91
|
DelegatingPerfRecorder,
|
|
92
92
|
PerfCheckpoint,
|
|
93
93
|
PerfEvent,
|
|
94
94
|
PerfPhase
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-BV3ZUD7T.js";
|
|
96
96
|
import {
|
|
97
97
|
LogicalFileSystem,
|
|
98
98
|
absoluteFrom,
|
|
@@ -102,9 +102,9 @@ import {
|
|
|
102
102
|
getSourceFileOrError,
|
|
103
103
|
join,
|
|
104
104
|
resolve
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-PCMLSPQF.js";
|
|
106
106
|
|
|
107
|
-
// bazel-out/
|
|
107
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
108
108
|
var DEFAULT_ERROR_CODE = 100;
|
|
109
109
|
var UNKNOWN_ERROR_CODE = 500;
|
|
110
110
|
var SOURCE = "angular";
|
|
@@ -122,7 +122,7 @@ var EmitFlags;
|
|
|
122
122
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
123
123
|
})(EmitFlags || (EmitFlags = {}));
|
|
124
124
|
|
|
125
|
-
// bazel-out/
|
|
125
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
126
126
|
import ts from "typescript";
|
|
127
127
|
var wrapHostForTest = null;
|
|
128
128
|
function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, true) }) {
|
|
@@ -132,7 +132,7 @@ function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, t
|
|
|
132
132
|
return tsHost;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
// bazel-out/
|
|
135
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/entities.mjs
|
|
136
136
|
var EntryType;
|
|
137
137
|
(function(EntryType2) {
|
|
138
138
|
EntryType2["Block"] = "block";
|
|
@@ -175,11 +175,11 @@ var MemberTags;
|
|
|
175
175
|
MemberTags2["Inherited"] = "override";
|
|
176
176
|
})(MemberTags || (MemberTags = {}));
|
|
177
177
|
|
|
178
|
-
// bazel-out/
|
|
178
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
179
179
|
import { HtmlParser, MessageBundle } from "@angular/compiler";
|
|
180
180
|
import ts37 from "typescript";
|
|
181
181
|
|
|
182
|
-
// bazel-out/
|
|
182
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
183
183
|
import { Xliff, Xliff2, Xmb } from "@angular/compiler";
|
|
184
184
|
import * as path from "path";
|
|
185
185
|
function i18nGetExtension(formatName) {
|
|
@@ -230,10 +230,10 @@ function getPathNormalizer(basePath) {
|
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
// bazel-out/
|
|
233
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
234
234
|
import ts2 from "typescript";
|
|
235
235
|
|
|
236
|
-
// bazel-out/
|
|
236
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
237
237
|
function toNumbers(value) {
|
|
238
238
|
const suffixIndex = value.lastIndexOf("-");
|
|
239
239
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -268,7 +268,7 @@ function compareVersions(v1, v2) {
|
|
|
268
268
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
// bazel-out/
|
|
271
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
272
272
|
var MIN_TS_VERSION = "5.2.0";
|
|
273
273
|
var MAX_TS_VERSION = "5.3.0";
|
|
274
274
|
var tsVersion = ts2.version;
|
|
@@ -281,10 +281,10 @@ function verifySupportedTypeScriptVersion() {
|
|
|
281
281
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
-
// bazel-out/
|
|
284
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
285
285
|
import ts35 from "typescript";
|
|
286
286
|
|
|
287
|
-
// bazel-out/
|
|
287
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
288
288
|
var CycleAnalyzer = class {
|
|
289
289
|
constructor(importGraph) {
|
|
290
290
|
this.importGraph = importGraph;
|
|
@@ -355,7 +355,7 @@ var Cycle = class {
|
|
|
355
355
|
}
|
|
356
356
|
};
|
|
357
357
|
|
|
358
|
-
// bazel-out/
|
|
358
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
359
359
|
import ts3 from "typescript";
|
|
360
360
|
var ImportGraph = class {
|
|
361
361
|
constructor(checker, perf) {
|
|
@@ -447,23 +447,23 @@ var Found = class {
|
|
|
447
447
|
}
|
|
448
448
|
};
|
|
449
449
|
|
|
450
|
-
// bazel-out/
|
|
450
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
451
451
|
import ts9 from "typescript";
|
|
452
452
|
|
|
453
|
-
// bazel-out/
|
|
453
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
|
|
454
454
|
import ts6 from "typescript";
|
|
455
455
|
|
|
456
|
-
// bazel-out/
|
|
456
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/filters.mjs
|
|
457
457
|
function isAngularPrivateName(name) {
|
|
458
458
|
var _a;
|
|
459
459
|
const firstChar = (_a = name[0]) != null ? _a : "";
|
|
460
460
|
return firstChar === "\u0275" || firstChar === "_";
|
|
461
461
|
}
|
|
462
462
|
|
|
463
|
-
// bazel-out/
|
|
463
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
|
|
464
464
|
import ts5 from "typescript";
|
|
465
465
|
|
|
466
|
-
// bazel-out/
|
|
466
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/generics_extractor.mjs
|
|
467
467
|
function extractGenerics(declaration) {
|
|
468
468
|
var _a, _b;
|
|
469
469
|
return (_b = (_a = declaration.typeParameters) == null ? void 0 : _a.map((typeParam) => {
|
|
@@ -476,7 +476,7 @@ function extractGenerics(declaration) {
|
|
|
476
476
|
})) != null ? _b : [];
|
|
477
477
|
}
|
|
478
478
|
|
|
479
|
-
// bazel-out/
|
|
479
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/jsdoc_extractor.mjs
|
|
480
480
|
import ts4 from "typescript";
|
|
481
481
|
var decoratorExpression = /@(?=(Injectable|Component|Directive|Pipe|NgModule|Input|Output|HostBinding|HostListener|Inject|Optional|Self|Host|SkipSelf))/g;
|
|
482
482
|
function extractJsDocTags(node) {
|
|
@@ -520,12 +520,12 @@ function unescapeAngularDecorators(comment) {
|
|
|
520
520
|
return comment.replace(/_NG_AT_/g, "@");
|
|
521
521
|
}
|
|
522
522
|
|
|
523
|
-
// bazel-out/
|
|
523
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_extractor.mjs
|
|
524
524
|
function extractResolvedTypeString(node, checker) {
|
|
525
525
|
return checker.typeToString(checker.getTypeAtLocation(node));
|
|
526
526
|
}
|
|
527
527
|
|
|
528
|
-
// bazel-out/
|
|
528
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
|
|
529
529
|
var FunctionExtractor = class {
|
|
530
530
|
constructor(declaration, typeChecker) {
|
|
531
531
|
this.declaration = declaration;
|
|
@@ -579,7 +579,7 @@ var FunctionExtractor = class {
|
|
|
579
579
|
}
|
|
580
580
|
};
|
|
581
581
|
|
|
582
|
-
// bazel-out/
|
|
582
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
|
|
583
583
|
var ClassExtractor = class {
|
|
584
584
|
constructor(declaration, typeChecker) {
|
|
585
585
|
this.declaration = declaration;
|
|
@@ -811,7 +811,7 @@ function extractInterface(declaration, typeChecker) {
|
|
|
811
811
|
return extractor.extract();
|
|
812
812
|
}
|
|
813
813
|
|
|
814
|
-
// bazel-out/
|
|
814
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/constant_extractor.mjs
|
|
815
815
|
function extractConstant(declaration, typeChecker) {
|
|
816
816
|
const resolvedType = typeChecker.getBaseTypeOfLiteralType(typeChecker.getTypeAtLocation(declaration));
|
|
817
817
|
const variableStatement = declaration.parent.parent;
|
|
@@ -829,7 +829,7 @@ function isSyntheticAngularConstant(declaration) {
|
|
|
829
829
|
return declaration.name.getText() === "USED_FOR_NG_TYPE_CHECKING";
|
|
830
830
|
}
|
|
831
831
|
|
|
832
|
-
// bazel-out/
|
|
832
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/decorator_extractor.mjs
|
|
833
833
|
import ts7 from "typescript";
|
|
834
834
|
function extractorDecorator(declaration, typeChecker) {
|
|
835
835
|
const documentedNode = getDecoratorJsDocNode(declaration);
|
|
@@ -902,7 +902,7 @@ function getDecoratorJsDocNode(declaration) {
|
|
|
902
902
|
return callSignature;
|
|
903
903
|
}
|
|
904
904
|
|
|
905
|
-
// bazel-out/
|
|
905
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/enum_extractor.mjs
|
|
906
906
|
import ts8 from "typescript";
|
|
907
907
|
function extractEnum(declaration, typeChecker) {
|
|
908
908
|
return {
|
|
@@ -931,7 +931,7 @@ function getEnumMemberValue(memberNode) {
|
|
|
931
931
|
return (_a = literal == null ? void 0 : literal.getText()) != null ? _a : "";
|
|
932
932
|
}
|
|
933
933
|
|
|
934
|
-
// bazel-out/
|
|
934
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_alias_extractor.mjs
|
|
935
935
|
function extractTypeAlias(declaration) {
|
|
936
936
|
return {
|
|
937
937
|
name: declaration.name.getText(),
|
|
@@ -943,7 +943,7 @@ function extractTypeAlias(declaration) {
|
|
|
943
943
|
};
|
|
944
944
|
}
|
|
945
945
|
|
|
946
|
-
// bazel-out/
|
|
946
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
947
947
|
var DocsExtractor = class {
|
|
948
948
|
constructor(typeChecker, metadataReader) {
|
|
949
949
|
this.typeChecker = typeChecker;
|
|
@@ -1005,7 +1005,7 @@ function isIgnoredInterface(node) {
|
|
|
1005
1005
|
return node.name.getText().endsWith("Decorator") || isDecoratorOptionsInterface(node);
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
1008
|
-
// bazel-out/
|
|
1008
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
1009
1009
|
import ts10 from "typescript";
|
|
1010
1010
|
var FlatIndexGenerator = class {
|
|
1011
1011
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -1030,7 +1030,7 @@ export * from '${relativeEntryPoint}';
|
|
|
1030
1030
|
}
|
|
1031
1031
|
};
|
|
1032
1032
|
|
|
1033
|
-
// bazel-out/
|
|
1033
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
1034
1034
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
1035
1035
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
1036
1036
|
let resolvedEntryPoint = null;
|
|
@@ -1046,7 +1046,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
1046
1046
|
return resolvedEntryPoint;
|
|
1047
1047
|
}
|
|
1048
1048
|
|
|
1049
|
-
// bazel-out/
|
|
1049
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
1050
1050
|
import ts11 from "typescript";
|
|
1051
1051
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
1052
1052
|
const diagnostics = [];
|
|
@@ -1126,7 +1126,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
1126
1126
|
}
|
|
1127
1127
|
}
|
|
1128
1128
|
|
|
1129
|
-
// bazel-out/
|
|
1129
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
1130
1130
|
var ReferenceGraph = class {
|
|
1131
1131
|
constructor() {
|
|
1132
1132
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -1180,7 +1180,7 @@ var ReferenceGraph = class {
|
|
|
1180
1180
|
}
|
|
1181
1181
|
};
|
|
1182
1182
|
|
|
1183
|
-
// bazel-out/
|
|
1183
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
1184
1184
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
1185
1185
|
var UpdateMode;
|
|
1186
1186
|
(function(UpdateMode2) {
|
|
@@ -1188,13 +1188,13 @@ var UpdateMode;
|
|
|
1188
1188
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
1189
1189
|
})(UpdateMode || (UpdateMode = {}));
|
|
1190
1190
|
|
|
1191
|
-
// bazel-out/
|
|
1191
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
1192
1192
|
import ts13 from "typescript";
|
|
1193
1193
|
|
|
1194
|
-
// bazel-out/
|
|
1194
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
1195
1195
|
import ts12 from "typescript";
|
|
1196
1196
|
|
|
1197
|
-
// bazel-out/
|
|
1197
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
1198
1198
|
var NgExtension = Symbol("NgExtension");
|
|
1199
1199
|
function isExtended(sf) {
|
|
1200
1200
|
return sf[NgExtension] !== void 0;
|
|
@@ -1254,13 +1254,13 @@ function retagTsFile(sf) {
|
|
|
1254
1254
|
}
|
|
1255
1255
|
}
|
|
1256
1256
|
|
|
1257
|
-
// bazel-out/
|
|
1257
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
1258
1258
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
1259
1259
|
function makeShimFileName(fileName, suffix) {
|
|
1260
1260
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
1261
1261
|
}
|
|
1262
1262
|
|
|
1263
|
-
// bazel-out/
|
|
1263
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
1264
1264
|
var ShimAdapter = class {
|
|
1265
1265
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
1266
1266
|
this.delegate = delegate;
|
|
@@ -1355,7 +1355,7 @@ var ShimAdapter = class {
|
|
|
1355
1355
|
}
|
|
1356
1356
|
};
|
|
1357
1357
|
|
|
1358
|
-
// bazel-out/
|
|
1358
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
1359
1359
|
var ShimReferenceTagger = class {
|
|
1360
1360
|
constructor(shimExtensions) {
|
|
1361
1361
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -1389,7 +1389,7 @@ var ShimReferenceTagger = class {
|
|
|
1389
1389
|
}
|
|
1390
1390
|
};
|
|
1391
1391
|
|
|
1392
|
-
// bazel-out/
|
|
1392
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
1393
1393
|
var DelegatingCompilerHost = class {
|
|
1394
1394
|
constructor(delegate) {
|
|
1395
1395
|
this.delegate = delegate;
|
|
@@ -1502,7 +1502,7 @@ var TsCreateProgramDriver = class {
|
|
|
1502
1502
|
}
|
|
1503
1503
|
};
|
|
1504
1504
|
|
|
1505
|
-
// bazel-out/
|
|
1505
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
1506
1506
|
var FileDependencyGraph = class {
|
|
1507
1507
|
constructor() {
|
|
1508
1508
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -1569,7 +1569,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
1569
1569
|
return false;
|
|
1570
1570
|
}
|
|
1571
1571
|
|
|
1572
|
-
// bazel-out/
|
|
1572
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
1573
1573
|
var IncrementalStateKind;
|
|
1574
1574
|
(function(IncrementalStateKind2) {
|
|
1575
1575
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -1577,7 +1577,7 @@ var IncrementalStateKind;
|
|
|
1577
1577
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
1578
1578
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
1579
1579
|
|
|
1580
|
-
// bazel-out/
|
|
1580
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
1581
1581
|
var PhaseKind;
|
|
1582
1582
|
(function(PhaseKind2) {
|
|
1583
1583
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -1778,7 +1778,7 @@ function toOriginalSourceFile(sf) {
|
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
1780
|
|
|
1781
|
-
// bazel-out/
|
|
1781
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
1782
1782
|
var TrackedIncrementalBuildStrategy = class {
|
|
1783
1783
|
constructor() {
|
|
1784
1784
|
this.state = null;
|
|
@@ -1814,7 +1814,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
|
|
|
1814
1814
|
};
|
|
1815
1815
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
1816
1816
|
|
|
1817
|
-
// bazel-out/
|
|
1817
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
1818
1818
|
var IdentifierKind;
|
|
1819
1819
|
(function(IdentifierKind2) {
|
|
1820
1820
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -1832,7 +1832,7 @@ var AbsoluteSourceSpan = class {
|
|
|
1832
1832
|
}
|
|
1833
1833
|
};
|
|
1834
1834
|
|
|
1835
|
-
// bazel-out/
|
|
1835
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
1836
1836
|
var IndexingContext = class {
|
|
1837
1837
|
constructor() {
|
|
1838
1838
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -1842,10 +1842,10 @@ var IndexingContext = class {
|
|
|
1842
1842
|
}
|
|
1843
1843
|
};
|
|
1844
1844
|
|
|
1845
|
-
// bazel-out/
|
|
1845
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1846
1846
|
import { ParseSourceFile } from "@angular/compiler";
|
|
1847
1847
|
|
|
1848
|
-
// bazel-out/
|
|
1848
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
1849
1849
|
import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstBoundDeferredTrigger, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate } from "@angular/compiler";
|
|
1850
1850
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
1851
1851
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
@@ -2127,7 +2127,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
2127
2127
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
2128
2128
|
}
|
|
2129
2129
|
|
|
2130
|
-
// bazel-out/
|
|
2130
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
2131
2131
|
function generateAnalysis(context) {
|
|
2132
2132
|
const analysis = /* @__PURE__ */ new Map();
|
|
2133
2133
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -2163,7 +2163,7 @@ function generateAnalysis(context) {
|
|
|
2163
2163
|
return analysis;
|
|
2164
2164
|
}
|
|
2165
2165
|
|
|
2166
|
-
// bazel-out/
|
|
2166
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
2167
2167
|
var NgModuleIndexImpl = class {
|
|
2168
2168
|
constructor(metaReader, localReader) {
|
|
2169
2169
|
this.metaReader = metaReader;
|
|
@@ -2252,7 +2252,7 @@ var NgModuleIndexImpl = class {
|
|
|
2252
2252
|
}
|
|
2253
2253
|
};
|
|
2254
2254
|
|
|
2255
|
-
// bazel-out/
|
|
2255
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
2256
2256
|
import ts14 from "typescript";
|
|
2257
2257
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
2258
2258
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -2398,7 +2398,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
2398
2398
|
};
|
|
2399
2399
|
}
|
|
2400
2400
|
|
|
2401
|
-
// bazel-out/
|
|
2401
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
2402
2402
|
var StandaloneComponentScopeReader = class {
|
|
2403
2403
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
2404
2404
|
this.metaReader = metaReader;
|
|
@@ -2476,10 +2476,10 @@ var StandaloneComponentScopeReader = class {
|
|
|
2476
2476
|
}
|
|
2477
2477
|
};
|
|
2478
2478
|
|
|
2479
|
-
// bazel-out/
|
|
2479
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
2480
2480
|
import { CssSelector, DomElementSchemaRegistry as DomElementSchemaRegistry2, ExternalExpr as ExternalExpr2, WrappedNodeExpr } from "@angular/compiler";
|
|
2481
2481
|
|
|
2482
|
-
// bazel-out/
|
|
2482
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
2483
2483
|
import ts15 from "typescript";
|
|
2484
2484
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
2485
2485
|
var _a;
|
|
@@ -2586,7 +2586,7 @@ function parseTemplateAsSourceFile(fileName, template) {
|
|
|
2586
2586
|
return ts15.createSourceFile(fileName, template, ts15.ScriptTarget.Latest, false, ts15.ScriptKind.JSX);
|
|
2587
2587
|
}
|
|
2588
2588
|
|
|
2589
|
-
// bazel-out/
|
|
2589
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
2590
2590
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
2591
2591
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
2592
2592
|
function getTemplateId(clazz) {
|
|
@@ -2603,11 +2603,11 @@ function allocateTemplateId(sf) {
|
|
|
2603
2603
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
2604
2604
|
}
|
|
2605
2605
|
|
|
2606
|
-
// bazel-out/
|
|
2606
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2607
2607
|
import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
|
|
2608
2608
|
import ts17 from "typescript";
|
|
2609
2609
|
|
|
2610
|
-
// bazel-out/
|
|
2610
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
2611
2611
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
|
|
2612
2612
|
import ts16 from "typescript";
|
|
2613
2613
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
@@ -2737,7 +2737,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
2737
2737
|
}) || false;
|
|
2738
2738
|
}
|
|
2739
2739
|
|
|
2740
|
-
// bazel-out/
|
|
2740
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2741
2741
|
var CompletionEngine = class {
|
|
2742
2742
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
2743
2743
|
this.tcb = tcb;
|
|
@@ -2894,10 +2894,10 @@ var CompletionEngine = class {
|
|
|
2894
2894
|
}
|
|
2895
2895
|
};
|
|
2896
2896
|
|
|
2897
|
-
// bazel-out/
|
|
2897
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
2898
2898
|
import ts30 from "typescript";
|
|
2899
2899
|
|
|
2900
|
-
// bazel-out/
|
|
2900
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
2901
2901
|
import { DomElementSchemaRegistry } from "@angular/compiler";
|
|
2902
2902
|
import ts18 from "typescript";
|
|
2903
2903
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
@@ -2950,11 +2950,11 @@ var RegistryDomSchemaChecker = class {
|
|
|
2950
2950
|
}
|
|
2951
2951
|
};
|
|
2952
2952
|
|
|
2953
|
-
// bazel-out/
|
|
2953
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
2954
2954
|
import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
|
|
2955
2955
|
import ts23 from "typescript";
|
|
2956
2956
|
|
|
2957
|
-
// bazel-out/
|
|
2957
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
2958
2958
|
import ts19 from "typescript";
|
|
2959
2959
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
2960
2960
|
ts19.SyntaxKind.ParenthesizedExpression,
|
|
@@ -2990,11 +2990,15 @@ function tsCreateElement(tagName) {
|
|
|
2990
2990
|
);
|
|
2991
2991
|
}
|
|
2992
2992
|
function tsDeclareVariable(id, type) {
|
|
2993
|
+
let initializer = ts19.factory.createNonNullExpression(ts19.factory.createNull());
|
|
2994
|
+
if (type.kind === ts19.SyntaxKind.BooleanKeyword) {
|
|
2995
|
+
initializer = ts19.factory.createAsExpression(initializer, ts19.factory.createKeywordTypeNode(ts19.SyntaxKind.BooleanKeyword));
|
|
2996
|
+
}
|
|
2993
2997
|
const decl = ts19.factory.createVariableDeclaration(
|
|
2994
2998
|
id,
|
|
2995
2999
|
void 0,
|
|
2996
3000
|
type,
|
|
2997
|
-
|
|
3001
|
+
initializer
|
|
2998
3002
|
);
|
|
2999
3003
|
return ts19.factory.createVariableStatement(
|
|
3000
3004
|
void 0,
|
|
@@ -3028,13 +3032,13 @@ function isAccessExpression(node) {
|
|
|
3028
3032
|
return ts19.isPropertyAccessExpression(node) || ts19.isElementAccessExpression(node);
|
|
3029
3033
|
}
|
|
3030
3034
|
|
|
3031
|
-
// bazel-out/
|
|
3035
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
3032
3036
|
import ts22 from "typescript";
|
|
3033
3037
|
|
|
3034
|
-
// bazel-out/
|
|
3038
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
3035
3039
|
import ts21 from "typescript";
|
|
3036
3040
|
|
|
3037
|
-
// bazel-out/
|
|
3041
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
3038
3042
|
import ts20 from "typescript";
|
|
3039
3043
|
var TypeParameterEmitter = class {
|
|
3040
3044
|
constructor(typeParameters, reflector) {
|
|
@@ -3112,7 +3116,7 @@ var TypeParameterEmitter = class {
|
|
|
3112
3116
|
}
|
|
3113
3117
|
};
|
|
3114
3118
|
|
|
3115
|
-
// bazel-out/
|
|
3119
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
3116
3120
|
var TcbInliningRequirement;
|
|
3117
3121
|
(function(TcbInliningRequirement2) {
|
|
3118
3122
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -3192,7 +3196,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
3192
3196
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
3193
3197
|
}
|
|
3194
3198
|
|
|
3195
|
-
// bazel-out/
|
|
3199
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
3196
3200
|
function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
3197
3201
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
3198
3202
|
const rawType = ts22.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -3303,7 +3307,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
3303
3307
|
});
|
|
3304
3308
|
}
|
|
3305
3309
|
|
|
3306
|
-
// bazel-out/
|
|
3310
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
3307
3311
|
var Environment = class {
|
|
3308
3312
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
3309
3313
|
this.config = config;
|
|
@@ -3397,7 +3401,7 @@ var Environment = class {
|
|
|
3397
3401
|
}
|
|
3398
3402
|
};
|
|
3399
3403
|
|
|
3400
|
-
// bazel-out/
|
|
3404
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
3401
3405
|
import { TmplAstElement as TmplAstElement2 } from "@angular/compiler";
|
|
3402
3406
|
import ts24 from "typescript";
|
|
3403
3407
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
@@ -3553,7 +3557,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
3553
3557
|
};
|
|
3554
3558
|
}
|
|
3555
3559
|
|
|
3556
|
-
// bazel-out/
|
|
3560
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
3557
3561
|
import ts25 from "typescript";
|
|
3558
3562
|
var TypeCheckShimGenerator = class {
|
|
3559
3563
|
constructor() {
|
|
@@ -3571,11 +3575,11 @@ var TypeCheckShimGenerator = class {
|
|
|
3571
3575
|
}
|
|
3572
3576
|
};
|
|
3573
3577
|
|
|
3574
|
-
// bazel-out/
|
|
3578
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
3575
3579
|
import { BindingPipe, Call as Call2, DYNAMIC_TYPE, ImplicitReceiver as ImplicitReceiver4, PropertyRead as PropertyRead4, PropertyWrite as PropertyWrite3, SafeCall, SafePropertyRead as SafePropertyRead3, ThisReceiver, TmplAstBoundAttribute, TmplAstBoundText, TmplAstDeferredBlock, TmplAstElement as TmplAstElement3, TmplAstForLoopBlock, TmplAstIcu, TmplAstIfBlock, TmplAstIfBlockBranch, TmplAstReference as TmplAstReference3, TmplAstSwitchBlock, TmplAstTemplate as TmplAstTemplate2, TmplAstTextAttribute as TmplAstTextAttribute2, TmplAstVariable as TmplAstVariable2, TransplantedType } from "@angular/compiler";
|
|
3576
3580
|
import ts28 from "typescript";
|
|
3577
3581
|
|
|
3578
|
-
// bazel-out/
|
|
3582
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
3579
3583
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
|
|
3580
3584
|
import ts26 from "typescript";
|
|
3581
3585
|
function wrapForDiagnostics(expr) {
|
|
@@ -3621,7 +3625,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
3621
3625
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
3622
3626
|
}
|
|
3623
3627
|
|
|
3624
|
-
// bazel-out/
|
|
3628
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
3625
3629
|
import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
|
|
3626
3630
|
import ts27 from "typescript";
|
|
3627
3631
|
var NULL_AS_ANY = ts27.factory.createAsExpression(ts27.factory.createNull(), ts27.factory.createKeywordTypeNode(ts27.SyntaxKind.AnyKeyword));
|
|
@@ -3954,7 +3958,7 @@ var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
|
|
|
3954
3958
|
_VeSafeLhsInferenceBugDetector.SINGLETON = new _VeSafeLhsInferenceBugDetector();
|
|
3955
3959
|
})();
|
|
3956
3960
|
|
|
3957
|
-
// bazel-out/
|
|
3961
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
3958
3962
|
import { ImplicitReceiver as ImplicitReceiver3, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstVariable } from "@angular/compiler";
|
|
3959
3963
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
3960
3964
|
constructor(templateId, boundTarget, oob) {
|
|
@@ -3978,7 +3982,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
|
3978
3982
|
}
|
|
3979
3983
|
};
|
|
3980
3984
|
|
|
3981
|
-
// bazel-out/
|
|
3985
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
3982
3986
|
var TcbGenericContextBehavior;
|
|
3983
3987
|
(function(TcbGenericContextBehavior2) {
|
|
3984
3988
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -4796,7 +4800,7 @@ var Context = class {
|
|
|
4796
4800
|
return this.pipes.get(name);
|
|
4797
4801
|
}
|
|
4798
4802
|
};
|
|
4799
|
-
var
|
|
4803
|
+
var _Scope = class {
|
|
4800
4804
|
constructor(tcb, parent = null, guard = null) {
|
|
4801
4805
|
this.tcb = tcb;
|
|
4802
4806
|
this.parent = parent;
|
|
@@ -4810,7 +4814,7 @@ var Scope = class {
|
|
|
4810
4814
|
this.statements = [];
|
|
4811
4815
|
}
|
|
4812
4816
|
static forNodes(tcb, parentScope, scopedNode, children, guard) {
|
|
4813
|
-
const scope = new
|
|
4817
|
+
const scope = new _Scope(tcb, parentScope, guard);
|
|
4814
4818
|
if (parentScope === null && tcb.env.config.enableTemplateTypeChecker) {
|
|
4815
4819
|
scope.opQueue.push(new TcbComponentContextCompletionOp(scope));
|
|
4816
4820
|
}
|
|
@@ -4832,8 +4836,11 @@ var Scope = class {
|
|
|
4832
4836
|
}
|
|
4833
4837
|
} else if (scopedNode instanceof TmplAstForLoopBlock) {
|
|
4834
4838
|
this.registerVariable(scope, scopedNode.item, new TcbBlockVariableOp(tcb, scope, ts28.factory.createIdentifier(scopedNode.item.name), scopedNode.item));
|
|
4835
|
-
for (const variable of Object.
|
|
4836
|
-
|
|
4839
|
+
for (const [name, variable] of Object.entries(scopedNode.contextVariables)) {
|
|
4840
|
+
if (!this.forLoopContextVariableTypes.has(name)) {
|
|
4841
|
+
throw new Error(`Unrecognized for loop context variable ${name}`);
|
|
4842
|
+
}
|
|
4843
|
+
const type = ts28.factory.createKeywordTypeNode(this.forLoopContextVariableTypes.get(name));
|
|
4837
4844
|
this.registerVariable(scope, variable, new TcbBlockImplicitVariableOp(tcb, scope, type, variable));
|
|
4838
4845
|
}
|
|
4839
4846
|
}
|
|
@@ -5110,6 +5117,17 @@ var Scope = class {
|
|
|
5110
5117
|
}
|
|
5111
5118
|
}
|
|
5112
5119
|
};
|
|
5120
|
+
var Scope = _Scope;
|
|
5121
|
+
(() => {
|
|
5122
|
+
_Scope.forLoopContextVariableTypes = /* @__PURE__ */ new Map([
|
|
5123
|
+
["$first", ts28.SyntaxKind.BooleanKeyword],
|
|
5124
|
+
["$last", ts28.SyntaxKind.BooleanKeyword],
|
|
5125
|
+
["$even", ts28.SyntaxKind.BooleanKeyword],
|
|
5126
|
+
["$odd", ts28.SyntaxKind.BooleanKeyword],
|
|
5127
|
+
["$index", ts28.SyntaxKind.NumberKeyword],
|
|
5128
|
+
["$count", ts28.SyntaxKind.NumberKeyword]
|
|
5129
|
+
]);
|
|
5130
|
+
})();
|
|
5113
5131
|
function tcbThisParam(name, typeArguments) {
|
|
5114
5132
|
return ts28.factory.createParameterDeclaration(
|
|
5115
5133
|
void 0,
|
|
@@ -5350,7 +5368,7 @@ var TcbForLoopTrackTranslator = class extends TcbExpressionTranslator {
|
|
|
5350
5368
|
}
|
|
5351
5369
|
};
|
|
5352
5370
|
|
|
5353
|
-
// bazel-out/
|
|
5371
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
5354
5372
|
import ts29 from "typescript";
|
|
5355
5373
|
var TypeCheckFile = class extends Environment {
|
|
5356
5374
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -5386,7 +5404,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
5386
5404
|
}
|
|
5387
5405
|
};
|
|
5388
5406
|
|
|
5389
|
-
// bazel-out/
|
|
5407
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
5390
5408
|
var InliningMode;
|
|
5391
5409
|
(function(InliningMode2) {
|
|
5392
5410
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -5623,10 +5641,10 @@ function splitStringAtPoints(str, points) {
|
|
|
5623
5641
|
return splits;
|
|
5624
5642
|
}
|
|
5625
5643
|
|
|
5626
|
-
// bazel-out/
|
|
5644
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
5627
5645
|
import { ParseLocation, ParseSourceSpan } from "@angular/compiler";
|
|
5628
5646
|
|
|
5629
|
-
// bazel-out/
|
|
5647
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
5630
5648
|
var LF_CHAR = 10;
|
|
5631
5649
|
var CR_CHAR = 13;
|
|
5632
5650
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -5667,7 +5685,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
5667
5685
|
return low - 1;
|
|
5668
5686
|
}
|
|
5669
5687
|
|
|
5670
|
-
// bazel-out/
|
|
5688
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
5671
5689
|
var TemplateSource = class {
|
|
5672
5690
|
constructor(mapping, file) {
|
|
5673
5691
|
this.mapping = mapping;
|
|
@@ -5718,7 +5736,7 @@ var TemplateSourceManager = class {
|
|
|
5718
5736
|
}
|
|
5719
5737
|
};
|
|
5720
5738
|
|
|
5721
|
-
// bazel-out/
|
|
5739
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
5722
5740
|
import { AST, ASTWithSource as ASTWithSource3, BindingPipe as BindingPipe2, PropertyRead as PropertyRead5, PropertyWrite as PropertyWrite4, SafePropertyRead as SafePropertyRead4, TmplAstBoundAttribute as TmplAstBoundAttribute2, TmplAstBoundEvent, TmplAstElement as TmplAstElement4, TmplAstReference as TmplAstReference4, TmplAstTemplate as TmplAstTemplate3, TmplAstTextAttribute as TmplAstTextAttribute3, TmplAstVariable as TmplAstVariable3 } from "@angular/compiler";
|
|
5723
5741
|
import ts31 from "typescript";
|
|
5724
5742
|
var SymbolBuilder = class {
|
|
@@ -6202,7 +6220,7 @@ function sourceSpanEqual(a, b) {
|
|
|
6202
6220
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
6203
6221
|
}
|
|
6204
6222
|
|
|
6205
|
-
// bazel-out/
|
|
6223
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
6206
6224
|
var REGISTRY2 = new DomElementSchemaRegistry2();
|
|
6207
6225
|
var TemplateTypeCheckerImpl = class {
|
|
6208
6226
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -6899,10 +6917,10 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
6899
6917
|
}
|
|
6900
6918
|
};
|
|
6901
6919
|
|
|
6902
|
-
// bazel-out/
|
|
6903
|
-
import {
|
|
6920
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
6921
|
+
import { Interpolation, PropertyRead as PropertyRead6 } from "@angular/compiler";
|
|
6904
6922
|
|
|
6905
|
-
// bazel-out/
|
|
6923
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
6906
6924
|
import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor3, TmplAstBoundDeferredTrigger as TmplAstBoundDeferredTrigger2 } from "@angular/compiler";
|
|
6907
6925
|
var TemplateCheckWithVisitor = class {
|
|
6908
6926
|
run(ctx, component, template) {
|
|
@@ -7026,7 +7044,43 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor3 {
|
|
|
7026
7044
|
}
|
|
7027
7045
|
};
|
|
7028
7046
|
|
|
7029
|
-
// bazel-out/
|
|
7047
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
7048
|
+
var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
|
|
7049
|
+
constructor() {
|
|
7050
|
+
super(...arguments);
|
|
7051
|
+
this.code = ErrorCode.INTERPOLATED_SIGNAL_NOT_INVOKED;
|
|
7052
|
+
}
|
|
7053
|
+
visitNode(ctx, component, node) {
|
|
7054
|
+
if (node instanceof Interpolation) {
|
|
7055
|
+
return node.expressions.filter((item) => item instanceof PropertyRead6).flatMap((item) => {
|
|
7056
|
+
if (item instanceof PropertyRead6) {
|
|
7057
|
+
return buildDiagnosticForSignal(ctx, item, component);
|
|
7058
|
+
}
|
|
7059
|
+
return [];
|
|
7060
|
+
});
|
|
7061
|
+
}
|
|
7062
|
+
return [];
|
|
7063
|
+
}
|
|
7064
|
+
};
|
|
7065
|
+
function buildDiagnosticForSignal(ctx, node, component) {
|
|
7066
|
+
var _a, _b;
|
|
7067
|
+
const symbol = ctx.templateTypeChecker.getSymbolOfNode(node, component);
|
|
7068
|
+
if ((symbol == null ? void 0 : symbol.kind) === SymbolKind.Expression && (((_a = symbol.tsType.symbol) == null ? void 0 : _a.escapedName) === "WritableSignal" || ((_b = symbol.tsType.symbol) == null ? void 0 : _b.escapedName) === "Signal") && symbol.tsType.symbol.parent.escapedName.includes("@angular/core")) {
|
|
7069
|
+
const templateMapping = ctx.templateTypeChecker.getTemplateMappingAtTcbLocation(symbol.tcbLocation);
|
|
7070
|
+
const errorString = `${node.name} is a function and should be invoked: ${node.name}()`;
|
|
7071
|
+
const diagnostic = ctx.makeTemplateDiagnostic(templateMapping.span, errorString);
|
|
7072
|
+
return [diagnostic];
|
|
7073
|
+
}
|
|
7074
|
+
return [];
|
|
7075
|
+
}
|
|
7076
|
+
var factory = {
|
|
7077
|
+
code: ErrorCode.INTERPOLATED_SIGNAL_NOT_INVOKED,
|
|
7078
|
+
name: ExtendedTemplateDiagnosticName.INTERPOLATED_SIGNAL_NOT_INVOKED,
|
|
7079
|
+
create: () => new InterpolatedSignalCheck()
|
|
7080
|
+
};
|
|
7081
|
+
|
|
7082
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
7083
|
+
import { TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
|
|
7030
7084
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
7031
7085
|
constructor() {
|
|
7032
7086
|
super(...arguments);
|
|
@@ -7045,13 +7099,13 @@ var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
|
7045
7099
|
return [diagnostic];
|
|
7046
7100
|
}
|
|
7047
7101
|
};
|
|
7048
|
-
var
|
|
7102
|
+
var factory2 = {
|
|
7049
7103
|
code: ErrorCode.INVALID_BANANA_IN_BOX,
|
|
7050
7104
|
name: ExtendedTemplateDiagnosticName.INVALID_BANANA_IN_BOX,
|
|
7051
7105
|
create: () => new InvalidBananaInBoxCheck()
|
|
7052
7106
|
};
|
|
7053
7107
|
|
|
7054
|
-
// bazel-out/
|
|
7108
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
7055
7109
|
import { TmplAstTemplate as TmplAstTemplate4 } from "@angular/compiler";
|
|
7056
7110
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
7057
7111
|
["ngIf", { directive: "NgIf", builtIn: "@if" }],
|
|
@@ -7088,7 +7142,7 @@ var MissingControlFlowDirectiveCheck = class extends TemplateCheckWithVisitor {
|
|
|
7088
7142
|
return [diagnostic];
|
|
7089
7143
|
}
|
|
7090
7144
|
};
|
|
7091
|
-
var
|
|
7145
|
+
var factory3 = {
|
|
7092
7146
|
code: ErrorCode.MISSING_CONTROL_FLOW_DIRECTIVE,
|
|
7093
7147
|
name: ExtendedTemplateDiagnosticName.MISSING_CONTROL_FLOW_DIRECTIVE,
|
|
7094
7148
|
create: (options) => {
|
|
@@ -7096,7 +7150,7 @@ var factory2 = {
|
|
|
7096
7150
|
}
|
|
7097
7151
|
};
|
|
7098
7152
|
|
|
7099
|
-
// bazel-out/
|
|
7153
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
7100
7154
|
import { TmplAstTemplate as TmplAstTemplate5 } from "@angular/compiler";
|
|
7101
7155
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
7102
7156
|
constructor() {
|
|
@@ -7123,13 +7177,13 @@ var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
|
7123
7177
|
return [diagnostic];
|
|
7124
7178
|
}
|
|
7125
7179
|
};
|
|
7126
|
-
var
|
|
7180
|
+
var factory4 = {
|
|
7127
7181
|
code: ErrorCode.MISSING_NGFOROF_LET,
|
|
7128
7182
|
name: ExtendedTemplateDiagnosticName.MISSING_NGFOROF_LET,
|
|
7129
7183
|
create: () => new MissingNgForOfLetCheck()
|
|
7130
7184
|
};
|
|
7131
7185
|
|
|
7132
|
-
// bazel-out/
|
|
7186
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
7133
7187
|
import { Binary } from "@angular/compiler";
|
|
7134
7188
|
import ts32 from "typescript";
|
|
7135
7189
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -7162,7 +7216,7 @@ var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
|
7162
7216
|
return [diagnostic];
|
|
7163
7217
|
}
|
|
7164
7218
|
};
|
|
7165
|
-
var
|
|
7219
|
+
var factory5 = {
|
|
7166
7220
|
code: ErrorCode.NULLISH_COALESCING_NOT_NULLABLE,
|
|
7167
7221
|
name: ExtendedTemplateDiagnosticName.NULLISH_COALESCING_NOT_NULLABLE,
|
|
7168
7222
|
create: (options) => {
|
|
@@ -7174,7 +7228,7 @@ var factory4 = {
|
|
|
7174
7228
|
}
|
|
7175
7229
|
};
|
|
7176
7230
|
|
|
7177
|
-
// bazel-out/
|
|
7231
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
7178
7232
|
import { SafeCall as SafeCall2, SafeKeyedRead as SafeKeyedRead2, SafePropertyRead as SafePropertyRead5 } from "@angular/compiler";
|
|
7179
7233
|
import ts33 from "typescript";
|
|
7180
7234
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -7208,7 +7262,7 @@ var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
|
7208
7262
|
return [diagnostic];
|
|
7209
7263
|
}
|
|
7210
7264
|
};
|
|
7211
|
-
var
|
|
7265
|
+
var factory6 = {
|
|
7212
7266
|
code: ErrorCode.OPTIONAL_CHAIN_NOT_NULLABLE,
|
|
7213
7267
|
name: ExtendedTemplateDiagnosticName.OPTIONAL_CHAIN_NOT_NULLABLE,
|
|
7214
7268
|
create: (options) => {
|
|
@@ -7220,7 +7274,7 @@ var factory5 = {
|
|
|
7220
7274
|
}
|
|
7221
7275
|
};
|
|
7222
7276
|
|
|
7223
|
-
// bazel-out/
|
|
7277
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
7224
7278
|
import { TmplAstBoundAttribute as TmplAstBoundAttribute3 } from "@angular/compiler";
|
|
7225
7279
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
7226
7280
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -7238,13 +7292,13 @@ var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
|
7238
7292
|
return [diagnostic];
|
|
7239
7293
|
}
|
|
7240
7294
|
};
|
|
7241
|
-
var
|
|
7295
|
+
var factory7 = {
|
|
7242
7296
|
code: ErrorCode.SUFFIX_NOT_SUPPORTED,
|
|
7243
7297
|
name: ExtendedTemplateDiagnosticName.SUFFIX_NOT_SUPPORTED,
|
|
7244
7298
|
create: () => new SuffixNotSupportedCheck()
|
|
7245
7299
|
};
|
|
7246
7300
|
|
|
7247
|
-
// bazel-out/
|
|
7301
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
7248
7302
|
import { TmplAstTextAttribute as TmplAstTextAttribute4 } from "@angular/compiler";
|
|
7249
7303
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
7250
7304
|
constructor() {
|
|
@@ -7277,16 +7331,16 @@ var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
|
7277
7331
|
return [diagnostic];
|
|
7278
7332
|
}
|
|
7279
7333
|
};
|
|
7280
|
-
var
|
|
7334
|
+
var factory8 = {
|
|
7281
7335
|
code: ErrorCode.TEXT_ATTRIBUTE_NOT_BINDING,
|
|
7282
7336
|
name: ExtendedTemplateDiagnosticName.TEXT_ATTRIBUTE_NOT_BINDING,
|
|
7283
7337
|
create: () => new TextAttributeNotBindingSpec()
|
|
7284
7338
|
};
|
|
7285
7339
|
|
|
7286
|
-
// bazel-out/
|
|
7340
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
7287
7341
|
import ts34 from "typescript";
|
|
7288
7342
|
|
|
7289
|
-
// bazel-out/
|
|
7343
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
7290
7344
|
var DiagnosticCategoryLabel;
|
|
7291
7345
|
(function(DiagnosticCategoryLabel2) {
|
|
7292
7346
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -7294,18 +7348,18 @@ var DiagnosticCategoryLabel;
|
|
|
7294
7348
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
7295
7349
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
7296
7350
|
|
|
7297
|
-
// bazel-out/
|
|
7351
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
7298
7352
|
var ExtendedTemplateCheckerImpl = class {
|
|
7299
7353
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
7300
7354
|
var _a, _b, _c, _d, _e;
|
|
7301
7355
|
this.partialCtx = { templateTypeChecker, typeChecker };
|
|
7302
7356
|
this.templateChecks = /* @__PURE__ */ new Map();
|
|
7303
|
-
for (const
|
|
7304
|
-
const category = diagnosticLabelToCategory((_e = (_d = (_b = (_a = options == null ? void 0 : options.extendedDiagnostics) == null ? void 0 : _a.checks) == null ? void 0 : _b[
|
|
7357
|
+
for (const factory9 of templateCheckFactories) {
|
|
7358
|
+
const category = diagnosticLabelToCategory((_e = (_d = (_b = (_a = options == null ? void 0 : options.extendedDiagnostics) == null ? void 0 : _a.checks) == null ? void 0 : _b[factory9.name]) != null ? _d : (_c = options == null ? void 0 : options.extendedDiagnostics) == null ? void 0 : _c.defaultCategory) != null ? _e : DiagnosticCategoryLabel.Warning);
|
|
7305
7359
|
if (category === null) {
|
|
7306
7360
|
continue;
|
|
7307
7361
|
}
|
|
7308
|
-
const check =
|
|
7362
|
+
const check = factory9.create(options);
|
|
7309
7363
|
if (check === null) {
|
|
7310
7364
|
continue;
|
|
7311
7365
|
}
|
|
@@ -7347,18 +7401,19 @@ function assertNever(value) {
|
|
|
7347
7401
|
${value}`);
|
|
7348
7402
|
}
|
|
7349
7403
|
|
|
7350
|
-
// bazel-out/
|
|
7404
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
7351
7405
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
7352
|
-
factory,
|
|
7353
|
-
factory4,
|
|
7354
|
-
factory5,
|
|
7355
7406
|
factory2,
|
|
7356
|
-
|
|
7407
|
+
factory5,
|
|
7408
|
+
factory6,
|
|
7357
7409
|
factory3,
|
|
7358
|
-
|
|
7410
|
+
factory8,
|
|
7411
|
+
factory4,
|
|
7412
|
+
factory7,
|
|
7413
|
+
factory
|
|
7359
7414
|
];
|
|
7360
7415
|
|
|
7361
|
-
// bazel-out/
|
|
7416
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
7362
7417
|
var CompilationTicketKind;
|
|
7363
7418
|
(function(CompilationTicketKind2) {
|
|
7364
7419
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -7430,7 +7485,7 @@ var NgCompiler = class {
|
|
|
7430
7485
|
}
|
|
7431
7486
|
}
|
|
7432
7487
|
constructor(adapter, options, inputProgram, programDriver, incrementalStrategy, incrementalCompilation, enableTemplateTypeChecker, usePoisonedData, livePerfRecorder) {
|
|
7433
|
-
var _a;
|
|
7488
|
+
var _a, _b;
|
|
7434
7489
|
this.adapter = adapter;
|
|
7435
7490
|
this.options = options;
|
|
7436
7491
|
this.inputProgram = inputProgram;
|
|
@@ -7444,6 +7499,7 @@ var NgCompiler = class {
|
|
|
7444
7499
|
this.nonTemplateDiagnostics = null;
|
|
7445
7500
|
this.delegatingPerfRecorder = new DelegatingPerfRecorder(this.perfRecorder);
|
|
7446
7501
|
this.enableTemplateTypeChecker = enableTemplateTypeChecker || ((_a = options["_enableTemplateTypeChecker"]) != null ? _a : false);
|
|
7502
|
+
this.enableBlockSyntax = (_b = options["_enableBlockSyntax"]) != null ? _b : true;
|
|
7447
7503
|
this.constructionDiagnostics.push(...this.adapter.constructionDiagnostics, ...verifyCompatibleTypeCheckOptions(this.options));
|
|
7448
7504
|
this.currentProgram = inputProgram;
|
|
7449
7505
|
this.closureCompilerEnabled = !!this.options.annotateForClosureCompiler;
|
|
@@ -7926,7 +7982,7 @@ var NgCompiler = class {
|
|
|
7926
7982
|
throw new Error('JIT mode support ("supportJitMode" option) cannot be disabled when forbidOrphanComponents is set to true');
|
|
7927
7983
|
}
|
|
7928
7984
|
const handlers = [
|
|
7929
|
-
new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, depScopeReader, ngModuleScopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, this.resourceManager, this.adapter.rootDirs, this.options.preserveWhitespaces || false, this.options.i18nUseExternalIds !== false, this.options.enableI18nLegacyMessageIdFormat !== false, this.usePoisonedData, this.options.i18nNormalizeLineEndingsInICUs === true, this.moduleResolver, this.cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, this.incrementalCompilation.depGraph, injectableRegistry, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, hostDirectivesResolver, supportTestBed, compilationMode, deferredSymbolsTracker, !!this.options.forbidOrphanComponents),
|
|
7985
|
+
new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, depScopeReader, ngModuleScopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, this.resourceManager, this.adapter.rootDirs, this.options.preserveWhitespaces || false, this.options.i18nUseExternalIds !== false, this.options.enableI18nLegacyMessageIdFormat !== false, this.usePoisonedData, this.options.i18nNormalizeLineEndingsInICUs === true, this.moduleResolver, this.cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, this.incrementalCompilation.depGraph, injectableRegistry, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, hostDirectivesResolver, supportTestBed, compilationMode, deferredSymbolsTracker, !!this.options.forbidOrphanComponents, this.enableBlockSyntax),
|
|
7930
7986
|
new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, supportTestBed, compilationMode),
|
|
7931
7987
|
new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder, supportTestBed, compilationMode),
|
|
7932
7988
|
new InjectableDecoratorHandler(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, compilationMode),
|
|
@@ -8033,7 +8089,7 @@ ${allowedCategoryLabels.join("\n")}
|
|
|
8033
8089
|
`.trim()
|
|
8034
8090
|
});
|
|
8035
8091
|
}
|
|
8036
|
-
const allExtendedDiagnosticNames = ALL_DIAGNOSTIC_FACTORIES.map((
|
|
8092
|
+
const allExtendedDiagnosticNames = ALL_DIAGNOSTIC_FACTORIES.map((factory9) => factory9.name);
|
|
8037
8093
|
for (const [checkName, category] of Object.entries((_c = (_b = options.extendedDiagnostics) == null ? void 0 : _b.checks) != null ? _c : {})) {
|
|
8038
8094
|
if (!allExtendedDiagnosticNames.includes(checkName)) {
|
|
8039
8095
|
yield makeConfigDiagnostic({
|
|
@@ -8117,7 +8173,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
8117
8173
|
return versions;
|
|
8118
8174
|
}
|
|
8119
8175
|
|
|
8120
|
-
// bazel-out/
|
|
8176
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
8121
8177
|
import ts36 from "typescript";
|
|
8122
8178
|
var DelegatingCompilerHost2 = class {
|
|
8123
8179
|
constructor(delegate) {
|
|
@@ -8250,7 +8306,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
8250
8306
|
}
|
|
8251
8307
|
};
|
|
8252
8308
|
|
|
8253
|
-
// bazel-out/
|
|
8309
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
8254
8310
|
var NgtscProgram = class {
|
|
8255
8311
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
8256
8312
|
this.options = options;
|
|
@@ -8477,15 +8533,15 @@ function mergeEmitResults(emitResults) {
|
|
|
8477
8533
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
8478
8534
|
}
|
|
8479
8535
|
|
|
8480
|
-
// bazel-out/
|
|
8536
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
8481
8537
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
8482
8538
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
8483
8539
|
}
|
|
8484
8540
|
|
|
8485
|
-
// bazel-out/
|
|
8541
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
8486
8542
|
import ts39 from "typescript";
|
|
8487
8543
|
|
|
8488
|
-
// bazel-out/
|
|
8544
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
8489
8545
|
import ts38 from "typescript";
|
|
8490
8546
|
function createMessageDiagnostic(messageText) {
|
|
8491
8547
|
return {
|
|
@@ -8499,7 +8555,7 @@ function createMessageDiagnostic(messageText) {
|
|
|
8499
8555
|
};
|
|
8500
8556
|
}
|
|
8501
8557
|
|
|
8502
|
-
// bazel-out/
|
|
8558
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
8503
8559
|
var defaultFormatHost = {
|
|
8504
8560
|
getCurrentDirectory: () => ts39.sys.getCurrentDirectory(),
|
|
8505
8561
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -8712,4 +8768,4 @@ export {
|
|
|
8712
8768
|
* Use of this source code is governed by an MIT-style license that can be
|
|
8713
8769
|
* found in the LICENSE file at https://angular.io/license
|
|
8714
8770
|
*/
|
|
8715
|
-
//# sourceMappingURL=chunk-
|
|
8771
|
+
//# sourceMappingURL=chunk-EKZWOVDR.js.map
|