@angular/compiler-cli 17.1.0-next.1 → 17.1.0-next.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-UTWZHLA4.js → chunk-54K5L6NG.js} +30 -30
- package/bundles/{chunk-XCEXKEDO.js → chunk-6GUXR7F5.js} +11 -11
- package/bundles/{chunk-MTZGVQDN.js → chunk-OYL5JDZA.js} +205 -118
- package/bundles/chunk-OYL5JDZA.js.map +6 -0
- package/bundles/{chunk-DUY2FPLZ.js → chunk-QPMYDNZG.js} +7 -7
- package/bundles/{chunk-U6JZJXY2.js → chunk-QWNQBN2Z.js} +5 -5
- package/bundles/{chunk-64JBPJBS.js → chunk-R4KQI5XI.js} +5 -5
- package/bundles/{chunk-VHIKXGRX.js → chunk-RLZPCAR3.js} +28 -27
- package/bundles/{chunk-VHIKXGRX.js.map → chunk-RLZPCAR3.js.map} +1 -1
- package/bundles/{chunk-LYJKWJUC.js → chunk-SBDNBITT.js} +3 -3
- package/bundles/{chunk-EMC3QXAT.js → chunk-TNVYLY25.js} +4 -4
- package/bundles/{chunk-JZC4T2RR.js → chunk-UHYH6BYB.js} +1 -1
- package/bundles/{chunk-2UJEML3U.js → chunk-VOXK3NAL.js} +97 -85
- package/bundles/chunk-VOXK3NAL.js.map +6 -0
- package/bundles/{chunk-2WQIUGOU.js → chunk-WCD6LVCP.js} +7 -7
- 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/bin/ng_xi18n.d.ts +1 -1
- package/src/bin/ngc.d.ts +1 -1
- package/src/ngtsc/core/src/host.d.ts +3 -2
- package/src/ngtsc/diagnostics/src/error_code.d.ts +14 -0
- package/src/ngtsc/typecheck/api/api.d.ts +4 -0
- package/src/ngtsc/typecheck/api/context.d.ts +3 -1
- package/src/ngtsc/typecheck/src/context.d.ts +1 -1
- package/src/ngtsc/typecheck/src/oob.d.ts +6 -1
- package/src/ngtsc/typecheck/src/type_check_block.d.ts +3 -1
- package/bundles/chunk-2UJEML3U.js.map +0 -6
- package/bundles/chunk-MTZGVQDN.js.map +0 -6
- /package/bundles/{chunk-UTWZHLA4.js.map → chunk-54K5L6NG.js.map} +0 -0
- /package/bundles/{chunk-XCEXKEDO.js.map → chunk-6GUXR7F5.js.map} +0 -0
- /package/bundles/{chunk-DUY2FPLZ.js.map → chunk-QPMYDNZG.js.map} +0 -0
- /package/bundles/{chunk-U6JZJXY2.js.map → chunk-QWNQBN2Z.js.map} +0 -0
- /package/bundles/{chunk-64JBPJBS.js.map → chunk-R4KQI5XI.js.map} +0 -0
- /package/bundles/{chunk-LYJKWJUC.js.map → chunk-SBDNBITT.js.map} +0 -0
- /package/bundles/{chunk-EMC3QXAT.js.map → chunk-TNVYLY25.js.map} +0 -0
- /package/bundles/{chunk-JZC4T2RR.js.map → chunk-UHYH6BYB.js.map} +0 -0
- /package/bundles/{chunk-2WQIUGOU.js.map → chunk-WCD6LVCP.js.map} +0 -0
|
@@ -36,14 +36,14 @@ import {
|
|
|
36
36
|
aliasTransformFactory,
|
|
37
37
|
declarationTransformFactory,
|
|
38
38
|
ivyTransformFactory
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-VOXK3NAL.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-6GUXR7F5.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-RLZPCAR3.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-R4KQI5XI.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-QPMYDNZG.js";
|
|
106
106
|
|
|
107
|
-
// bazel-out/
|
|
107
|
+
// bazel-out/darwin_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
234
234
|
import ts2 from "typescript";
|
|
235
235
|
|
|
236
|
-
// bazel-out/
|
|
236
|
+
// bazel-out/darwin_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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_arm64-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,7 +1391,7 @@ var ShimReferenceTagger = class {
|
|
|
1391
1391
|
}
|
|
1392
1392
|
};
|
|
1393
1393
|
|
|
1394
|
-
// bazel-out/
|
|
1394
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
1395
1395
|
var DelegatingCompilerHost = class {
|
|
1396
1396
|
constructor(delegate) {
|
|
1397
1397
|
this.delegate = delegate;
|
|
@@ -1505,7 +1505,7 @@ var TsCreateProgramDriver = class {
|
|
|
1505
1505
|
}
|
|
1506
1506
|
};
|
|
1507
1507
|
|
|
1508
|
-
// bazel-out/
|
|
1508
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
1509
1509
|
var FileDependencyGraph = class {
|
|
1510
1510
|
constructor() {
|
|
1511
1511
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -1572,7 +1572,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
1572
1572
|
return false;
|
|
1573
1573
|
}
|
|
1574
1574
|
|
|
1575
|
-
// bazel-out/
|
|
1575
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
1576
1576
|
var IncrementalStateKind;
|
|
1577
1577
|
(function(IncrementalStateKind2) {
|
|
1578
1578
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -1580,7 +1580,7 @@ var IncrementalStateKind;
|
|
|
1580
1580
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
1581
1581
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
1582
1582
|
|
|
1583
|
-
// bazel-out/
|
|
1583
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
1584
1584
|
var PhaseKind;
|
|
1585
1585
|
(function(PhaseKind2) {
|
|
1586
1586
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -1781,7 +1781,7 @@ function toOriginalSourceFile(sf) {
|
|
|
1781
1781
|
}
|
|
1782
1782
|
}
|
|
1783
1783
|
|
|
1784
|
-
// bazel-out/
|
|
1784
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
1785
1785
|
var TrackedIncrementalBuildStrategy = class {
|
|
1786
1786
|
constructor() {
|
|
1787
1787
|
this.state = null;
|
|
@@ -1817,7 +1817,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
|
|
|
1817
1817
|
};
|
|
1818
1818
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
1819
1819
|
|
|
1820
|
-
// bazel-out/
|
|
1820
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
1821
1821
|
var IdentifierKind;
|
|
1822
1822
|
(function(IdentifierKind2) {
|
|
1823
1823
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -1835,7 +1835,7 @@ var AbsoluteSourceSpan = class {
|
|
|
1835
1835
|
}
|
|
1836
1836
|
};
|
|
1837
1837
|
|
|
1838
|
-
// bazel-out/
|
|
1838
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
1839
1839
|
var IndexingContext = class {
|
|
1840
1840
|
constructor() {
|
|
1841
1841
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -1845,10 +1845,10 @@ var IndexingContext = class {
|
|
|
1845
1845
|
}
|
|
1846
1846
|
};
|
|
1847
1847
|
|
|
1848
|
-
// bazel-out/
|
|
1848
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1849
1849
|
import { ParseSourceFile } from "@angular/compiler";
|
|
1850
1850
|
|
|
1851
|
-
// bazel-out/
|
|
1851
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
1852
1852
|
import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstBoundDeferredTrigger, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate } from "@angular/compiler";
|
|
1853
1853
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
1854
1854
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
@@ -2130,7 +2130,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
2130
2130
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
2131
2131
|
}
|
|
2132
2132
|
|
|
2133
|
-
// bazel-out/
|
|
2133
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
2134
2134
|
function generateAnalysis(context) {
|
|
2135
2135
|
const analysis = /* @__PURE__ */ new Map();
|
|
2136
2136
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -2166,7 +2166,7 @@ function generateAnalysis(context) {
|
|
|
2166
2166
|
return analysis;
|
|
2167
2167
|
}
|
|
2168
2168
|
|
|
2169
|
-
// bazel-out/
|
|
2169
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
2170
2170
|
var NgModuleIndexImpl = class {
|
|
2171
2171
|
constructor(metaReader, localReader) {
|
|
2172
2172
|
this.metaReader = metaReader;
|
|
@@ -2255,7 +2255,7 @@ var NgModuleIndexImpl = class {
|
|
|
2255
2255
|
}
|
|
2256
2256
|
};
|
|
2257
2257
|
|
|
2258
|
-
// bazel-out/
|
|
2258
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
2259
2259
|
import ts14 from "typescript";
|
|
2260
2260
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
2261
2261
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -2401,7 +2401,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
2401
2401
|
};
|
|
2402
2402
|
}
|
|
2403
2403
|
|
|
2404
|
-
// bazel-out/
|
|
2404
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
2405
2405
|
var StandaloneComponentScopeReader = class {
|
|
2406
2406
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
2407
2407
|
this.metaReader = metaReader;
|
|
@@ -2479,10 +2479,10 @@ var StandaloneComponentScopeReader = class {
|
|
|
2479
2479
|
}
|
|
2480
2480
|
};
|
|
2481
2481
|
|
|
2482
|
-
// bazel-out/
|
|
2483
|
-
import { CssSelector, DomElementSchemaRegistry as DomElementSchemaRegistry2, ExternalExpr as ExternalExpr2, WrappedNodeExpr } from "@angular/compiler";
|
|
2482
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
2483
|
+
import { CssSelector as CssSelector2, DomElementSchemaRegistry as DomElementSchemaRegistry2, ExternalExpr as ExternalExpr2, WrappedNodeExpr } from "@angular/compiler";
|
|
2484
2484
|
|
|
2485
|
-
// bazel-out/
|
|
2485
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
2486
2486
|
import ts15 from "typescript";
|
|
2487
2487
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
2488
2488
|
var _a;
|
|
@@ -2589,7 +2589,7 @@ function parseTemplateAsSourceFile(fileName, template) {
|
|
|
2589
2589
|
return ts15.createSourceFile(fileName, template, ts15.ScriptTarget.Latest, false, ts15.ScriptKind.JSX);
|
|
2590
2590
|
}
|
|
2591
2591
|
|
|
2592
|
-
// bazel-out/
|
|
2592
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
2593
2593
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
2594
2594
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
2595
2595
|
function getTemplateId(clazz) {
|
|
@@ -2606,11 +2606,11 @@ function allocateTemplateId(sf) {
|
|
|
2606
2606
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
2607
2607
|
}
|
|
2608
2608
|
|
|
2609
|
-
// bazel-out/
|
|
2609
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2610
2610
|
import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
|
|
2611
2611
|
import ts17 from "typescript";
|
|
2612
2612
|
|
|
2613
|
-
// bazel-out/
|
|
2613
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
2614
2614
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
|
|
2615
2615
|
import ts16 from "typescript";
|
|
2616
2616
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
@@ -2740,7 +2740,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
2740
2740
|
}) || false;
|
|
2741
2741
|
}
|
|
2742
2742
|
|
|
2743
|
-
// bazel-out/
|
|
2743
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2744
2744
|
var CompletionEngine = class {
|
|
2745
2745
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
2746
2746
|
this.tcb = tcb;
|
|
@@ -2897,10 +2897,10 @@ var CompletionEngine = class {
|
|
|
2897
2897
|
}
|
|
2898
2898
|
};
|
|
2899
2899
|
|
|
2900
|
-
// bazel-out/
|
|
2900
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
2901
2901
|
import ts30 from "typescript";
|
|
2902
2902
|
|
|
2903
|
-
// bazel-out/
|
|
2903
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
2904
2904
|
import { DomElementSchemaRegistry } from "@angular/compiler";
|
|
2905
2905
|
import ts18 from "typescript";
|
|
2906
2906
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
@@ -2953,11 +2953,11 @@ var RegistryDomSchemaChecker = class {
|
|
|
2953
2953
|
}
|
|
2954
2954
|
};
|
|
2955
2955
|
|
|
2956
|
-
// bazel-out/
|
|
2956
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
2957
2957
|
import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
|
|
2958
2958
|
import ts23 from "typescript";
|
|
2959
2959
|
|
|
2960
|
-
// bazel-out/
|
|
2960
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
2961
2961
|
import ts19 from "typescript";
|
|
2962
2962
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
2963
2963
|
ts19.SyntaxKind.ParenthesizedExpression,
|
|
@@ -3042,13 +3042,13 @@ function tsNumericExpression(value) {
|
|
|
3042
3042
|
return ts19.factory.createNumericLiteral(value);
|
|
3043
3043
|
}
|
|
3044
3044
|
|
|
3045
|
-
// bazel-out/
|
|
3045
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
3046
3046
|
import ts22 from "typescript";
|
|
3047
3047
|
|
|
3048
|
-
// bazel-out/
|
|
3048
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
3049
3049
|
import ts21 from "typescript";
|
|
3050
3050
|
|
|
3051
|
-
// bazel-out/
|
|
3051
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
3052
3052
|
import ts20 from "typescript";
|
|
3053
3053
|
var TypeParameterEmitter = class {
|
|
3054
3054
|
constructor(typeParameters, reflector) {
|
|
@@ -3126,7 +3126,7 @@ var TypeParameterEmitter = class {
|
|
|
3126
3126
|
}
|
|
3127
3127
|
};
|
|
3128
3128
|
|
|
3129
|
-
// bazel-out/
|
|
3129
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
3130
3130
|
var TcbInliningRequirement;
|
|
3131
3131
|
(function(TcbInliningRequirement2) {
|
|
3132
3132
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -3206,7 +3206,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
3206
3206
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
3207
3207
|
}
|
|
3208
3208
|
|
|
3209
|
-
// bazel-out/
|
|
3209
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
3210
3210
|
function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
3211
3211
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
3212
3212
|
const rawType = ts22.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -3317,7 +3317,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
3317
3317
|
});
|
|
3318
3318
|
}
|
|
3319
3319
|
|
|
3320
|
-
// bazel-out/
|
|
3320
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
3321
3321
|
var Environment = class {
|
|
3322
3322
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
3323
3323
|
this.config = config;
|
|
@@ -3411,8 +3411,8 @@ var Environment = class {
|
|
|
3411
3411
|
}
|
|
3412
3412
|
};
|
|
3413
3413
|
|
|
3414
|
-
// bazel-out/
|
|
3415
|
-
import { TmplAstElement as TmplAstElement2 } from "@angular/compiler";
|
|
3414
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
3415
|
+
import { TmplAstElement as TmplAstElement2, TmplAstIfBlockBranch } from "@angular/compiler";
|
|
3416
3416
|
import ts24 from "typescript";
|
|
3417
3417
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
3418
3418
|
constructor(resolver) {
|
|
@@ -3558,6 +3558,20 @@ Deferred blocks can only access triggers in same view, a parent embedded view or
|
|
|
3558
3558
|
}
|
|
3559
3559
|
this._diagnostics.push(makeTemplateDiagnostic(templateId, this.resolver.getSourceMapping(templateId), trigger.sourceSpan, ts24.DiagnosticCategory.Error, ngErrorCode(ErrorCode.INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT), message));
|
|
3560
3560
|
}
|
|
3561
|
+
controlFlowPreventingContentProjection(templateId, projectionNode, componentName, slotSelector, controlFlowNode, preservesWhitespaces) {
|
|
3562
|
+
const blockName = controlFlowNode instanceof TmplAstIfBlockBranch ? "@if" : "@for";
|
|
3563
|
+
const lines = [
|
|
3564
|
+
`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:
|
|
3565
|
+
`,
|
|
3566
|
+
`1. Wrap the content of the ${blockName} block in an <ng-container/> that matches the "${slotSelector}" selector.`,
|
|
3567
|
+
`2. Split the content of the ${blockName} block across multiple ${blockName} blocks such that each one only has a single projectable node at its root.`,
|
|
3568
|
+
`3. Remove all content from the ${blockName} block, except for the node being projected.`
|
|
3569
|
+
];
|
|
3570
|
+
if (preservesWhitespaces) {
|
|
3571
|
+
lines.push(`Note: the host component has \`preserveWhitespaces: true\` which may cause whitespace to affect content projection.`);
|
|
3572
|
+
}
|
|
3573
|
+
this._diagnostics.push(makeTemplateDiagnostic(templateId, this.resolver.getSourceMapping(templateId), projectionNode.startSourceSpan, ts24.DiagnosticCategory.Warning, ngErrorCode(ErrorCode.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION), lines.join("\n")));
|
|
3574
|
+
}
|
|
3561
3575
|
};
|
|
3562
3576
|
function makeInlineDiagnostic(templateId, code, node, messageText, relatedInformation) {
|
|
3563
3577
|
return {
|
|
@@ -3567,7 +3581,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
3567
3581
|
};
|
|
3568
3582
|
}
|
|
3569
3583
|
|
|
3570
|
-
// bazel-out/
|
|
3584
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
3571
3585
|
import ts25 from "typescript";
|
|
3572
3586
|
var TypeCheckShimGenerator = class {
|
|
3573
3587
|
constructor() {
|
|
@@ -3585,11 +3599,11 @@ var TypeCheckShimGenerator = class {
|
|
|
3585
3599
|
}
|
|
3586
3600
|
};
|
|
3587
3601
|
|
|
3588
|
-
// bazel-out/
|
|
3589
|
-
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";
|
|
3602
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
3603
|
+
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";
|
|
3590
3604
|
import ts28 from "typescript";
|
|
3591
3605
|
|
|
3592
|
-
// bazel-out/
|
|
3606
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
3593
3607
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
|
|
3594
3608
|
import ts26 from "typescript";
|
|
3595
3609
|
function wrapForDiagnostics(expr) {
|
|
@@ -3635,7 +3649,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
3635
3649
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
3636
3650
|
}
|
|
3637
3651
|
|
|
3638
|
-
// bazel-out/
|
|
3652
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
3639
3653
|
import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
|
|
3640
3654
|
import ts27 from "typescript";
|
|
3641
3655
|
var NULL_AS_ANY = ts27.factory.createAsExpression(ts27.factory.createNull(), ts27.factory.createKeywordTypeNode(ts27.SyntaxKind.AnyKeyword));
|
|
@@ -3968,7 +3982,7 @@ var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
|
|
|
3968
3982
|
_VeSafeLhsInferenceBugDetector.SINGLETON = new _VeSafeLhsInferenceBugDetector();
|
|
3969
3983
|
})();
|
|
3970
3984
|
|
|
3971
|
-
// bazel-out/
|
|
3985
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
3972
3986
|
import { ImplicitReceiver as ImplicitReceiver3, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstVariable } from "@angular/compiler";
|
|
3973
3987
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
3974
3988
|
constructor(templateId, boundTarget, oob) {
|
|
@@ -3992,7 +4006,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
|
3992
4006
|
}
|
|
3993
4007
|
};
|
|
3994
4008
|
|
|
3995
|
-
// bazel-out/
|
|
4009
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
3996
4010
|
var TcbGenericContextBehavior;
|
|
3997
4011
|
(function(TcbGenericContextBehavior2) {
|
|
3998
4012
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -4000,7 +4014,7 @@ var TcbGenericContextBehavior;
|
|
|
4000
4014
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["FallbackToAny"] = 2] = "FallbackToAny";
|
|
4001
4015
|
})(TcbGenericContextBehavior || (TcbGenericContextBehavior = {}));
|
|
4002
4016
|
function generateTypeCheckBlock(env, ref, name, meta, domSchemaChecker, oobRecorder, genericContextBehavior) {
|
|
4003
|
-
const tcb = new Context(env, domSchemaChecker, oobRecorder, meta.id, meta.boundTarget, meta.pipes, meta.schemas, meta.isStandalone);
|
|
4017
|
+
const tcb = new Context(env, domSchemaChecker, oobRecorder, meta.id, meta.boundTarget, meta.pipes, meta.schemas, meta.isStandalone, meta.preserveWhitespaces);
|
|
4004
4018
|
const scope = Scope.forNodes(tcb, null, null, tcb.boundTarget.target.template, null);
|
|
4005
4019
|
const ctxRawType = env.referenceType(ref);
|
|
4006
4020
|
if (!ts28.isTypeReferenceNode(ctxRawType)) {
|
|
@@ -4456,6 +4470,61 @@ var TcbDomSchemaCheckerOp = class extends TcbOp {
|
|
|
4456
4470
|
return null;
|
|
4457
4471
|
}
|
|
4458
4472
|
};
|
|
4473
|
+
var TcbControlFlowContentProjectionOp = class extends TcbOp {
|
|
4474
|
+
constructor(tcb, element, ngContentSelectors, componentName) {
|
|
4475
|
+
super();
|
|
4476
|
+
this.tcb = tcb;
|
|
4477
|
+
this.element = element;
|
|
4478
|
+
this.ngContentSelectors = ngContentSelectors;
|
|
4479
|
+
this.componentName = componentName;
|
|
4480
|
+
this.optional = false;
|
|
4481
|
+
}
|
|
4482
|
+
execute() {
|
|
4483
|
+
const controlFlowToCheck = this.findPotentialControlFlowNodes();
|
|
4484
|
+
if (controlFlowToCheck.length > 0) {
|
|
4485
|
+
const matcher = new SelectorMatcher();
|
|
4486
|
+
for (const selector of this.ngContentSelectors) {
|
|
4487
|
+
if (selector !== "*") {
|
|
4488
|
+
matcher.addSelectables(CssSelector.parse(selector), selector);
|
|
4489
|
+
}
|
|
4490
|
+
}
|
|
4491
|
+
for (const root of controlFlowToCheck) {
|
|
4492
|
+
for (const child of root.children) {
|
|
4493
|
+
if (child instanceof TmplAstElement3 || child instanceof TmplAstTemplate2) {
|
|
4494
|
+
matcher.match(createCssSelectorFromNode(child), (_, originalSelector) => {
|
|
4495
|
+
this.tcb.oobRecorder.controlFlowPreventingContentProjection(this.tcb.id, child, this.componentName, originalSelector, root, this.tcb.hostPreserveWhitespaces);
|
|
4496
|
+
});
|
|
4497
|
+
}
|
|
4498
|
+
}
|
|
4499
|
+
}
|
|
4500
|
+
}
|
|
4501
|
+
return null;
|
|
4502
|
+
}
|
|
4503
|
+
findPotentialControlFlowNodes() {
|
|
4504
|
+
const result = [];
|
|
4505
|
+
for (const child of this.element.children) {
|
|
4506
|
+
let eligibleNode = null;
|
|
4507
|
+
if (child instanceof TmplAstForLoopBlock) {
|
|
4508
|
+
eligibleNode = child;
|
|
4509
|
+
} else if (child instanceof TmplAstIfBlock) {
|
|
4510
|
+
eligibleNode = child.branches[0];
|
|
4511
|
+
}
|
|
4512
|
+
if (eligibleNode === null || eligibleNode.children.length < 2) {
|
|
4513
|
+
continue;
|
|
4514
|
+
}
|
|
4515
|
+
const rootNodeCount = eligibleNode.children.reduce((count, node) => {
|
|
4516
|
+
if (!(node instanceof TmplAstText) || this.tcb.hostPreserveWhitespaces || node.value.trim().length > 0) {
|
|
4517
|
+
count++;
|
|
4518
|
+
}
|
|
4519
|
+
return count;
|
|
4520
|
+
}, 0);
|
|
4521
|
+
if (rootNodeCount > 1) {
|
|
4522
|
+
result.push(eligibleNode);
|
|
4523
|
+
}
|
|
4524
|
+
}
|
|
4525
|
+
return result;
|
|
4526
|
+
}
|
|
4527
|
+
};
|
|
4459
4528
|
var ATTR_TO_PROP = new Map(Object.entries({
|
|
4460
4529
|
"class": "className",
|
|
4461
4530
|
"for": "htmlFor",
|
|
@@ -4789,7 +4858,7 @@ var TcbForOfOp = class extends TcbOp {
|
|
|
4789
4858
|
};
|
|
4790
4859
|
var INFER_TYPE_FOR_CIRCULAR_OP_EXPR = ts28.factory.createNonNullExpression(ts28.factory.createNull());
|
|
4791
4860
|
var Context = class {
|
|
4792
|
-
constructor(env, domSchemaChecker, oobRecorder, id, boundTarget, pipes, schemas, hostIsStandalone) {
|
|
4861
|
+
constructor(env, domSchemaChecker, oobRecorder, id, boundTarget, pipes, schemas, hostIsStandalone, hostPreserveWhitespaces) {
|
|
4793
4862
|
this.env = env;
|
|
4794
4863
|
this.domSchemaChecker = domSchemaChecker;
|
|
4795
4864
|
this.oobRecorder = oobRecorder;
|
|
@@ -4798,6 +4867,7 @@ var Context = class {
|
|
|
4798
4867
|
this.pipes = pipes;
|
|
4799
4868
|
this.schemas = schemas;
|
|
4800
4869
|
this.hostIsStandalone = hostIsStandalone;
|
|
4870
|
+
this.hostPreserveWhitespaces = hostPreserveWhitespaces;
|
|
4801
4871
|
this.nextId = 1;
|
|
4802
4872
|
}
|
|
4803
4873
|
allocateId() {
|
|
@@ -4839,7 +4909,7 @@ var _Scope = class {
|
|
|
4839
4909
|
}
|
|
4840
4910
|
this.registerVariable(scope, v, new TcbTemplateVariableOp(tcb, scope, scopedNode, v));
|
|
4841
4911
|
}
|
|
4842
|
-
} else if (scopedNode instanceof
|
|
4912
|
+
} else if (scopedNode instanceof TmplAstIfBlockBranch2) {
|
|
4843
4913
|
const { expression, expressionAlias } = scopedNode;
|
|
4844
4914
|
if (expression !== null && expressionAlias !== null) {
|
|
4845
4915
|
this.registerVariable(scope, expressionAlias, new TcbBlockVariableOp(tcb, scope, tcbExpression(expression, tcb, scope), expressionAlias));
|
|
@@ -4950,6 +5020,7 @@ var _Scope = class {
|
|
|
4950
5020
|
if (node instanceof TmplAstElement3) {
|
|
4951
5021
|
const opIndex = this.opQueue.push(new TcbElementOp(this.tcb, this, node)) - 1;
|
|
4952
5022
|
this.elementOpMap.set(node, opIndex);
|
|
5023
|
+
this.appendContentProjectionCheckOp(node);
|
|
4953
5024
|
this.appendDirectivesAndInputsOfNode(node);
|
|
4954
5025
|
this.appendOutputsOfNode(node);
|
|
4955
5026
|
this.appendChildren(node);
|
|
@@ -5093,6 +5164,16 @@ var _Scope = class {
|
|
|
5093
5164
|
}
|
|
5094
5165
|
}
|
|
5095
5166
|
}
|
|
5167
|
+
appendContentProjectionCheckOp(root) {
|
|
5168
|
+
var _a;
|
|
5169
|
+
const meta = ((_a = this.tcb.boundTarget.getDirectivesOfNode(root)) == null ? void 0 : _a.find((meta2) => meta2.isComponent)) || null;
|
|
5170
|
+
if (meta !== null && meta.ngContentSelectors !== null && meta.ngContentSelectors.length > 0) {
|
|
5171
|
+
const selectors = meta.ngContentSelectors;
|
|
5172
|
+
if (selectors.length > 1 || selectors.length === 1 && selectors[0] !== "*") {
|
|
5173
|
+
this.opQueue.push(new TcbControlFlowContentProjectionOp(this.tcb, root, selectors, meta.name));
|
|
5174
|
+
}
|
|
5175
|
+
}
|
|
5176
|
+
}
|
|
5096
5177
|
appendDeferredBlock(block) {
|
|
5097
5178
|
this.appendDeferredTriggers(block, block.triggers);
|
|
5098
5179
|
this.appendDeferredTriggers(block, block.prefetchTriggers);
|
|
@@ -5378,7 +5459,7 @@ var TcbForLoopTrackTranslator = class extends TcbExpressionTranslator {
|
|
|
5378
5459
|
}
|
|
5379
5460
|
};
|
|
5380
5461
|
|
|
5381
|
-
// bazel-out/
|
|
5462
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
5382
5463
|
import ts29 from "typescript";
|
|
5383
5464
|
var TypeCheckFile = class extends Environment {
|
|
5384
5465
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -5414,7 +5495,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
5414
5495
|
}
|
|
5415
5496
|
};
|
|
5416
5497
|
|
|
5417
|
-
// bazel-out/
|
|
5498
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
5418
5499
|
var InliningMode;
|
|
5419
5500
|
(function(InliningMode2) {
|
|
5420
5501
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -5436,7 +5517,7 @@ var TypeCheckContextImpl = class {
|
|
|
5436
5517
|
throw new Error(`AssertionError: invalid inlining configuration.`);
|
|
5437
5518
|
}
|
|
5438
5519
|
}
|
|
5439
|
-
addTemplate(ref, binder, template, pipes, schemas, sourceMapping, file, parseErrors, isStandalone) {
|
|
5520
|
+
addTemplate(ref, binder, template, pipes, schemas, sourceMapping, file, parseErrors, isStandalone, preserveWhitespaces) {
|
|
5440
5521
|
if (!this.host.shouldCheckComponent(ref.node)) {
|
|
5441
5522
|
return;
|
|
5442
5523
|
}
|
|
@@ -5489,7 +5570,8 @@ var TypeCheckContextImpl = class {
|
|
|
5489
5570
|
boundTarget,
|
|
5490
5571
|
pipes,
|
|
5491
5572
|
schemas,
|
|
5492
|
-
isStandalone
|
|
5573
|
+
isStandalone,
|
|
5574
|
+
preserveWhitespaces
|
|
5493
5575
|
};
|
|
5494
5576
|
this.perf.eventCount(PerfEvent.GenerateTcb);
|
|
5495
5577
|
if (inliningRequirement !== TcbInliningRequirement.None && this.inlining === InliningMode.InlineOps) {
|
|
@@ -5651,10 +5733,10 @@ function splitStringAtPoints(str, points) {
|
|
|
5651
5733
|
return splits;
|
|
5652
5734
|
}
|
|
5653
5735
|
|
|
5654
|
-
// bazel-out/
|
|
5736
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
5655
5737
|
import { ParseLocation, ParseSourceSpan } from "@angular/compiler";
|
|
5656
5738
|
|
|
5657
|
-
// bazel-out/
|
|
5739
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
5658
5740
|
var LF_CHAR = 10;
|
|
5659
5741
|
var CR_CHAR = 13;
|
|
5660
5742
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -5695,7 +5777,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
5695
5777
|
return low - 1;
|
|
5696
5778
|
}
|
|
5697
5779
|
|
|
5698
|
-
// bazel-out/
|
|
5780
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
5699
5781
|
var TemplateSource = class {
|
|
5700
5782
|
constructor(mapping, file) {
|
|
5701
5783
|
this.mapping = mapping;
|
|
@@ -5746,7 +5828,7 @@ var TemplateSourceManager = class {
|
|
|
5746
5828
|
}
|
|
5747
5829
|
};
|
|
5748
5830
|
|
|
5749
|
-
// bazel-out/
|
|
5831
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
5750
5832
|
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";
|
|
5751
5833
|
import ts31 from "typescript";
|
|
5752
5834
|
var SymbolBuilder = class {
|
|
@@ -6230,7 +6312,7 @@ function sourceSpanEqual(a, b) {
|
|
|
6230
6312
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
6231
6313
|
}
|
|
6232
6314
|
|
|
6233
|
-
// bazel-out/
|
|
6315
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
6234
6316
|
var REGISTRY2 = new DomElementSchemaRegistry2();
|
|
6235
6317
|
var TemplateTypeCheckerImpl = class {
|
|
6236
6318
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -6665,7 +6747,7 @@ var TemplateTypeCheckerImpl = class {
|
|
|
6665
6747
|
if (directive.selector === null) {
|
|
6666
6748
|
continue;
|
|
6667
6749
|
}
|
|
6668
|
-
for (const selector of
|
|
6750
|
+
for (const selector of CssSelector2.parse(directive.selector)) {
|
|
6669
6751
|
if (selector.element === null || tagMap.has(selector.element)) {
|
|
6670
6752
|
continue;
|
|
6671
6753
|
}
|
|
@@ -6927,10 +7009,10 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
6927
7009
|
}
|
|
6928
7010
|
};
|
|
6929
7011
|
|
|
6930
|
-
// bazel-out/
|
|
7012
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
6931
7013
|
import { Interpolation, PropertyRead as PropertyRead6 } from "@angular/compiler";
|
|
6932
7014
|
|
|
6933
|
-
// bazel-out/
|
|
7015
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
6934
7016
|
import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor3, TmplAstBoundDeferredTrigger as TmplAstBoundDeferredTrigger2 } from "@angular/compiler";
|
|
6935
7017
|
var TemplateCheckWithVisitor = class {
|
|
6936
7018
|
run(ctx, component, template) {
|
|
@@ -7054,7 +7136,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor3 {
|
|
|
7054
7136
|
}
|
|
7055
7137
|
};
|
|
7056
7138
|
|
|
7057
|
-
// bazel-out/
|
|
7139
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
7058
7140
|
var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
|
|
7059
7141
|
constructor() {
|
|
7060
7142
|
super(...arguments);
|
|
@@ -7089,7 +7171,7 @@ var factory = {
|
|
|
7089
7171
|
create: () => new InterpolatedSignalCheck()
|
|
7090
7172
|
};
|
|
7091
7173
|
|
|
7092
|
-
// bazel-out/
|
|
7174
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
7093
7175
|
import { TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
|
|
7094
7176
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
7095
7177
|
constructor() {
|
|
@@ -7115,7 +7197,7 @@ var factory2 = {
|
|
|
7115
7197
|
create: () => new InvalidBananaInBoxCheck()
|
|
7116
7198
|
};
|
|
7117
7199
|
|
|
7118
|
-
// bazel-out/
|
|
7200
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
7119
7201
|
import { TmplAstTemplate as TmplAstTemplate4 } from "@angular/compiler";
|
|
7120
7202
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
7121
7203
|
["ngIf", { directive: "NgIf", builtIn: "@if" }],
|
|
@@ -7160,7 +7242,7 @@ var factory3 = {
|
|
|
7160
7242
|
}
|
|
7161
7243
|
};
|
|
7162
7244
|
|
|
7163
|
-
// bazel-out/
|
|
7245
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
7164
7246
|
import { TmplAstTemplate as TmplAstTemplate5 } from "@angular/compiler";
|
|
7165
7247
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
7166
7248
|
constructor() {
|
|
@@ -7193,7 +7275,7 @@ var factory4 = {
|
|
|
7193
7275
|
create: () => new MissingNgForOfLetCheck()
|
|
7194
7276
|
};
|
|
7195
7277
|
|
|
7196
|
-
// bazel-out/
|
|
7278
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
7197
7279
|
import { Binary } from "@angular/compiler";
|
|
7198
7280
|
import ts32 from "typescript";
|
|
7199
7281
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -7238,7 +7320,7 @@ var factory5 = {
|
|
|
7238
7320
|
}
|
|
7239
7321
|
};
|
|
7240
7322
|
|
|
7241
|
-
// bazel-out/
|
|
7323
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
7242
7324
|
import { SafeCall as SafeCall2, SafeKeyedRead as SafeKeyedRead2, SafePropertyRead as SafePropertyRead5 } from "@angular/compiler";
|
|
7243
7325
|
import ts33 from "typescript";
|
|
7244
7326
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -7284,7 +7366,7 @@ var factory6 = {
|
|
|
7284
7366
|
}
|
|
7285
7367
|
};
|
|
7286
7368
|
|
|
7287
|
-
// bazel-out/
|
|
7369
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
7288
7370
|
import { TmplAstBoundAttribute as TmplAstBoundAttribute3 } from "@angular/compiler";
|
|
7289
7371
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
7290
7372
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -7308,7 +7390,7 @@ var factory7 = {
|
|
|
7308
7390
|
create: () => new SuffixNotSupportedCheck()
|
|
7309
7391
|
};
|
|
7310
7392
|
|
|
7311
|
-
// bazel-out/
|
|
7393
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
7312
7394
|
import { TmplAstTextAttribute as TmplAstTextAttribute4 } from "@angular/compiler";
|
|
7313
7395
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
7314
7396
|
constructor() {
|
|
@@ -7347,10 +7429,10 @@ var factory8 = {
|
|
|
7347
7429
|
create: () => new TextAttributeNotBindingSpec()
|
|
7348
7430
|
};
|
|
7349
7431
|
|
|
7350
|
-
// bazel-out/
|
|
7432
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
7351
7433
|
import ts34 from "typescript";
|
|
7352
7434
|
|
|
7353
|
-
// bazel-out/
|
|
7435
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
7354
7436
|
var DiagnosticCategoryLabel;
|
|
7355
7437
|
(function(DiagnosticCategoryLabel2) {
|
|
7356
7438
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -7358,7 +7440,7 @@ var DiagnosticCategoryLabel;
|
|
|
7358
7440
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
7359
7441
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
7360
7442
|
|
|
7361
|
-
// bazel-out/
|
|
7443
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
7362
7444
|
var ExtendedTemplateCheckerImpl = class {
|
|
7363
7445
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
7364
7446
|
var _a, _b, _c, _d, _e;
|
|
@@ -7411,7 +7493,7 @@ function assertNever(value) {
|
|
|
7411
7493
|
${value}`);
|
|
7412
7494
|
}
|
|
7413
7495
|
|
|
7414
|
-
// bazel-out/
|
|
7496
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
7415
7497
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
7416
7498
|
factory2,
|
|
7417
7499
|
factory5,
|
|
@@ -7423,7 +7505,7 @@ var ALL_DIAGNOSTIC_FACTORIES = [
|
|
|
7423
7505
|
factory
|
|
7424
7506
|
];
|
|
7425
7507
|
|
|
7426
|
-
// bazel-out/
|
|
7508
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
7427
7509
|
var CompilationTicketKind;
|
|
7428
7510
|
(function(CompilationTicketKind2) {
|
|
7429
7511
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -8183,9 +8265,15 @@ function versionMapFromProgram(program, driver) {
|
|
|
8183
8265
|
return versions;
|
|
8184
8266
|
}
|
|
8185
8267
|
|
|
8186
|
-
// bazel-out/
|
|
8268
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
8187
8269
|
import ts36 from "typescript";
|
|
8188
8270
|
var DelegatingCompilerHost2 = class {
|
|
8271
|
+
get jsDocParsingMode() {
|
|
8272
|
+
return this.delegate.jsDocParsingMode;
|
|
8273
|
+
}
|
|
8274
|
+
set jsDocParsingMode(mode) {
|
|
8275
|
+
this.delegate.jsDocParsingMode = mode;
|
|
8276
|
+
}
|
|
8189
8277
|
constructor(delegate) {
|
|
8190
8278
|
this.delegate = delegate;
|
|
8191
8279
|
this.createHash = this.delegateMethod("createHash");
|
|
@@ -8217,7 +8305,6 @@ var DelegatingCompilerHost2 = class {
|
|
|
8217
8305
|
this.hasInvalidatedResolutions = this.delegateMethod("hasInvalidatedResolutions");
|
|
8218
8306
|
this.resolveModuleNameLiterals = this.delegateMethod("resolveModuleNameLiterals");
|
|
8219
8307
|
this.resolveTypeReferenceDirectiveReferences = this.delegateMethod("resolveTypeReferenceDirectiveReferences");
|
|
8220
|
-
this.jsDocParsingMode = this.delegateMethod("jsDocParsingMode");
|
|
8221
8308
|
}
|
|
8222
8309
|
delegateMethod(name) {
|
|
8223
8310
|
return this.delegate[name] !== void 0 ? this.delegate[name].bind(this.delegate) : void 0;
|
|
@@ -8288,12 +8375,12 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
8288
8375
|
isResource(sf) {
|
|
8289
8376
|
return false;
|
|
8290
8377
|
}
|
|
8291
|
-
getSourceFile(fileName,
|
|
8378
|
+
getSourceFile(fileName, languageVersionOrOptions, onError, shouldCreateNewSourceFile) {
|
|
8292
8379
|
const shimSf = this.shimAdapter.maybeGenerate(resolve(fileName));
|
|
8293
8380
|
if (shimSf !== null) {
|
|
8294
8381
|
return shimSf;
|
|
8295
8382
|
}
|
|
8296
|
-
const sf = this.delegate.getSourceFile(fileName,
|
|
8383
|
+
const sf = this.delegate.getSourceFile(fileName, languageVersionOrOptions, onError, shouldCreateNewSourceFile);
|
|
8297
8384
|
if (sf === void 0) {
|
|
8298
8385
|
return void 0;
|
|
8299
8386
|
}
|
|
@@ -8317,7 +8404,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
8317
8404
|
}
|
|
8318
8405
|
};
|
|
8319
8406
|
|
|
8320
|
-
// bazel-out/
|
|
8407
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
8321
8408
|
var NgtscProgram = class {
|
|
8322
8409
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
8323
8410
|
this.options = options;
|
|
@@ -8544,15 +8631,15 @@ function mergeEmitResults(emitResults) {
|
|
|
8544
8631
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
8545
8632
|
}
|
|
8546
8633
|
|
|
8547
|
-
// bazel-out/
|
|
8634
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
8548
8635
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
8549
8636
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
8550
8637
|
}
|
|
8551
8638
|
|
|
8552
|
-
// bazel-out/
|
|
8639
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
8553
8640
|
import ts39 from "typescript";
|
|
8554
8641
|
|
|
8555
|
-
// bazel-out/
|
|
8642
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
8556
8643
|
import ts38 from "typescript";
|
|
8557
8644
|
function createMessageDiagnostic(messageText) {
|
|
8558
8645
|
return {
|
|
@@ -8566,7 +8653,7 @@ function createMessageDiagnostic(messageText) {
|
|
|
8566
8653
|
};
|
|
8567
8654
|
}
|
|
8568
8655
|
|
|
8569
|
-
// bazel-out/
|
|
8656
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
8570
8657
|
var defaultFormatHost = {
|
|
8571
8658
|
getCurrentDirectory: () => ts39.sys.getCurrentDirectory(),
|
|
8572
8659
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -8779,4 +8866,4 @@ export {
|
|
|
8779
8866
|
* Use of this source code is governed by an MIT-style license that can be
|
|
8780
8867
|
* found in the LICENSE file at https://angular.io/license
|
|
8781
8868
|
*/
|
|
8782
|
-
//# sourceMappingURL=chunk-
|
|
8869
|
+
//# sourceMappingURL=chunk-OYL5JDZA.js.map
|