@angular/compiler-cli 17.1.0-next.2 → 17.1.0-next.3
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-UHYH6BYB.js → chunk-3O3O4L34.js} +1 -1
- package/bundles/{chunk-54K5L6NG.js → chunk-5ASJ74IM.js} +30 -30
- package/bundles/{chunk-TNVYLY25.js → chunk-5JRMFWYO.js} +4 -4
- package/bundles/{chunk-SBDNBITT.js → chunk-CF2CT7RQ.js} +3 -3
- package/bundles/{chunk-OYL5JDZA.js → chunk-DV5CKGO6.js} +147 -122
- package/bundles/chunk-DV5CKGO6.js.map +6 -0
- package/bundles/{chunk-RLZPCAR3.js → chunk-EVIA54WP.js} +28 -27
- package/bundles/{chunk-RLZPCAR3.js.map → chunk-EVIA54WP.js.map} +1 -1
- package/bundles/{chunk-QPMYDNZG.js → chunk-I3M5LXMW.js} +7 -7
- package/bundles/{chunk-R4KQI5XI.js → chunk-JOIB3454.js} +5 -5
- package/bundles/{chunk-VOXK3NAL.js → chunk-LJKJD6DP.js} +77 -77
- package/bundles/{chunk-WCD6LVCP.js → chunk-WMUBJYYX.js} +7 -7
- package/bundles/{chunk-6GUXR7F5.js → chunk-XI2N3MV4.js} +11 -11
- package/bundles/{chunk-QWNQBN2Z.js → chunk-ZH5AJH3B.js} +5 -5
- 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/diagnostics/src/extended_template_diagnostic_name.d.ts +2 -1
- package/src/ngtsc/program_driver/src/ts_create_program_driver.d.ts +2 -1
- package/src/ngtsc/typecheck/api/api.d.ts +4 -0
- package/src/ngtsc/typecheck/extended/index.d.ts +1 -0
- package/src/ngtsc/typecheck/src/oob.d.ts +3 -2
- package/src/ngtsc/typecheck/src/type_check_block.d.ts +2 -1
- package/bundles/chunk-OYL5JDZA.js.map +0 -6
- /package/bundles/{chunk-UHYH6BYB.js.map → chunk-3O3O4L34.js.map} +0 -0
- /package/bundles/{chunk-54K5L6NG.js.map → chunk-5ASJ74IM.js.map} +0 -0
- /package/bundles/{chunk-TNVYLY25.js.map → chunk-5JRMFWYO.js.map} +0 -0
- /package/bundles/{chunk-SBDNBITT.js.map → chunk-CF2CT7RQ.js.map} +0 -0
- /package/bundles/{chunk-QPMYDNZG.js.map → chunk-I3M5LXMW.js.map} +0 -0
- /package/bundles/{chunk-R4KQI5XI.js.map → chunk-JOIB3454.js.map} +0 -0
- /package/bundles/{chunk-VOXK3NAL.js.map → chunk-LJKJD6DP.js.map} +0 -0
- /package/bundles/{chunk-WCD6LVCP.js.map → chunk-WMUBJYYX.js.map} +0 -0
- /package/bundles/{chunk-6GUXR7F5.js.map → chunk-XI2N3MV4.js.map} +0 -0
- /package/bundles/{chunk-QWNQBN2Z.js.map → chunk-ZH5AJH3B.js.map} +0 -0
|
@@ -36,14 +36,14 @@ import {
|
|
|
36
36
|
aliasTransformFactory,
|
|
37
37
|
declarationTransformFactory,
|
|
38
38
|
ivyTransformFactory
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-LJKJD6DP.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-XI2N3MV4.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-EVIA54WP.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-JOIB3454.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-I3M5LXMW.js";
|
|
106
106
|
|
|
107
|
-
// bazel-out/
|
|
107
|
+
// bazel-out/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
234
234
|
import ts2 from "typescript";
|
|
235
235
|
|
|
236
|
-
// bazel-out/
|
|
236
|
+
// bazel-out/darwin-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/darwin-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.4.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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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 {
|
|
@@ -933,7 +933,7 @@ function getEnumMemberValue(memberNode) {
|
|
|
933
933
|
return (_a = literal == null ? void 0 : literal.getText()) != null ? _a : "";
|
|
934
934
|
}
|
|
935
935
|
|
|
936
|
-
// bazel-out/
|
|
936
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_alias_extractor.mjs
|
|
937
937
|
function extractTypeAlias(declaration) {
|
|
938
938
|
return {
|
|
939
939
|
name: declaration.name.getText(),
|
|
@@ -945,7 +945,7 @@ function extractTypeAlias(declaration) {
|
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
947
|
|
|
948
|
-
// bazel-out/
|
|
948
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
949
949
|
var DocsExtractor = class {
|
|
950
950
|
constructor(typeChecker, metadataReader) {
|
|
951
951
|
this.typeChecker = typeChecker;
|
|
@@ -1007,7 +1007,7 @@ function isIgnoredInterface(node) {
|
|
|
1007
1007
|
return node.name.getText().endsWith("Decorator") || isDecoratorOptionsInterface(node);
|
|
1008
1008
|
}
|
|
1009
1009
|
|
|
1010
|
-
// bazel-out/
|
|
1010
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
1011
1011
|
import ts10 from "typescript";
|
|
1012
1012
|
var FlatIndexGenerator = class {
|
|
1013
1013
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -1032,7 +1032,7 @@ export * from '${relativeEntryPoint}';
|
|
|
1032
1032
|
}
|
|
1033
1033
|
};
|
|
1034
1034
|
|
|
1035
|
-
// bazel-out/
|
|
1035
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
1036
1036
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
1037
1037
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
1038
1038
|
let resolvedEntryPoint = null;
|
|
@@ -1048,7 +1048,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
1048
1048
|
return resolvedEntryPoint;
|
|
1049
1049
|
}
|
|
1050
1050
|
|
|
1051
|
-
// bazel-out/
|
|
1051
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
1052
1052
|
import ts11 from "typescript";
|
|
1053
1053
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
1054
1054
|
const diagnostics = [];
|
|
@@ -1128,7 +1128,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
1130
|
|
|
1131
|
-
// bazel-out/
|
|
1131
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
1132
1132
|
var ReferenceGraph = class {
|
|
1133
1133
|
constructor() {
|
|
1134
1134
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -1182,7 +1182,7 @@ var ReferenceGraph = class {
|
|
|
1182
1182
|
}
|
|
1183
1183
|
};
|
|
1184
1184
|
|
|
1185
|
-
// bazel-out/
|
|
1185
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
1186
1186
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
1187
1187
|
var UpdateMode;
|
|
1188
1188
|
(function(UpdateMode2) {
|
|
@@ -1190,13 +1190,13 @@ var UpdateMode;
|
|
|
1190
1190
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
1191
1191
|
})(UpdateMode || (UpdateMode = {}));
|
|
1192
1192
|
|
|
1193
|
-
// bazel-out/
|
|
1193
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
1194
1194
|
import ts13 from "typescript";
|
|
1195
1195
|
|
|
1196
|
-
// bazel-out/
|
|
1196
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
1197
1197
|
import ts12 from "typescript";
|
|
1198
1198
|
|
|
1199
|
-
// bazel-out/
|
|
1199
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
1200
1200
|
var NgExtension = Symbol("NgExtension");
|
|
1201
1201
|
function isExtended(sf) {
|
|
1202
1202
|
return sf[NgExtension] !== void 0;
|
|
@@ -1256,13 +1256,13 @@ function retagTsFile(sf) {
|
|
|
1256
1256
|
}
|
|
1257
1257
|
}
|
|
1258
1258
|
|
|
1259
|
-
// bazel-out/
|
|
1259
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
1260
1260
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
1261
1261
|
function makeShimFileName(fileName, suffix) {
|
|
1262
1262
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
1263
1263
|
}
|
|
1264
1264
|
|
|
1265
|
-
// bazel-out/
|
|
1265
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
1266
1266
|
var ShimAdapter = class {
|
|
1267
1267
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
1268
1268
|
this.delegate = delegate;
|
|
@@ -1357,7 +1357,7 @@ var ShimAdapter = class {
|
|
|
1357
1357
|
}
|
|
1358
1358
|
};
|
|
1359
1359
|
|
|
1360
|
-
// bazel-out/
|
|
1360
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
1361
1361
|
var ShimReferenceTagger = class {
|
|
1362
1362
|
constructor(shimExtensions) {
|
|
1363
1363
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -1391,8 +1391,14 @@ var ShimReferenceTagger = class {
|
|
|
1391
1391
|
}
|
|
1392
1392
|
};
|
|
1393
1393
|
|
|
1394
|
-
// bazel-out/
|
|
1394
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
1395
1395
|
var DelegatingCompilerHost = class {
|
|
1396
|
+
get jsDocParsingMode() {
|
|
1397
|
+
return this.delegate.jsDocParsingMode;
|
|
1398
|
+
}
|
|
1399
|
+
set jsDocParsingMode(mode) {
|
|
1400
|
+
this.delegate.jsDocParsingMode = mode;
|
|
1401
|
+
}
|
|
1396
1402
|
constructor(delegate) {
|
|
1397
1403
|
this.delegate = delegate;
|
|
1398
1404
|
this.createHash = this.delegateMethod("createHash");
|
|
@@ -1418,7 +1424,6 @@ var DelegatingCompilerHost = class {
|
|
|
1418
1424
|
this.hasInvalidatedResolutions = this.delegateMethod("hasInvalidatedResolutions");
|
|
1419
1425
|
this.resolveModuleNameLiterals = this.delegateMethod("resolveModuleNameLiterals");
|
|
1420
1426
|
this.resolveTypeReferenceDirectiveReferences = this.delegateMethod("resolveTypeReferenceDirectiveReferences");
|
|
1421
|
-
this.jsDocParsingMode = this.delegateMethod("jsDocParsingMode");
|
|
1422
1427
|
}
|
|
1423
1428
|
delegateMethod(name) {
|
|
1424
1429
|
return this.delegate[name] !== void 0 ? this.delegate[name].bind(this.delegate) : void 0;
|
|
@@ -1432,10 +1437,10 @@ var UpdatedProgramHost = class extends DelegatingCompilerHost {
|
|
|
1432
1437
|
this.shimTagger = new ShimReferenceTagger(this.shimExtensionPrefixes);
|
|
1433
1438
|
this.sfMap = sfMap;
|
|
1434
1439
|
}
|
|
1435
|
-
getSourceFile(fileName,
|
|
1440
|
+
getSourceFile(fileName, languageVersionOrOptions, onError, shouldCreateNewSourceFile) {
|
|
1436
1441
|
let delegateSf = this.originalProgram.getSourceFile(fileName);
|
|
1437
1442
|
if (delegateSf === void 0) {
|
|
1438
|
-
delegateSf = this.delegate.getSourceFile(fileName,
|
|
1443
|
+
delegateSf = this.delegate.getSourceFile(fileName, languageVersionOrOptions, onError, shouldCreateNewSourceFile);
|
|
1439
1444
|
}
|
|
1440
1445
|
if (delegateSf === void 0) {
|
|
1441
1446
|
return void 0;
|
|
@@ -1505,7 +1510,7 @@ var TsCreateProgramDriver = class {
|
|
|
1505
1510
|
}
|
|
1506
1511
|
};
|
|
1507
1512
|
|
|
1508
|
-
// bazel-out/
|
|
1513
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
1509
1514
|
var FileDependencyGraph = class {
|
|
1510
1515
|
constructor() {
|
|
1511
1516
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -1572,7 +1577,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
1572
1577
|
return false;
|
|
1573
1578
|
}
|
|
1574
1579
|
|
|
1575
|
-
// bazel-out/
|
|
1580
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
1576
1581
|
var IncrementalStateKind;
|
|
1577
1582
|
(function(IncrementalStateKind2) {
|
|
1578
1583
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -1580,7 +1585,7 @@ var IncrementalStateKind;
|
|
|
1580
1585
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
1581
1586
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
1582
1587
|
|
|
1583
|
-
// bazel-out/
|
|
1588
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
1584
1589
|
var PhaseKind;
|
|
1585
1590
|
(function(PhaseKind2) {
|
|
1586
1591
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -1781,7 +1786,7 @@ function toOriginalSourceFile(sf) {
|
|
|
1781
1786
|
}
|
|
1782
1787
|
}
|
|
1783
1788
|
|
|
1784
|
-
// bazel-out/
|
|
1789
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
1785
1790
|
var TrackedIncrementalBuildStrategy = class {
|
|
1786
1791
|
constructor() {
|
|
1787
1792
|
this.state = null;
|
|
@@ -1817,7 +1822,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
|
|
|
1817
1822
|
};
|
|
1818
1823
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
1819
1824
|
|
|
1820
|
-
// bazel-out/
|
|
1825
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
1821
1826
|
var IdentifierKind;
|
|
1822
1827
|
(function(IdentifierKind2) {
|
|
1823
1828
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -1835,7 +1840,7 @@ var AbsoluteSourceSpan = class {
|
|
|
1835
1840
|
}
|
|
1836
1841
|
};
|
|
1837
1842
|
|
|
1838
|
-
// bazel-out/
|
|
1843
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
1839
1844
|
var IndexingContext = class {
|
|
1840
1845
|
constructor() {
|
|
1841
1846
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -1845,10 +1850,10 @@ var IndexingContext = class {
|
|
|
1845
1850
|
}
|
|
1846
1851
|
};
|
|
1847
1852
|
|
|
1848
|
-
// bazel-out/
|
|
1853
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1849
1854
|
import { ParseSourceFile } from "@angular/compiler";
|
|
1850
1855
|
|
|
1851
|
-
// bazel-out/
|
|
1856
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
1852
1857
|
import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstBoundDeferredTrigger, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate } from "@angular/compiler";
|
|
1853
1858
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
1854
1859
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
@@ -2130,7 +2135,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
2130
2135
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
2131
2136
|
}
|
|
2132
2137
|
|
|
2133
|
-
// bazel-out/
|
|
2138
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
2134
2139
|
function generateAnalysis(context) {
|
|
2135
2140
|
const analysis = /* @__PURE__ */ new Map();
|
|
2136
2141
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -2166,7 +2171,7 @@ function generateAnalysis(context) {
|
|
|
2166
2171
|
return analysis;
|
|
2167
2172
|
}
|
|
2168
2173
|
|
|
2169
|
-
// bazel-out/
|
|
2174
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
2170
2175
|
var NgModuleIndexImpl = class {
|
|
2171
2176
|
constructor(metaReader, localReader) {
|
|
2172
2177
|
this.metaReader = metaReader;
|
|
@@ -2255,7 +2260,7 @@ var NgModuleIndexImpl = class {
|
|
|
2255
2260
|
}
|
|
2256
2261
|
};
|
|
2257
2262
|
|
|
2258
|
-
// bazel-out/
|
|
2263
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
2259
2264
|
import ts14 from "typescript";
|
|
2260
2265
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
2261
2266
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -2401,7 +2406,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
2401
2406
|
};
|
|
2402
2407
|
}
|
|
2403
2408
|
|
|
2404
|
-
// bazel-out/
|
|
2409
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
2405
2410
|
var StandaloneComponentScopeReader = class {
|
|
2406
2411
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
2407
2412
|
this.metaReader = metaReader;
|
|
@@ -2479,10 +2484,10 @@ var StandaloneComponentScopeReader = class {
|
|
|
2479
2484
|
}
|
|
2480
2485
|
};
|
|
2481
2486
|
|
|
2482
|
-
// bazel-out/
|
|
2487
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
2483
2488
|
import { CssSelector as CssSelector2, DomElementSchemaRegistry as DomElementSchemaRegistry2, ExternalExpr as ExternalExpr2, WrappedNodeExpr } from "@angular/compiler";
|
|
2484
2489
|
|
|
2485
|
-
// bazel-out/
|
|
2490
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
2486
2491
|
import ts15 from "typescript";
|
|
2487
2492
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
2488
2493
|
var _a;
|
|
@@ -2589,7 +2594,7 @@ function parseTemplateAsSourceFile(fileName, template) {
|
|
|
2589
2594
|
return ts15.createSourceFile(fileName, template, ts15.ScriptTarget.Latest, false, ts15.ScriptKind.JSX);
|
|
2590
2595
|
}
|
|
2591
2596
|
|
|
2592
|
-
// bazel-out/
|
|
2597
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
2593
2598
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
2594
2599
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
2595
2600
|
function getTemplateId(clazz) {
|
|
@@ -2606,11 +2611,11 @@ function allocateTemplateId(sf) {
|
|
|
2606
2611
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
2607
2612
|
}
|
|
2608
2613
|
|
|
2609
|
-
// bazel-out/
|
|
2614
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2610
2615
|
import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
|
|
2611
2616
|
import ts17 from "typescript";
|
|
2612
2617
|
|
|
2613
|
-
// bazel-out/
|
|
2618
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
2614
2619
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
|
|
2615
2620
|
import ts16 from "typescript";
|
|
2616
2621
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
@@ -2740,7 +2745,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
2740
2745
|
}) || false;
|
|
2741
2746
|
}
|
|
2742
2747
|
|
|
2743
|
-
// bazel-out/
|
|
2748
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2744
2749
|
var CompletionEngine = class {
|
|
2745
2750
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
2746
2751
|
this.tcb = tcb;
|
|
@@ -2897,10 +2902,10 @@ var CompletionEngine = class {
|
|
|
2897
2902
|
}
|
|
2898
2903
|
};
|
|
2899
2904
|
|
|
2900
|
-
// bazel-out/
|
|
2905
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
2901
2906
|
import ts30 from "typescript";
|
|
2902
2907
|
|
|
2903
|
-
// bazel-out/
|
|
2908
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
2904
2909
|
import { DomElementSchemaRegistry } from "@angular/compiler";
|
|
2905
2910
|
import ts18 from "typescript";
|
|
2906
2911
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
@@ -2953,11 +2958,11 @@ var RegistryDomSchemaChecker = class {
|
|
|
2953
2958
|
}
|
|
2954
2959
|
};
|
|
2955
2960
|
|
|
2956
|
-
// bazel-out/
|
|
2961
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
2957
2962
|
import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
|
|
2958
2963
|
import ts23 from "typescript";
|
|
2959
2964
|
|
|
2960
|
-
// bazel-out/
|
|
2965
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
2961
2966
|
import ts19 from "typescript";
|
|
2962
2967
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
2963
2968
|
ts19.SyntaxKind.ParenthesizedExpression,
|
|
@@ -3042,13 +3047,13 @@ function tsNumericExpression(value) {
|
|
|
3042
3047
|
return ts19.factory.createNumericLiteral(value);
|
|
3043
3048
|
}
|
|
3044
3049
|
|
|
3045
|
-
// bazel-out/
|
|
3050
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
3046
3051
|
import ts22 from "typescript";
|
|
3047
3052
|
|
|
3048
|
-
// bazel-out/
|
|
3053
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
3049
3054
|
import ts21 from "typescript";
|
|
3050
3055
|
|
|
3051
|
-
// bazel-out/
|
|
3056
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
3052
3057
|
import ts20 from "typescript";
|
|
3053
3058
|
var TypeParameterEmitter = class {
|
|
3054
3059
|
constructor(typeParameters, reflector) {
|
|
@@ -3126,7 +3131,7 @@ var TypeParameterEmitter = class {
|
|
|
3126
3131
|
}
|
|
3127
3132
|
};
|
|
3128
3133
|
|
|
3129
|
-
// bazel-out/
|
|
3134
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
3130
3135
|
var TcbInliningRequirement;
|
|
3131
3136
|
(function(TcbInliningRequirement2) {
|
|
3132
3137
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -3206,7 +3211,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
3206
3211
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
3207
3212
|
}
|
|
3208
3213
|
|
|
3209
|
-
// bazel-out/
|
|
3214
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
3210
3215
|
function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
3211
3216
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
3212
3217
|
const rawType = ts22.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -3317,7 +3322,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
3317
3322
|
});
|
|
3318
3323
|
}
|
|
3319
3324
|
|
|
3320
|
-
// bazel-out/
|
|
3325
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
3321
3326
|
var Environment = class {
|
|
3322
3327
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
3323
3328
|
this.config = config;
|
|
@@ -3411,7 +3416,7 @@ var Environment = class {
|
|
|
3411
3416
|
}
|
|
3412
3417
|
};
|
|
3413
3418
|
|
|
3414
|
-
// bazel-out/
|
|
3419
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
3415
3420
|
import { TmplAstElement as TmplAstElement2, TmplAstIfBlockBranch } from "@angular/compiler";
|
|
3416
3421
|
import ts24 from "typescript";
|
|
3417
3422
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
@@ -3558,7 +3563,7 @@ Deferred blocks can only access triggers in same view, a parent embedded view or
|
|
|
3558
3563
|
}
|
|
3559
3564
|
this._diagnostics.push(makeTemplateDiagnostic(templateId, this.resolver.getSourceMapping(templateId), trigger.sourceSpan, ts24.DiagnosticCategory.Error, ngErrorCode(ErrorCode.INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT), message));
|
|
3560
3565
|
}
|
|
3561
|
-
controlFlowPreventingContentProjection(templateId, projectionNode, componentName, slotSelector, controlFlowNode, preservesWhitespaces) {
|
|
3566
|
+
controlFlowPreventingContentProjection(templateId, category, projectionNode, componentName, slotSelector, controlFlowNode, preservesWhitespaces) {
|
|
3562
3567
|
const blockName = controlFlowNode instanceof TmplAstIfBlockBranch ? "@if" : "@for";
|
|
3563
3568
|
const lines = [
|
|
3564
3569
|
`Node matches the "${slotSelector}" slot of the "${componentName}" component, but will not be projected into the specific slot because the surrounding ${blockName} has more than one node at its root. To project the node in the right slot, you can:
|
|
@@ -3568,9 +3573,10 @@ Deferred blocks can only access triggers in same view, a parent embedded view or
|
|
|
3568
3573
|
`3. Remove all content from the ${blockName} block, except for the node being projected.`
|
|
3569
3574
|
];
|
|
3570
3575
|
if (preservesWhitespaces) {
|
|
3571
|
-
lines.push(
|
|
3576
|
+
lines.push("Note: the host component has `preserveWhitespaces: true` which may cause whitespace to affect content projection.");
|
|
3572
3577
|
}
|
|
3573
|
-
|
|
3578
|
+
lines.push("", 'This check can be disabled using the `extendedDiagnostics.checks.controlFlowPreventingContentProjection = "suppress" compiler option.`');
|
|
3579
|
+
this._diagnostics.push(makeTemplateDiagnostic(templateId, this.resolver.getSourceMapping(templateId), projectionNode.startSourceSpan, category, ngErrorCode(ErrorCode.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION), lines.join("\n")));
|
|
3574
3580
|
}
|
|
3575
3581
|
};
|
|
3576
3582
|
function makeInlineDiagnostic(templateId, code, node, messageText, relatedInformation) {
|
|
@@ -3581,7 +3587,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
3581
3587
|
};
|
|
3582
3588
|
}
|
|
3583
3589
|
|
|
3584
|
-
// bazel-out/
|
|
3590
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
3585
3591
|
import ts25 from "typescript";
|
|
3586
3592
|
var TypeCheckShimGenerator = class {
|
|
3587
3593
|
constructor() {
|
|
@@ -3599,11 +3605,11 @@ var TypeCheckShimGenerator = class {
|
|
|
3599
3605
|
}
|
|
3600
3606
|
};
|
|
3601
3607
|
|
|
3602
|
-
// bazel-out/
|
|
3608
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
3603
3609
|
import { BindingPipe, Call as Call2, createCssSelectorFromNode, CssSelector, DYNAMIC_TYPE, ImplicitReceiver as ImplicitReceiver4, PropertyRead as PropertyRead4, PropertyWrite as PropertyWrite3, SafeCall, SafePropertyRead as SafePropertyRead3, SelectorMatcher, ThisReceiver, TmplAstBoundAttribute, TmplAstBoundText, TmplAstDeferredBlock, TmplAstElement as TmplAstElement3, TmplAstForLoopBlock, TmplAstIcu, TmplAstIfBlock, TmplAstIfBlockBranch as TmplAstIfBlockBranch2, TmplAstReference as TmplAstReference3, TmplAstSwitchBlock, TmplAstTemplate as TmplAstTemplate2, TmplAstText, TmplAstTextAttribute as TmplAstTextAttribute2, TmplAstVariable as TmplAstVariable2, TransplantedType } from "@angular/compiler";
|
|
3604
3610
|
import ts28 from "typescript";
|
|
3605
3611
|
|
|
3606
|
-
// bazel-out/
|
|
3612
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
3607
3613
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
|
|
3608
3614
|
import ts26 from "typescript";
|
|
3609
3615
|
function wrapForDiagnostics(expr) {
|
|
@@ -3649,7 +3655,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
3649
3655
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
3650
3656
|
}
|
|
3651
3657
|
|
|
3652
|
-
// bazel-out/
|
|
3658
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
3653
3659
|
import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
|
|
3654
3660
|
import ts27 from "typescript";
|
|
3655
3661
|
var NULL_AS_ANY = ts27.factory.createAsExpression(ts27.factory.createNull(), ts27.factory.createKeywordTypeNode(ts27.SyntaxKind.AnyKeyword));
|
|
@@ -3982,7 +3988,7 @@ var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
|
|
|
3982
3988
|
_VeSafeLhsInferenceBugDetector.SINGLETON = new _VeSafeLhsInferenceBugDetector();
|
|
3983
3989
|
})();
|
|
3984
3990
|
|
|
3985
|
-
// bazel-out/
|
|
3991
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
3986
3992
|
import { ImplicitReceiver as ImplicitReceiver3, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstVariable } from "@angular/compiler";
|
|
3987
3993
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
3988
3994
|
constructor(templateId, boundTarget, oob) {
|
|
@@ -4006,7 +4012,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
|
4006
4012
|
}
|
|
4007
4013
|
};
|
|
4008
4014
|
|
|
4009
|
-
// bazel-out/
|
|
4015
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
4010
4016
|
var TcbGenericContextBehavior;
|
|
4011
4017
|
(function(TcbGenericContextBehavior2) {
|
|
4012
4018
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -4478,6 +4484,7 @@ var TcbControlFlowContentProjectionOp = class extends TcbOp {
|
|
|
4478
4484
|
this.ngContentSelectors = ngContentSelectors;
|
|
4479
4485
|
this.componentName = componentName;
|
|
4480
4486
|
this.optional = false;
|
|
4487
|
+
this.category = tcb.env.config.controlFlowPreventingContentProjection === "error" ? ts28.DiagnosticCategory.Error : ts28.DiagnosticCategory.Warning;
|
|
4481
4488
|
}
|
|
4482
4489
|
execute() {
|
|
4483
4490
|
const controlFlowToCheck = this.findPotentialControlFlowNodes();
|
|
@@ -4492,7 +4499,7 @@ var TcbControlFlowContentProjectionOp = class extends TcbOp {
|
|
|
4492
4499
|
for (const child of root.children) {
|
|
4493
4500
|
if (child instanceof TmplAstElement3 || child instanceof TmplAstTemplate2) {
|
|
4494
4501
|
matcher.match(createCssSelectorFromNode(child), (_, originalSelector) => {
|
|
4495
|
-
this.tcb.oobRecorder.controlFlowPreventingContentProjection(this.tcb.id, child, this.componentName, originalSelector, root, this.tcb.hostPreserveWhitespaces);
|
|
4502
|
+
this.tcb.oobRecorder.controlFlowPreventingContentProjection(this.tcb.id, this.category, child, this.componentName, originalSelector, root, this.tcb.hostPreserveWhitespaces);
|
|
4496
4503
|
});
|
|
4497
4504
|
}
|
|
4498
4505
|
}
|
|
@@ -4844,7 +4851,11 @@ var TcbForOfOp = class extends TcbOp {
|
|
|
4844
4851
|
}
|
|
4845
4852
|
execute() {
|
|
4846
4853
|
const loopScope = Scope.forNodes(this.tcb, this.scope, this.block, this.block.children, null);
|
|
4847
|
-
const
|
|
4854
|
+
const initializerId = loopScope.resolve(this.block.item);
|
|
4855
|
+
if (!ts28.isIdentifier(initializerId)) {
|
|
4856
|
+
throw new Error(`Could not resolve for loop variable ${this.block.item.name} to an identifier`);
|
|
4857
|
+
}
|
|
4858
|
+
const initializer = ts28.factory.createVariableDeclarationList([ts28.factory.createVariableDeclaration(initializerId)], ts28.NodeFlags.Const);
|
|
4848
4859
|
const expression = ts28.factory.createNonNullExpression(tcbExpression(this.block.expression, this.tcb, loopScope));
|
|
4849
4860
|
const trackTranslator = new TcbForLoopTrackTranslator(this.tcb, loopScope, this.block);
|
|
4850
4861
|
const trackExpression = trackTranslator.translate(this.block.trackBy);
|
|
@@ -4915,7 +4926,9 @@ var _Scope = class {
|
|
|
4915
4926
|
this.registerVariable(scope, expressionAlias, new TcbBlockVariableOp(tcb, scope, tcbExpression(expression, tcb, scope), expressionAlias));
|
|
4916
4927
|
}
|
|
4917
4928
|
} else if (scopedNode instanceof TmplAstForLoopBlock) {
|
|
4918
|
-
|
|
4929
|
+
const loopInitializer = tcb.allocateId();
|
|
4930
|
+
addParseSpanInfo(loopInitializer, scopedNode.item.sourceSpan);
|
|
4931
|
+
scope.varMap.set(scopedNode.item, loopInitializer);
|
|
4919
4932
|
for (const [name, variable] of Object.entries(scopedNode.contextVariables)) {
|
|
4920
4933
|
if (!this.forLoopContextVariableTypes.has(name)) {
|
|
4921
4934
|
throw new Error(`Unrecognized for loop context variable ${name}`);
|
|
@@ -4980,7 +4993,8 @@ var _Scope = class {
|
|
|
4980
4993
|
if (ref instanceof TmplAstReference3 && this.referenceOpMap.has(ref)) {
|
|
4981
4994
|
return this.resolveOp(this.referenceOpMap.get(ref));
|
|
4982
4995
|
} else if (ref instanceof TmplAstVariable2 && this.varMap.has(ref)) {
|
|
4983
|
-
|
|
4996
|
+
const opIndexOrNode = this.varMap.get(ref);
|
|
4997
|
+
return typeof opIndexOrNode === "number" ? this.resolveOp(opIndexOrNode) : opIndexOrNode;
|
|
4984
4998
|
} else if (ref instanceof TmplAstTemplate2 && directive === void 0 && this.templateCtxOpMap.has(ref)) {
|
|
4985
4999
|
return this.resolveOp(this.templateCtxOpMap.get(ref));
|
|
4986
5000
|
} else if ((ref instanceof TmplAstElement3 || ref instanceof TmplAstTemplate2) && directive !== void 0 && this.directiveOpMap.has(ref)) {
|
|
@@ -5020,7 +5034,9 @@ var _Scope = class {
|
|
|
5020
5034
|
if (node instanceof TmplAstElement3) {
|
|
5021
5035
|
const opIndex = this.opQueue.push(new TcbElementOp(this.tcb, this, node)) - 1;
|
|
5022
5036
|
this.elementOpMap.set(node, opIndex);
|
|
5023
|
-
this.
|
|
5037
|
+
if (this.tcb.env.config.controlFlowPreventingContentProjection !== "suppress") {
|
|
5038
|
+
this.appendContentProjectionCheckOp(node);
|
|
5039
|
+
}
|
|
5024
5040
|
this.appendDirectivesAndInputsOfNode(node);
|
|
5025
5041
|
this.appendOutputsOfNode(node);
|
|
5026
5042
|
this.appendChildren(node);
|
|
@@ -5459,7 +5475,7 @@ var TcbForLoopTrackTranslator = class extends TcbExpressionTranslator {
|
|
|
5459
5475
|
}
|
|
5460
5476
|
};
|
|
5461
5477
|
|
|
5462
|
-
// bazel-out/
|
|
5478
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
5463
5479
|
import ts29 from "typescript";
|
|
5464
5480
|
var TypeCheckFile = class extends Environment {
|
|
5465
5481
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -5495,7 +5511,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
5495
5511
|
}
|
|
5496
5512
|
};
|
|
5497
5513
|
|
|
5498
|
-
// bazel-out/
|
|
5514
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
5499
5515
|
var InliningMode;
|
|
5500
5516
|
(function(InliningMode2) {
|
|
5501
5517
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -5733,10 +5749,10 @@ function splitStringAtPoints(str, points) {
|
|
|
5733
5749
|
return splits;
|
|
5734
5750
|
}
|
|
5735
5751
|
|
|
5736
|
-
// bazel-out/
|
|
5752
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
5737
5753
|
import { ParseLocation, ParseSourceSpan } from "@angular/compiler";
|
|
5738
5754
|
|
|
5739
|
-
// bazel-out/
|
|
5755
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
5740
5756
|
var LF_CHAR = 10;
|
|
5741
5757
|
var CR_CHAR = 13;
|
|
5742
5758
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -5777,7 +5793,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
5777
5793
|
return low - 1;
|
|
5778
5794
|
}
|
|
5779
5795
|
|
|
5780
|
-
// bazel-out/
|
|
5796
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
5781
5797
|
var TemplateSource = class {
|
|
5782
5798
|
constructor(mapping, file) {
|
|
5783
5799
|
this.mapping = mapping;
|
|
@@ -5828,7 +5844,7 @@ var TemplateSourceManager = class {
|
|
|
5828
5844
|
}
|
|
5829
5845
|
};
|
|
5830
5846
|
|
|
5831
|
-
// bazel-out/
|
|
5847
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
5832
5848
|
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";
|
|
5833
5849
|
import ts31 from "typescript";
|
|
5834
5850
|
var SymbolBuilder = class {
|
|
@@ -6312,7 +6328,7 @@ function sourceSpanEqual(a, b) {
|
|
|
6312
6328
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
6313
6329
|
}
|
|
6314
6330
|
|
|
6315
|
-
// bazel-out/
|
|
6331
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
6316
6332
|
var REGISTRY2 = new DomElementSchemaRegistry2();
|
|
6317
6333
|
var TemplateTypeCheckerImpl = class {
|
|
6318
6334
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -7009,10 +7025,10 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
7009
7025
|
}
|
|
7010
7026
|
};
|
|
7011
7027
|
|
|
7012
|
-
// bazel-out/
|
|
7028
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
7013
7029
|
import { Interpolation, PropertyRead as PropertyRead6 } from "@angular/compiler";
|
|
7014
7030
|
|
|
7015
|
-
// bazel-out/
|
|
7031
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
7016
7032
|
import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor3, TmplAstBoundDeferredTrigger as TmplAstBoundDeferredTrigger2 } from "@angular/compiler";
|
|
7017
7033
|
var TemplateCheckWithVisitor = class {
|
|
7018
7034
|
run(ctx, component, template) {
|
|
@@ -7136,7 +7152,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor3 {
|
|
|
7136
7152
|
}
|
|
7137
7153
|
};
|
|
7138
7154
|
|
|
7139
|
-
// bazel-out/
|
|
7155
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
7140
7156
|
var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
|
|
7141
7157
|
constructor() {
|
|
7142
7158
|
super(...arguments);
|
|
@@ -7171,7 +7187,7 @@ var factory = {
|
|
|
7171
7187
|
create: () => new InterpolatedSignalCheck()
|
|
7172
7188
|
};
|
|
7173
7189
|
|
|
7174
|
-
// bazel-out/
|
|
7190
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
7175
7191
|
import { TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
|
|
7176
7192
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
7177
7193
|
constructor() {
|
|
@@ -7197,7 +7213,7 @@ var factory2 = {
|
|
|
7197
7213
|
create: () => new InvalidBananaInBoxCheck()
|
|
7198
7214
|
};
|
|
7199
7215
|
|
|
7200
|
-
// bazel-out/
|
|
7216
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
7201
7217
|
import { TmplAstTemplate as TmplAstTemplate4 } from "@angular/compiler";
|
|
7202
7218
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
7203
7219
|
["ngIf", { directive: "NgIf", builtIn: "@if" }],
|
|
@@ -7242,7 +7258,7 @@ var factory3 = {
|
|
|
7242
7258
|
}
|
|
7243
7259
|
};
|
|
7244
7260
|
|
|
7245
|
-
// bazel-out/
|
|
7261
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
7246
7262
|
import { TmplAstTemplate as TmplAstTemplate5 } from "@angular/compiler";
|
|
7247
7263
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
7248
7264
|
constructor() {
|
|
@@ -7275,7 +7291,7 @@ var factory4 = {
|
|
|
7275
7291
|
create: () => new MissingNgForOfLetCheck()
|
|
7276
7292
|
};
|
|
7277
7293
|
|
|
7278
|
-
// bazel-out/
|
|
7294
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
7279
7295
|
import { Binary } from "@angular/compiler";
|
|
7280
7296
|
import ts32 from "typescript";
|
|
7281
7297
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -7320,7 +7336,7 @@ var factory5 = {
|
|
|
7320
7336
|
}
|
|
7321
7337
|
};
|
|
7322
7338
|
|
|
7323
|
-
// bazel-out/
|
|
7339
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
7324
7340
|
import { SafeCall as SafeCall2, SafeKeyedRead as SafeKeyedRead2, SafePropertyRead as SafePropertyRead5 } from "@angular/compiler";
|
|
7325
7341
|
import ts33 from "typescript";
|
|
7326
7342
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -7366,7 +7382,7 @@ var factory6 = {
|
|
|
7366
7382
|
}
|
|
7367
7383
|
};
|
|
7368
7384
|
|
|
7369
|
-
// bazel-out/
|
|
7385
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
7370
7386
|
import { TmplAstBoundAttribute as TmplAstBoundAttribute3 } from "@angular/compiler";
|
|
7371
7387
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
7372
7388
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -7390,7 +7406,7 @@ var factory7 = {
|
|
|
7390
7406
|
create: () => new SuffixNotSupportedCheck()
|
|
7391
7407
|
};
|
|
7392
7408
|
|
|
7393
|
-
// bazel-out/
|
|
7409
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
7394
7410
|
import { TmplAstTextAttribute as TmplAstTextAttribute4 } from "@angular/compiler";
|
|
7395
7411
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
7396
7412
|
constructor() {
|
|
@@ -7429,10 +7445,10 @@ var factory8 = {
|
|
|
7429
7445
|
create: () => new TextAttributeNotBindingSpec()
|
|
7430
7446
|
};
|
|
7431
7447
|
|
|
7432
|
-
// bazel-out/
|
|
7448
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
7433
7449
|
import ts34 from "typescript";
|
|
7434
7450
|
|
|
7435
|
-
// bazel-out/
|
|
7451
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
7436
7452
|
var DiagnosticCategoryLabel;
|
|
7437
7453
|
(function(DiagnosticCategoryLabel2) {
|
|
7438
7454
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -7440,7 +7456,7 @@ var DiagnosticCategoryLabel;
|
|
|
7440
7456
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
7441
7457
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
7442
7458
|
|
|
7443
|
-
// bazel-out/
|
|
7459
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
7444
7460
|
var ExtendedTemplateCheckerImpl = class {
|
|
7445
7461
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
7446
7462
|
var _a, _b, _c, _d, _e;
|
|
@@ -7493,7 +7509,7 @@ function assertNever(value) {
|
|
|
7493
7509
|
${value}`);
|
|
7494
7510
|
}
|
|
7495
7511
|
|
|
7496
|
-
// bazel-out/
|
|
7512
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
7497
7513
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
7498
7514
|
factory2,
|
|
7499
7515
|
factory5,
|
|
@@ -7504,8 +7520,12 @@ var ALL_DIAGNOSTIC_FACTORIES = [
|
|
|
7504
7520
|
factory7,
|
|
7505
7521
|
factory
|
|
7506
7522
|
];
|
|
7523
|
+
var SUPPORTED_DIAGNOSTIC_NAMES = /* @__PURE__ */ new Set([
|
|
7524
|
+
ExtendedTemplateDiagnosticName.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION,
|
|
7525
|
+
...ALL_DIAGNOSTIC_FACTORIES.map((factory9) => factory9.name)
|
|
7526
|
+
]);
|
|
7507
7527
|
|
|
7508
|
-
// bazel-out/
|
|
7528
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
7509
7529
|
var CompilationTicketKind;
|
|
7510
7530
|
(function(CompilationTicketKind2) {
|
|
7511
7531
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -7839,6 +7859,7 @@ var NgCompiler = class {
|
|
|
7839
7859
|
return strictTemplates || !!this.options.fullTemplateTypeCheck;
|
|
7840
7860
|
}
|
|
7841
7861
|
getTypeCheckingConfig() {
|
|
7862
|
+
var _a, _b, _c, _d;
|
|
7842
7863
|
const strictTemplates = !!this.options.strictTemplates;
|
|
7843
7864
|
const useInlineTypeConstructors = this.programDriver.supportsInlineOperations;
|
|
7844
7865
|
let typeCheckingConfig;
|
|
@@ -7864,7 +7885,8 @@ var NgCompiler = class {
|
|
|
7864
7885
|
strictLiteralTypes: true,
|
|
7865
7886
|
enableTemplateTypeChecker: this.enableTemplateTypeChecker,
|
|
7866
7887
|
useInlineTypeConstructors,
|
|
7867
|
-
suggestionsForSuboptimalTypeInference: this.enableTemplateTypeChecker && !strictTemplates
|
|
7888
|
+
suggestionsForSuboptimalTypeInference: this.enableTemplateTypeChecker && !strictTemplates,
|
|
7889
|
+
controlFlowPreventingContentProjection: ((_a = this.options.extendedDiagnostics) == null ? void 0 : _a.defaultCategory) || DiagnosticCategoryLabel.Warning
|
|
7868
7890
|
};
|
|
7869
7891
|
} else {
|
|
7870
7892
|
typeCheckingConfig = {
|
|
@@ -7888,7 +7910,8 @@ var NgCompiler = class {
|
|
|
7888
7910
|
strictLiteralTypes: false,
|
|
7889
7911
|
enableTemplateTypeChecker: this.enableTemplateTypeChecker,
|
|
7890
7912
|
useInlineTypeConstructors,
|
|
7891
|
-
suggestionsForSuboptimalTypeInference: false
|
|
7913
|
+
suggestionsForSuboptimalTypeInference: false,
|
|
7914
|
+
controlFlowPreventingContentProjection: ((_b = this.options.extendedDiagnostics) == null ? void 0 : _b.defaultCategory) || DiagnosticCategoryLabel.Warning
|
|
7892
7915
|
};
|
|
7893
7916
|
}
|
|
7894
7917
|
if (this.options.strictInputTypes !== void 0) {
|
|
@@ -7923,6 +7946,9 @@ var NgCompiler = class {
|
|
|
7923
7946
|
if (this.options.strictLiteralTypes !== void 0) {
|
|
7924
7947
|
typeCheckingConfig.strictLiteralTypes = this.options.strictLiteralTypes;
|
|
7925
7948
|
}
|
|
7949
|
+
if (((_d = (_c = this.options.extendedDiagnostics) == null ? void 0 : _c.checks) == null ? void 0 : _d.controlFlowPreventingContentProjection) !== void 0) {
|
|
7950
|
+
typeCheckingConfig.controlFlowPreventingContentProjection = this.options.extendedDiagnostics.checks.controlFlowPreventingContentProjection;
|
|
7951
|
+
}
|
|
7926
7952
|
return typeCheckingConfig;
|
|
7927
7953
|
}
|
|
7928
7954
|
getTemplateDiagnostics() {
|
|
@@ -8181,9 +8207,8 @@ ${allowedCategoryLabels.join("\n")}
|
|
|
8181
8207
|
`.trim()
|
|
8182
8208
|
});
|
|
8183
8209
|
}
|
|
8184
|
-
const allExtendedDiagnosticNames = ALL_DIAGNOSTIC_FACTORIES.map((factory9) => factory9.name);
|
|
8185
8210
|
for (const [checkName, category] of Object.entries((_c = (_b = options.extendedDiagnostics) == null ? void 0 : _b.checks) != null ? _c : {})) {
|
|
8186
|
-
if (!
|
|
8211
|
+
if (!SUPPORTED_DIAGNOSTIC_NAMES.has(checkName)) {
|
|
8187
8212
|
yield makeConfigDiagnostic({
|
|
8188
8213
|
category: ts35.DiagnosticCategory.Error,
|
|
8189
8214
|
code: ErrorCode.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK,
|
|
@@ -8191,7 +8216,7 @@ ${allowedCategoryLabels.join("\n")}
|
|
|
8191
8216
|
Angular compiler option "extendedDiagnostics.checks" has an unknown check: "${checkName}".
|
|
8192
8217
|
|
|
8193
8218
|
Allowed check names are:
|
|
8194
|
-
${
|
|
8219
|
+
${Array.from(SUPPORTED_DIAGNOSTIC_NAMES).join("\n")}
|
|
8195
8220
|
`.trim()
|
|
8196
8221
|
});
|
|
8197
8222
|
}
|
|
@@ -8265,7 +8290,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
8265
8290
|
return versions;
|
|
8266
8291
|
}
|
|
8267
8292
|
|
|
8268
|
-
// bazel-out/
|
|
8293
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
8269
8294
|
import ts36 from "typescript";
|
|
8270
8295
|
var DelegatingCompilerHost2 = class {
|
|
8271
8296
|
get jsDocParsingMode() {
|
|
@@ -8404,7 +8429,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
8404
8429
|
}
|
|
8405
8430
|
};
|
|
8406
8431
|
|
|
8407
|
-
// bazel-out/
|
|
8432
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
8408
8433
|
var NgtscProgram = class {
|
|
8409
8434
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
8410
8435
|
this.options = options;
|
|
@@ -8631,15 +8656,15 @@ function mergeEmitResults(emitResults) {
|
|
|
8631
8656
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
8632
8657
|
}
|
|
8633
8658
|
|
|
8634
|
-
// bazel-out/
|
|
8659
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
8635
8660
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
8636
8661
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
8637
8662
|
}
|
|
8638
8663
|
|
|
8639
|
-
// bazel-out/
|
|
8664
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
8640
8665
|
import ts39 from "typescript";
|
|
8641
8666
|
|
|
8642
|
-
// bazel-out/
|
|
8667
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
8643
8668
|
import ts38 from "typescript";
|
|
8644
8669
|
function createMessageDiagnostic(messageText) {
|
|
8645
8670
|
return {
|
|
@@ -8653,7 +8678,7 @@ function createMessageDiagnostic(messageText) {
|
|
|
8653
8678
|
};
|
|
8654
8679
|
}
|
|
8655
8680
|
|
|
8656
|
-
// bazel-out/
|
|
8681
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
8657
8682
|
var defaultFormatHost = {
|
|
8658
8683
|
getCurrentDirectory: () => ts39.sys.getCurrentDirectory(),
|
|
8659
8684
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -8866,4 +8891,4 @@ export {
|
|
|
8866
8891
|
* Use of this source code is governed by an MIT-style license that can be
|
|
8867
8892
|
* found in the LICENSE file at https://angular.io/license
|
|
8868
8893
|
*/
|
|
8869
|
-
//# sourceMappingURL=chunk-
|
|
8894
|
+
//# sourceMappingURL=chunk-DV5CKGO6.js.map
|