@angular/compiler-cli 18.0.0-rc.1 → 18.0.0-rc.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-ZX6BKV7T.js → chunk-6AZ42I2O.js} +5 -5
- package/bundles/{chunk-CFIOLJL4.js → chunk-77CB34BX.js} +43 -43
- package/bundles/{chunk-CFIOLJL4.js.map → chunk-77CB34BX.js.map} +1 -1
- package/bundles/{chunk-JZQHA4E7.js → chunk-AQFTVE7F.js} +5 -5
- package/bundles/{chunk-3UXY73FR.js → chunk-BVDVZTEE.js} +31 -31
- package/bundles/{chunk-XAPDG6EU.js → chunk-D7XZVDL2.js} +143 -128
- package/bundles/{chunk-XAPDG6EU.js.map → chunk-D7XZVDL2.js.map} +2 -2
- package/bundles/{chunk-BAS2AOWB.js → chunk-GDDAH7HI.js} +5 -5
- package/bundles/{chunk-3ZM5BFEI.js → chunk-LCZH35U2.js} +78 -78
- package/bundles/{chunk-LYJKWJUC.js → chunk-SBDNBITT.js} +3 -3
- package/bundles/{chunk-5DY7CLVW.js → chunk-UPUMIIZG.js} +13 -13
- package/bundles/{chunk-QYV344EV.js → chunk-WR7TUJ7M.js} +7 -7
- package/bundles/{chunk-3W345P4E.js → chunk-XNL3EK5H.js} +7 -7
- package/bundles/index.js +12 -12
- package/bundles/linker/babel/index.js +12 -12
- package/bundles/linker/index.js +4 -4
- 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 +5 -5
- package/bundles/private/tooling.js +5 -5
- package/bundles/src/bin/ng_xi18n.js +10 -10
- package/bundles/src/bin/ngc.js +8 -8
- package/bundles_metadata.json +1 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/reflection/src/host.d.ts +1 -4
- /package/bundles/{chunk-ZX6BKV7T.js.map → chunk-6AZ42I2O.js.map} +0 -0
- /package/bundles/{chunk-JZQHA4E7.js.map → chunk-AQFTVE7F.js.map} +0 -0
- /package/bundles/{chunk-3UXY73FR.js.map → chunk-BVDVZTEE.js.map} +0 -0
- /package/bundles/{chunk-BAS2AOWB.js.map → chunk-GDDAH7HI.js.map} +0 -0
- /package/bundles/{chunk-3ZM5BFEI.js.map → chunk-LCZH35U2.js.map} +0 -0
- /package/bundles/{chunk-LYJKWJUC.js.map → chunk-SBDNBITT.js.map} +0 -0
- /package/bundles/{chunk-5DY7CLVW.js.map → chunk-UPUMIIZG.js.map} +0 -0
- /package/bundles/{chunk-QYV344EV.js.map → chunk-WR7TUJ7M.js.map} +0 -0
- /package/bundles/{chunk-3W345P4E.js.map → chunk-XNL3EK5H.js.map} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
PotentialImportKind,
|
|
9
9
|
PotentialImportMode,
|
|
10
10
|
SymbolKind
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6AZ42I2O.js";
|
|
12
12
|
import {
|
|
13
13
|
CompilationMode,
|
|
14
14
|
ComponentDecoratorHandler,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
isHostDirectiveMetaForGlobalMode,
|
|
45
45
|
ivyTransformFactory,
|
|
46
46
|
tryParseInitializerApi
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-LCZH35U2.js";
|
|
48
48
|
import {
|
|
49
49
|
AbsoluteModuleStrategy,
|
|
50
50
|
AliasStrategy,
|
|
@@ -94,14 +94,14 @@ import {
|
|
|
94
94
|
toUnredirectedSourceFile,
|
|
95
95
|
translateExpression,
|
|
96
96
|
translateType
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-77CB34BX.js";
|
|
98
98
|
import {
|
|
99
99
|
ActivePerfRecorder,
|
|
100
100
|
DelegatingPerfRecorder,
|
|
101
101
|
PerfCheckpoint,
|
|
102
102
|
PerfEvent,
|
|
103
103
|
PerfPhase
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-AQFTVE7F.js";
|
|
105
105
|
import {
|
|
106
106
|
LogicalFileSystem,
|
|
107
107
|
absoluteFrom,
|
|
@@ -111,9 +111,9 @@ import {
|
|
|
111
111
|
getSourceFileOrError,
|
|
112
112
|
join,
|
|
113
113
|
resolve
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-XNL3EK5H.js";
|
|
115
115
|
|
|
116
|
-
// bazel-out/
|
|
116
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
117
117
|
var DEFAULT_ERROR_CODE = 100;
|
|
118
118
|
var UNKNOWN_ERROR_CODE = 500;
|
|
119
119
|
var SOURCE = "angular";
|
|
@@ -131,7 +131,7 @@ var EmitFlags;
|
|
|
131
131
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
132
132
|
})(EmitFlags || (EmitFlags = {}));
|
|
133
133
|
|
|
134
|
-
// bazel-out/
|
|
134
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
135
135
|
import ts from "typescript";
|
|
136
136
|
var wrapHostForTest = null;
|
|
137
137
|
function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, true) }) {
|
|
@@ -141,7 +141,7 @@ function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, t
|
|
|
141
141
|
return tsHost;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
// bazel-out/
|
|
144
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/entities.mjs
|
|
145
145
|
var EntryType;
|
|
146
146
|
(function(EntryType2) {
|
|
147
147
|
EntryType2["Block"] = "block";
|
|
@@ -188,23 +188,23 @@ function isDocEntryWithSourceInfo(entry) {
|
|
|
188
188
|
return "source" in entry;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
// bazel-out/
|
|
191
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
192
192
|
import ts10 from "typescript";
|
|
193
193
|
|
|
194
|
-
// bazel-out/
|
|
194
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
|
|
195
195
|
import ts5 from "typescript";
|
|
196
196
|
|
|
197
|
-
// bazel-out/
|
|
197
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/filters.mjs
|
|
198
198
|
function isAngularPrivateName(name) {
|
|
199
199
|
var _a;
|
|
200
200
|
const firstChar = (_a = name[0]) != null ? _a : "";
|
|
201
201
|
return firstChar === "\u0275" || firstChar === "_";
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
// bazel-out/
|
|
204
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
|
|
205
205
|
import ts3 from "typescript";
|
|
206
206
|
|
|
207
|
-
// bazel-out/
|
|
207
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/generics_extractor.mjs
|
|
208
208
|
function extractGenerics(declaration) {
|
|
209
209
|
var _a, _b;
|
|
210
210
|
return (_b = (_a = declaration.typeParameters) == null ? void 0 : _a.map((typeParam) => {
|
|
@@ -217,7 +217,7 @@ function extractGenerics(declaration) {
|
|
|
217
217
|
})) != null ? _b : [];
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
// bazel-out/
|
|
220
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/jsdoc_extractor.mjs
|
|
221
221
|
import ts2 from "typescript";
|
|
222
222
|
var decoratorExpression = /@(?=(Injectable|Component|Directive|Pipe|NgModule|Input|Output|HostBinding|HostListener|Inject|Optional|Self|Host|SkipSelf))/g;
|
|
223
223
|
function extractJsDocTags(node) {
|
|
@@ -261,12 +261,12 @@ function unescapeAngularDecorators(comment) {
|
|
|
261
261
|
return comment.replace(/_NG_AT_/g, "@");
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
// bazel-out/
|
|
264
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_extractor.mjs
|
|
265
265
|
function extractResolvedTypeString(node, checker) {
|
|
266
266
|
return checker.typeToString(checker.getTypeAtLocation(node));
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
// bazel-out/
|
|
269
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
|
|
270
270
|
var FunctionExtractor = class {
|
|
271
271
|
constructor(name, declaration, typeChecker) {
|
|
272
272
|
this.name = name;
|
|
@@ -322,7 +322,7 @@ function extractAllParams(params, typeChecker) {
|
|
|
322
322
|
}));
|
|
323
323
|
}
|
|
324
324
|
|
|
325
|
-
// bazel-out/
|
|
325
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/internal.mjs
|
|
326
326
|
import ts4 from "typescript";
|
|
327
327
|
function isInternal(member) {
|
|
328
328
|
return extractJsDocTags(member).some((tag) => tag.name === "internal") || hasLeadingInternalComment(member);
|
|
@@ -341,7 +341,7 @@ function hasLeadingInternalComment(member) {
|
|
|
341
341
|
)) != null ? _a : false;
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
-
// bazel-out/
|
|
344
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
|
|
345
345
|
var ClassExtractor = class {
|
|
346
346
|
constructor(declaration, typeChecker) {
|
|
347
347
|
this.declaration = declaration;
|
|
@@ -599,7 +599,7 @@ function extractInterface(declaration, typeChecker) {
|
|
|
599
599
|
return extractor.extract();
|
|
600
600
|
}
|
|
601
601
|
|
|
602
|
-
// bazel-out/
|
|
602
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/constant_extractor.mjs
|
|
603
603
|
import ts6 from "typescript";
|
|
604
604
|
var LITERAL_AS_ENUM_TAG = "object-literal-as-enum";
|
|
605
605
|
function extractConstant(declaration, typeChecker) {
|
|
@@ -657,7 +657,7 @@ function extractLiteralPropertiesAsEnumMembers(declaration) {
|
|
|
657
657
|
});
|
|
658
658
|
}
|
|
659
659
|
|
|
660
|
-
// bazel-out/
|
|
660
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/decorator_extractor.mjs
|
|
661
661
|
import ts7 from "typescript";
|
|
662
662
|
function extractorDecorator(declaration, typeChecker) {
|
|
663
663
|
const documentedNode = getDecoratorJsDocNode(declaration);
|
|
@@ -730,7 +730,7 @@ function getDecoratorJsDocNode(declaration) {
|
|
|
730
730
|
return callSignature;
|
|
731
731
|
}
|
|
732
732
|
|
|
733
|
-
// bazel-out/
|
|
733
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/enum_extractor.mjs
|
|
734
734
|
import ts8 from "typescript";
|
|
735
735
|
function extractEnum(declaration, typeChecker) {
|
|
736
736
|
return {
|
|
@@ -761,7 +761,7 @@ function getEnumMemberValue(memberNode) {
|
|
|
761
761
|
return (_a = literal == null ? void 0 : literal.getText()) != null ? _a : "";
|
|
762
762
|
}
|
|
763
763
|
|
|
764
|
-
// bazel-out/
|
|
764
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/initializer_api_function_extractor.mjs
|
|
765
765
|
import ts9 from "typescript";
|
|
766
766
|
var initializerApiTag = "initializerApiFunction";
|
|
767
767
|
function isInitializerApiFunction(node, typeChecker) {
|
|
@@ -898,7 +898,7 @@ function findImplementationOfFunction(node, typeChecker) {
|
|
|
898
898
|
return (_a = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _a.find((s) => ts9.isFunctionDeclaration(s) && s.body !== void 0);
|
|
899
899
|
}
|
|
900
900
|
|
|
901
|
-
// bazel-out/
|
|
901
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_alias_extractor.mjs
|
|
902
902
|
function extractTypeAlias(declaration) {
|
|
903
903
|
return {
|
|
904
904
|
name: declaration.name.getText(),
|
|
@@ -910,7 +910,7 @@ function extractTypeAlias(declaration) {
|
|
|
910
910
|
};
|
|
911
911
|
}
|
|
912
912
|
|
|
913
|
-
// bazel-out/
|
|
913
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
914
914
|
var DocsExtractor = class {
|
|
915
915
|
constructor(typeChecker, metadataReader) {
|
|
916
916
|
this.typeChecker = typeChecker;
|
|
@@ -994,11 +994,11 @@ function getRelativeFilePath(sourceFile, rootDir) {
|
|
|
994
994
|
return relativePath;
|
|
995
995
|
}
|
|
996
996
|
|
|
997
|
-
// bazel-out/
|
|
997
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
998
998
|
import { HtmlParser, MessageBundle } from "@angular/compiler";
|
|
999
999
|
import ts43 from "typescript";
|
|
1000
1000
|
|
|
1001
|
-
// bazel-out/
|
|
1001
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
1002
1002
|
import { Xliff, Xliff2, Xmb } from "@angular/compiler";
|
|
1003
1003
|
import * as path from "path";
|
|
1004
1004
|
function i18nGetExtension(formatName) {
|
|
@@ -1049,10 +1049,10 @@ function getPathNormalizer(basePath) {
|
|
|
1049
1049
|
};
|
|
1050
1050
|
}
|
|
1051
1051
|
|
|
1052
|
-
// bazel-out/
|
|
1052
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
1053
1053
|
import ts11 from "typescript";
|
|
1054
1054
|
|
|
1055
|
-
// bazel-out/
|
|
1055
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
1056
1056
|
function toNumbers(value) {
|
|
1057
1057
|
const suffixIndex = value.lastIndexOf("-");
|
|
1058
1058
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -1087,7 +1087,7 @@ function compareVersions(v1, v2) {
|
|
|
1087
1087
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
1088
1088
|
}
|
|
1089
1089
|
|
|
1090
|
-
// bazel-out/
|
|
1090
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
1091
1091
|
var MIN_TS_VERSION = "5.4.0";
|
|
1092
1092
|
var MAX_TS_VERSION = "5.5.0";
|
|
1093
1093
|
var tsVersion = ts11.version;
|
|
@@ -1100,11 +1100,11 @@ function verifySupportedTypeScriptVersion() {
|
|
|
1100
1100
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
1101
1101
|
}
|
|
1102
1102
|
|
|
1103
|
-
// bazel-out/
|
|
1103
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
1104
1104
|
import { R3Identifiers as R3Identifiers5 } from "@angular/compiler";
|
|
1105
1105
|
import ts41 from "typescript";
|
|
1106
1106
|
|
|
1107
|
-
// bazel-out/
|
|
1107
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
1108
1108
|
var CycleAnalyzer = class {
|
|
1109
1109
|
constructor(importGraph) {
|
|
1110
1110
|
this.importGraph = importGraph;
|
|
@@ -1175,7 +1175,7 @@ var Cycle = class {
|
|
|
1175
1175
|
}
|
|
1176
1176
|
};
|
|
1177
1177
|
|
|
1178
|
-
// bazel-out/
|
|
1178
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
1179
1179
|
import ts12 from "typescript";
|
|
1180
1180
|
var ImportGraph = class {
|
|
1181
1181
|
constructor(checker, perf) {
|
|
@@ -1267,7 +1267,7 @@ var Found = class {
|
|
|
1267
1267
|
}
|
|
1268
1268
|
};
|
|
1269
1269
|
|
|
1270
|
-
// bazel-out/
|
|
1270
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
1271
1271
|
import ts13 from "typescript";
|
|
1272
1272
|
var FlatIndexGenerator = class {
|
|
1273
1273
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -1292,7 +1292,7 @@ export * from '${relativeEntryPoint}';
|
|
|
1292
1292
|
}
|
|
1293
1293
|
};
|
|
1294
1294
|
|
|
1295
|
-
// bazel-out/
|
|
1295
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
1296
1296
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
1297
1297
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
1298
1298
|
let resolvedEntryPoint = null;
|
|
@@ -1308,7 +1308,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
1308
1308
|
return resolvedEntryPoint;
|
|
1309
1309
|
}
|
|
1310
1310
|
|
|
1311
|
-
// bazel-out/
|
|
1311
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
1312
1312
|
import ts14 from "typescript";
|
|
1313
1313
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
1314
1314
|
const diagnostics = [];
|
|
@@ -1388,7 +1388,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
1388
1388
|
}
|
|
1389
1389
|
}
|
|
1390
1390
|
|
|
1391
|
-
// bazel-out/
|
|
1391
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
1392
1392
|
var ReferenceGraph = class {
|
|
1393
1393
|
constructor() {
|
|
1394
1394
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -1442,7 +1442,7 @@ var ReferenceGraph = class {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
};
|
|
1444
1444
|
|
|
1445
|
-
// bazel-out/
|
|
1445
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
1446
1446
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
1447
1447
|
var UpdateMode;
|
|
1448
1448
|
(function(UpdateMode2) {
|
|
@@ -1450,13 +1450,13 @@ var UpdateMode;
|
|
|
1450
1450
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
1451
1451
|
})(UpdateMode || (UpdateMode = {}));
|
|
1452
1452
|
|
|
1453
|
-
// bazel-out/
|
|
1453
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
1454
1454
|
import ts16 from "typescript";
|
|
1455
1455
|
|
|
1456
|
-
// bazel-out/
|
|
1456
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
1457
1457
|
import ts15 from "typescript";
|
|
1458
1458
|
|
|
1459
|
-
// bazel-out/
|
|
1459
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
1460
1460
|
var NgExtension = Symbol("NgExtension");
|
|
1461
1461
|
function isExtended(sf) {
|
|
1462
1462
|
return sf[NgExtension] !== void 0;
|
|
@@ -1516,13 +1516,13 @@ function retagTsFile(sf) {
|
|
|
1516
1516
|
}
|
|
1517
1517
|
}
|
|
1518
1518
|
|
|
1519
|
-
// bazel-out/
|
|
1519
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
1520
1520
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
1521
1521
|
function makeShimFileName(fileName, suffix) {
|
|
1522
1522
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
1523
1523
|
}
|
|
1524
1524
|
|
|
1525
|
-
// bazel-out/
|
|
1525
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
1526
1526
|
var ShimAdapter = class {
|
|
1527
1527
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
1528
1528
|
this.delegate = delegate;
|
|
@@ -1617,7 +1617,7 @@ var ShimAdapter = class {
|
|
|
1617
1617
|
}
|
|
1618
1618
|
};
|
|
1619
1619
|
|
|
1620
|
-
// bazel-out/
|
|
1620
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
1621
1621
|
var ShimReferenceTagger = class {
|
|
1622
1622
|
constructor(shimExtensions) {
|
|
1623
1623
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -1651,7 +1651,7 @@ var ShimReferenceTagger = class {
|
|
|
1651
1651
|
}
|
|
1652
1652
|
};
|
|
1653
1653
|
|
|
1654
|
-
// bazel-out/
|
|
1654
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
1655
1655
|
var DelegatingCompilerHost = class {
|
|
1656
1656
|
get jsDocParsingMode() {
|
|
1657
1657
|
return this.delegate.jsDocParsingMode;
|
|
@@ -1770,7 +1770,7 @@ var TsCreateProgramDriver = class {
|
|
|
1770
1770
|
}
|
|
1771
1771
|
};
|
|
1772
1772
|
|
|
1773
|
-
// bazel-out/
|
|
1773
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
1774
1774
|
var FileDependencyGraph = class {
|
|
1775
1775
|
constructor() {
|
|
1776
1776
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -1837,7 +1837,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
1837
1837
|
return false;
|
|
1838
1838
|
}
|
|
1839
1839
|
|
|
1840
|
-
// bazel-out/
|
|
1840
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
1841
1841
|
var IncrementalStateKind;
|
|
1842
1842
|
(function(IncrementalStateKind2) {
|
|
1843
1843
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -1845,7 +1845,7 @@ var IncrementalStateKind;
|
|
|
1845
1845
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
1846
1846
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
1847
1847
|
|
|
1848
|
-
// bazel-out/
|
|
1848
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
1849
1849
|
var PhaseKind;
|
|
1850
1850
|
(function(PhaseKind2) {
|
|
1851
1851
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -2046,7 +2046,7 @@ function toOriginalSourceFile(sf) {
|
|
|
2046
2046
|
}
|
|
2047
2047
|
}
|
|
2048
2048
|
|
|
2049
|
-
// bazel-out/
|
|
2049
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
2050
2050
|
var TrackedIncrementalBuildStrategy = class {
|
|
2051
2051
|
constructor() {
|
|
2052
2052
|
this.state = null;
|
|
@@ -2082,7 +2082,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
|
|
|
2082
2082
|
};
|
|
2083
2083
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
2084
2084
|
|
|
2085
|
-
// bazel-out/
|
|
2085
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
2086
2086
|
var IdentifierKind;
|
|
2087
2087
|
(function(IdentifierKind2) {
|
|
2088
2088
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -2100,7 +2100,7 @@ var AbsoluteSourceSpan = class {
|
|
|
2100
2100
|
}
|
|
2101
2101
|
};
|
|
2102
2102
|
|
|
2103
|
-
// bazel-out/
|
|
2103
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
2104
2104
|
var IndexingContext = class {
|
|
2105
2105
|
constructor() {
|
|
2106
2106
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -2110,10 +2110,10 @@ var IndexingContext = class {
|
|
|
2110
2110
|
}
|
|
2111
2111
|
};
|
|
2112
2112
|
|
|
2113
|
-
// bazel-out/
|
|
2113
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
2114
2114
|
import { ParseSourceFile } from "@angular/compiler";
|
|
2115
2115
|
|
|
2116
|
-
// bazel-out/
|
|
2116
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
2117
2117
|
import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstBoundDeferredTrigger, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate } from "@angular/compiler";
|
|
2118
2118
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
2119
2119
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
@@ -2395,7 +2395,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
2395
2395
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
2396
2396
|
}
|
|
2397
2397
|
|
|
2398
|
-
// bazel-out/
|
|
2398
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
2399
2399
|
function generateAnalysis(context) {
|
|
2400
2400
|
const analysis = /* @__PURE__ */ new Map();
|
|
2401
2401
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -2431,7 +2431,7 @@ function generateAnalysis(context) {
|
|
|
2431
2431
|
return analysis;
|
|
2432
2432
|
}
|
|
2433
2433
|
|
|
2434
|
-
// bazel-out/
|
|
2434
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
2435
2435
|
var NgModuleIndexImpl = class {
|
|
2436
2436
|
constructor(metaReader, localReader) {
|
|
2437
2437
|
this.metaReader = metaReader;
|
|
@@ -2520,7 +2520,7 @@ var NgModuleIndexImpl = class {
|
|
|
2520
2520
|
}
|
|
2521
2521
|
};
|
|
2522
2522
|
|
|
2523
|
-
// bazel-out/
|
|
2523
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
2524
2524
|
import ts17 from "typescript";
|
|
2525
2525
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
2526
2526
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -2670,7 +2670,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
2670
2670
|
};
|
|
2671
2671
|
}
|
|
2672
2672
|
|
|
2673
|
-
// bazel-out/
|
|
2673
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
2674
2674
|
var StandaloneComponentScopeReader = class {
|
|
2675
2675
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
2676
2676
|
this.metaReader = metaReader;
|
|
@@ -2766,10 +2766,10 @@ var StandaloneComponentScopeReader = class {
|
|
|
2766
2766
|
}
|
|
2767
2767
|
};
|
|
2768
2768
|
|
|
2769
|
-
// bazel-out/
|
|
2769
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
2770
2770
|
import { CssSelector as CssSelector2, DomElementSchemaRegistry as DomElementSchemaRegistry2, ExternalExpr as ExternalExpr2, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
|
|
2771
2771
|
|
|
2772
|
-
// bazel-out/
|
|
2772
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
2773
2773
|
import ts18 from "typescript";
|
|
2774
2774
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
2775
2775
|
var _a;
|
|
@@ -2880,7 +2880,7 @@ function parseTemplateAsSourceFile(fileName, template) {
|
|
|
2880
2880
|
);
|
|
2881
2881
|
}
|
|
2882
2882
|
|
|
2883
|
-
// bazel-out/
|
|
2883
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
2884
2884
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
2885
2885
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
2886
2886
|
function getTemplateId(clazz) {
|
|
@@ -2897,11 +2897,11 @@ function allocateTemplateId(sf) {
|
|
|
2897
2897
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
2898
2898
|
}
|
|
2899
2899
|
|
|
2900
|
-
// bazel-out/
|
|
2900
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2901
2901
|
import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
|
|
2902
2902
|
import ts20 from "typescript";
|
|
2903
2903
|
|
|
2904
|
-
// bazel-out/
|
|
2904
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
2905
2905
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
|
|
2906
2906
|
import ts19 from "typescript";
|
|
2907
2907
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
@@ -3032,7 +3032,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
3032
3032
|
}) || false;
|
|
3033
3033
|
}
|
|
3034
3034
|
|
|
3035
|
-
// bazel-out/
|
|
3035
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
3036
3036
|
var CompletionEngine = class {
|
|
3037
3037
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
3038
3038
|
this.tcb = tcb;
|
|
@@ -4209,10 +4209,10 @@ var MagicString = class {
|
|
|
4209
4209
|
}
|
|
4210
4210
|
};
|
|
4211
4211
|
|
|
4212
|
-
// bazel-out/
|
|
4212
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
4213
4213
|
import ts33 from "typescript";
|
|
4214
4214
|
|
|
4215
|
-
// bazel-out/
|
|
4215
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
4216
4216
|
import { DomElementSchemaRegistry } from "@angular/compiler";
|
|
4217
4217
|
import ts21 from "typescript";
|
|
4218
4218
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
@@ -4265,10 +4265,10 @@ var RegistryDomSchemaChecker = class {
|
|
|
4265
4265
|
}
|
|
4266
4266
|
};
|
|
4267
4267
|
|
|
4268
|
-
// bazel-out/
|
|
4268
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
4269
4269
|
import ts26 from "typescript";
|
|
4270
4270
|
|
|
4271
|
-
// bazel-out/
|
|
4271
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/reference_emit_environment.mjs
|
|
4272
4272
|
import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
|
|
4273
4273
|
var ReferenceEmitEnvironment = class {
|
|
4274
4274
|
constructor(importManager, refEmitter, reflector, contextFile) {
|
|
@@ -4299,7 +4299,7 @@ var ReferenceEmitEnvironment = class {
|
|
|
4299
4299
|
}
|
|
4300
4300
|
};
|
|
4301
4301
|
|
|
4302
|
-
// bazel-out/
|
|
4302
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
4303
4303
|
import ts22 from "typescript";
|
|
4304
4304
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
4305
4305
|
ts22.SyntaxKind.ParenthesizedExpression,
|
|
@@ -4382,15 +4382,15 @@ function tsNumericExpression(value) {
|
|
|
4382
4382
|
return ts22.factory.createNumericLiteral(value);
|
|
4383
4383
|
}
|
|
4384
4384
|
|
|
4385
|
-
// bazel-out/
|
|
4385
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
4386
4386
|
import { ExpressionType as ExpressionType2, R3Identifiers as R3Identifiers2, WrappedNodeExpr } from "@angular/compiler";
|
|
4387
4387
|
import ts25 from "typescript";
|
|
4388
4388
|
|
|
4389
|
-
// bazel-out/
|
|
4389
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
4390
4390
|
import { R3Identifiers } from "@angular/compiler";
|
|
4391
4391
|
import ts24 from "typescript";
|
|
4392
4392
|
|
|
4393
|
-
// bazel-out/
|
|
4393
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
4394
4394
|
import ts23 from "typescript";
|
|
4395
4395
|
var TypeParameterEmitter = class {
|
|
4396
4396
|
constructor(typeParameters, reflector) {
|
|
@@ -4468,7 +4468,7 @@ var TypeParameterEmitter = class {
|
|
|
4468
4468
|
}
|
|
4469
4469
|
};
|
|
4470
4470
|
|
|
4471
|
-
// bazel-out/
|
|
4471
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
4472
4472
|
var TCB_FILE_IMPORT_GRAPH_PREPARE_IDENTIFIERS = [
|
|
4473
4473
|
R3Identifiers.InputSignalBrandWriteType
|
|
4474
4474
|
];
|
|
@@ -4560,7 +4560,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
4560
4560
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
4561
4561
|
}
|
|
4562
4562
|
|
|
4563
|
-
// bazel-out/
|
|
4563
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
4564
4564
|
function generateTypeCtorDeclarationFn(env, meta, nodeTypeRef, typeParams) {
|
|
4565
4565
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
4566
4566
|
const rawType = ts25.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -4683,7 +4683,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
4683
4683
|
});
|
|
4684
4684
|
}
|
|
4685
4685
|
|
|
4686
|
-
// bazel-out/
|
|
4686
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
4687
4687
|
var Environment = class extends ReferenceEmitEnvironment {
|
|
4688
4688
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
4689
4689
|
super(importManager, refEmitter, reflector, contextFile);
|
|
@@ -4755,7 +4755,7 @@ var Environment = class extends ReferenceEmitEnvironment {
|
|
|
4755
4755
|
}
|
|
4756
4756
|
};
|
|
4757
4757
|
|
|
4758
|
-
// bazel-out/
|
|
4758
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
4759
4759
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan3, TmplAstElement as TmplAstElement2 } from "@angular/compiler";
|
|
4760
4760
|
import ts27 from "typescript";
|
|
4761
4761
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
@@ -4938,7 +4938,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
4938
4938
|
};
|
|
4939
4939
|
}
|
|
4940
4940
|
|
|
4941
|
-
// bazel-out/
|
|
4941
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
4942
4942
|
import ts28 from "typescript";
|
|
4943
4943
|
var TypeCheckShimGenerator = class {
|
|
4944
4944
|
constructor() {
|
|
@@ -4956,11 +4956,11 @@ var TypeCheckShimGenerator = class {
|
|
|
4956
4956
|
}
|
|
4957
4957
|
};
|
|
4958
4958
|
|
|
4959
|
-
// bazel-out/
|
|
4959
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
4960
4960
|
import { BindingPipe, BindingType, Call as Call2, createCssSelectorFromNode, CssSelector, DYNAMIC_TYPE, ImplicitReceiver as ImplicitReceiver3, ParsedEventType, PropertyRead as PropertyRead4, PropertyWrite as PropertyWrite3, R3Identifiers as R3Identifiers3, SafeCall, SafePropertyRead as SafePropertyRead3, SelectorMatcher, ThisReceiver, TmplAstBoundAttribute, TmplAstBoundText, TmplAstContent, TmplAstDeferredBlock, TmplAstElement as TmplAstElement3, TmplAstForLoopBlock, TmplAstIcu, TmplAstIfBlock, TmplAstIfBlockBranch, TmplAstReference as TmplAstReference3, TmplAstSwitchBlock, TmplAstTemplate as TmplAstTemplate2, TmplAstText, TmplAstTextAttribute as TmplAstTextAttribute2, TmplAstVariable, TransplantedType } from "@angular/compiler";
|
|
4961
4961
|
import ts31 from "typescript";
|
|
4962
4962
|
|
|
4963
|
-
// bazel-out/
|
|
4963
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
4964
4964
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan4 } from "@angular/compiler";
|
|
4965
4965
|
import ts29 from "typescript";
|
|
4966
4966
|
function wrapForDiagnostics(expr) {
|
|
@@ -5016,7 +5016,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
5016
5016
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
5017
5017
|
}
|
|
5018
5018
|
|
|
5019
|
-
// bazel-out/
|
|
5019
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
5020
5020
|
import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
|
|
5021
5021
|
import ts30 from "typescript";
|
|
5022
5022
|
var NULL_AS_ANY = ts30.factory.createAsExpression(ts30.factory.createNull(), ts30.factory.createKeywordTypeNode(ts30.SyntaxKind.AnyKeyword));
|
|
@@ -5349,7 +5349,7 @@ var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
|
|
|
5349
5349
|
_VeSafeLhsInferenceBugDetector.SINGLETON = new _VeSafeLhsInferenceBugDetector();
|
|
5350
5350
|
})();
|
|
5351
5351
|
|
|
5352
|
-
// bazel-out/
|
|
5352
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
5353
5353
|
var TcbGenericContextBehavior;
|
|
5354
5354
|
(function(TcbGenericContextBehavior2) {
|
|
5355
5355
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -6130,7 +6130,10 @@ var TcbIfOp = class extends TcbOp {
|
|
|
6130
6130
|
const expressionScope = Scope.forNodes(this.tcb, this.scope, branch, [], null);
|
|
6131
6131
|
expressionScope.render().forEach((stmt) => this.scope.addStatement(stmt));
|
|
6132
6132
|
this.expressionScopes.set(branch, expressionScope);
|
|
6133
|
-
|
|
6133
|
+
let expression = tcbExpression(branch.expression, this.tcb, expressionScope);
|
|
6134
|
+
if (branch.expressionAlias !== null) {
|
|
6135
|
+
expression = ts31.factory.createBinaryExpression(ts31.factory.createParenthesizedExpression(expression), ts31.SyntaxKind.AmpersandAmpersandToken, expressionScope.resolve(branch.expressionAlias));
|
|
6136
|
+
}
|
|
6134
6137
|
const bodyScope = this.getBranchScope(expressionScope, branch, index);
|
|
6135
6138
|
return ts31.factory.createIfStatement(expression, ts31.factory.createBlock(bodyScope.render()), this.generateBranch(index + 1));
|
|
6136
6139
|
}
|
|
@@ -6150,12 +6153,11 @@ var TcbIfOp = class extends TcbOp {
|
|
|
6150
6153
|
}
|
|
6151
6154
|
const expressionScope = this.expressionScopes.get(branch);
|
|
6152
6155
|
let expression;
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
} else {
|
|
6157
|
-
expression = expressionScope.resolve(branch.expressionAlias);
|
|
6156
|
+
expression = tcbExpression(branch.expression, this.tcb, expressionScope);
|
|
6157
|
+
if (branch.expressionAlias !== null) {
|
|
6158
|
+
expression = ts31.factory.createBinaryExpression(ts31.factory.createParenthesizedExpression(expression), ts31.SyntaxKind.AmpersandAmpersandToken, expressionScope.resolve(branch.expressionAlias));
|
|
6158
6159
|
}
|
|
6160
|
+
markIgnoreDiagnostics(expression);
|
|
6159
6161
|
const comparisonExpression = i === index ? expression : ts31.factory.createPrefixUnaryExpression(ts31.SyntaxKind.ExclamationToken, ts31.factory.createParenthesizedExpression(expression));
|
|
6160
6162
|
guard = guard === null ? comparisonExpression : ts31.factory.createBinaryExpression(guard, ts31.SyntaxKind.AmpersandAmpersandToken, comparisonExpression);
|
|
6161
6163
|
}
|
|
@@ -6870,7 +6872,7 @@ var TcbForLoopTrackTranslator = class extends TcbExpressionTranslator {
|
|
|
6870
6872
|
}
|
|
6871
6873
|
};
|
|
6872
6874
|
|
|
6873
|
-
// bazel-out/
|
|
6875
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
6874
6876
|
import ts32 from "typescript";
|
|
6875
6877
|
var TypeCheckFile = class extends Environment {
|
|
6876
6878
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -6918,7 +6920,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
6918
6920
|
}
|
|
6919
6921
|
};
|
|
6920
6922
|
|
|
6921
|
-
// bazel-out/
|
|
6923
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
6922
6924
|
var InliningMode;
|
|
6923
6925
|
(function(InliningMode2) {
|
|
6924
6926
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -7170,10 +7172,10 @@ var TypeCtorOp = class {
|
|
|
7170
7172
|
}
|
|
7171
7173
|
};
|
|
7172
7174
|
|
|
7173
|
-
// bazel-out/
|
|
7175
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
7174
7176
|
import { ParseLocation, ParseSourceSpan } from "@angular/compiler";
|
|
7175
7177
|
|
|
7176
|
-
// bazel-out/
|
|
7178
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
7177
7179
|
var LF_CHAR = 10;
|
|
7178
7180
|
var CR_CHAR = 13;
|
|
7179
7181
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -7214,7 +7216,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
7214
7216
|
return low - 1;
|
|
7215
7217
|
}
|
|
7216
7218
|
|
|
7217
|
-
// bazel-out/
|
|
7219
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
7218
7220
|
var TemplateSource = class {
|
|
7219
7221
|
constructor(mapping, file) {
|
|
7220
7222
|
this.mapping = mapping;
|
|
@@ -7265,7 +7267,7 @@ var TemplateSourceManager = class {
|
|
|
7265
7267
|
}
|
|
7266
7268
|
};
|
|
7267
7269
|
|
|
7268
|
-
// bazel-out/
|
|
7270
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
7269
7271
|
import { AST, ASTWithSource as ASTWithSource3, BindingPipe as BindingPipe2, PropertyRead as PropertyRead5, PropertyWrite as PropertyWrite4, R3Identifiers as R3Identifiers4, SafePropertyRead as SafePropertyRead4, TmplAstBoundAttribute as TmplAstBoundAttribute2, TmplAstBoundEvent, TmplAstElement as TmplAstElement4, TmplAstReference as TmplAstReference4, TmplAstTemplate as TmplAstTemplate3, TmplAstTextAttribute as TmplAstTextAttribute3, TmplAstVariable as TmplAstVariable2 } from "@angular/compiler";
|
|
7270
7272
|
import ts34 from "typescript";
|
|
7271
7273
|
var SymbolBuilder = class {
|
|
@@ -7514,7 +7516,6 @@ var SymbolBuilder = class {
|
|
|
7514
7516
|
return { kind: SymbolKind.Output, bindings };
|
|
7515
7517
|
}
|
|
7516
7518
|
getSymbolOfInputBinding(binding) {
|
|
7517
|
-
var _a;
|
|
7518
7519
|
const consumer = this.templateData.boundTarget.getConsumerOfBinding(binding);
|
|
7519
7520
|
if (consumer === null) {
|
|
7520
7521
|
return null;
|
|
@@ -7533,22 +7534,28 @@ var SymbolBuilder = class {
|
|
|
7533
7534
|
continue;
|
|
7534
7535
|
}
|
|
7535
7536
|
const signalInputAssignment = unwrapSignalInputWriteTAccessor(node.left);
|
|
7537
|
+
let fieldAccessExpr;
|
|
7536
7538
|
let symbolInfo = null;
|
|
7537
7539
|
if (signalInputAssignment !== null) {
|
|
7540
|
+
if (ts34.isIdentifier(signalInputAssignment.fieldExpr)) {
|
|
7541
|
+
continue;
|
|
7542
|
+
}
|
|
7538
7543
|
const fieldSymbol = this.getSymbolOfTsNode(signalInputAssignment.fieldExpr);
|
|
7539
7544
|
const typeSymbol = this.getSymbolOfTsNode(signalInputAssignment.typeExpr);
|
|
7545
|
+
fieldAccessExpr = signalInputAssignment.fieldExpr;
|
|
7540
7546
|
symbolInfo = fieldSymbol === null || typeSymbol === null ? null : {
|
|
7541
7547
|
tcbLocation: fieldSymbol.tcbLocation,
|
|
7542
7548
|
tsSymbol: fieldSymbol.tsSymbol,
|
|
7543
7549
|
tsType: typeSymbol.tsType
|
|
7544
7550
|
};
|
|
7545
7551
|
} else {
|
|
7552
|
+
fieldAccessExpr = node.left;
|
|
7546
7553
|
symbolInfo = this.getSymbolOfTsNode(node.left);
|
|
7547
7554
|
}
|
|
7548
7555
|
if (symbolInfo === null || symbolInfo.tsSymbol === null) {
|
|
7549
7556
|
continue;
|
|
7550
7557
|
}
|
|
7551
|
-
const target = this.getDirectiveSymbolForAccessExpression(
|
|
7558
|
+
const target = this.getDirectiveSymbolForAccessExpression(fieldAccessExpr, consumer);
|
|
7552
7559
|
if (target === null) {
|
|
7553
7560
|
continue;
|
|
7554
7561
|
}
|
|
@@ -7798,7 +7805,7 @@ function unwrapSignalInputWriteTAccessor(expr) {
|
|
|
7798
7805
|
if (!ts34.isIdentifier(expr.argumentExpression.name) || expr.argumentExpression.name.text !== R3Identifiers4.InputSignalBrandWriteType.name) {
|
|
7799
7806
|
return null;
|
|
7800
7807
|
}
|
|
7801
|
-
if (!ts34.isPropertyAccessExpression(expr.expression) && !ts34.isElementAccessExpression(expr.expression)) {
|
|
7808
|
+
if (!ts34.isPropertyAccessExpression(expr.expression) && !ts34.isElementAccessExpression(expr.expression) && !ts34.isIdentifier(expr.expression)) {
|
|
7802
7809
|
throw new Error("Unexpected expression for signal input write type.");
|
|
7803
7810
|
}
|
|
7804
7811
|
return {
|
|
@@ -7807,7 +7814,7 @@ function unwrapSignalInputWriteTAccessor(expr) {
|
|
|
7807
7814
|
};
|
|
7808
7815
|
}
|
|
7809
7816
|
|
|
7810
|
-
// bazel-out/
|
|
7817
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
7811
7818
|
var REGISTRY2 = new DomElementSchemaRegistry2();
|
|
7812
7819
|
var TemplateTypeCheckerImpl = class {
|
|
7813
7820
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -8508,10 +8515,10 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
8508
8515
|
}
|
|
8509
8516
|
};
|
|
8510
8517
|
|
|
8511
|
-
// bazel-out/
|
|
8512
|
-
import { Interpolation, PropertyRead as PropertyRead6 } from "@angular/compiler";
|
|
8518
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
8519
|
+
import { ASTWithSource as ASTWithSource5, BindingType as BindingType2, Interpolation, PropertyRead as PropertyRead6, TmplAstBoundAttribute as TmplAstBoundAttribute3 } from "@angular/compiler";
|
|
8513
8520
|
|
|
8514
|
-
// bazel-out/
|
|
8521
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/symbol_util.mjs
|
|
8515
8522
|
import ts35 from "typescript";
|
|
8516
8523
|
var SIGNAL_FNS = /* @__PURE__ */ new Set([
|
|
8517
8524
|
"WritableSignal",
|
|
@@ -8531,7 +8538,7 @@ function isSignalSymbol(symbol) {
|
|
|
8531
8538
|
});
|
|
8532
8539
|
}
|
|
8533
8540
|
|
|
8534
|
-
// bazel-out/
|
|
8541
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
8535
8542
|
import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstBoundDeferredTrigger as TmplAstBoundDeferredTrigger2 } from "@angular/compiler";
|
|
8536
8543
|
var TemplateCheckWithVisitor = class {
|
|
8537
8544
|
run(ctx, component, template) {
|
|
@@ -8656,7 +8663,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
|
8656
8663
|
}
|
|
8657
8664
|
};
|
|
8658
8665
|
|
|
8659
|
-
// bazel-out/
|
|
8666
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
8660
8667
|
var SIGNAL_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["set", "update", "asReadonly"]);
|
|
8661
8668
|
var FUNCTION_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["name", "length", "prototype"]);
|
|
8662
8669
|
var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -8667,6 +8674,14 @@ var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
|
|
|
8667
8674
|
visitNode(ctx, component, node) {
|
|
8668
8675
|
if (node instanceof Interpolation) {
|
|
8669
8676
|
return node.expressions.filter((item) => item instanceof PropertyRead6).flatMap((item) => buildDiagnosticForSignal(ctx, item, component));
|
|
8677
|
+
} else if (node instanceof TmplAstBoundAttribute3) {
|
|
8678
|
+
const symbol = ctx.templateTypeChecker.getSymbolOfNode(node, component);
|
|
8679
|
+
if (symbol !== null && symbol.kind === SymbolKind.Input) {
|
|
8680
|
+
return [];
|
|
8681
|
+
}
|
|
8682
|
+
if (node.type === BindingType2.Property && node.value instanceof ASTWithSource5 && node.value.ast instanceof PropertyRead6) {
|
|
8683
|
+
return buildDiagnosticForSignal(ctx, node.value.ast, component);
|
|
8684
|
+
}
|
|
8670
8685
|
}
|
|
8671
8686
|
return [];
|
|
8672
8687
|
}
|
|
@@ -8700,7 +8715,7 @@ var factory = {
|
|
|
8700
8715
|
create: () => new InterpolatedSignalCheck()
|
|
8701
8716
|
};
|
|
8702
8717
|
|
|
8703
|
-
// bazel-out/
|
|
8718
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
8704
8719
|
import { TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
|
|
8705
8720
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
8706
8721
|
constructor() {
|
|
@@ -8726,7 +8741,7 @@ var factory2 = {
|
|
|
8726
8741
|
create: () => new InvalidBananaInBoxCheck()
|
|
8727
8742
|
};
|
|
8728
8743
|
|
|
8729
|
-
// bazel-out/
|
|
8744
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
8730
8745
|
import { TmplAstTemplate as TmplAstTemplate4 } from "@angular/compiler";
|
|
8731
8746
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
8732
8747
|
["ngIf", { directive: "NgIf", builtIn: "@if" }],
|
|
@@ -8771,7 +8786,7 @@ var factory3 = {
|
|
|
8771
8786
|
}
|
|
8772
8787
|
};
|
|
8773
8788
|
|
|
8774
|
-
// bazel-out/
|
|
8789
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
8775
8790
|
import { TmplAstTemplate as TmplAstTemplate5 } from "@angular/compiler";
|
|
8776
8791
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
8777
8792
|
constructor() {
|
|
@@ -8804,7 +8819,7 @@ var factory4 = {
|
|
|
8804
8819
|
create: () => new MissingNgForOfLetCheck()
|
|
8805
8820
|
};
|
|
8806
8821
|
|
|
8807
|
-
// bazel-out/
|
|
8822
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
8808
8823
|
import { Binary } from "@angular/compiler";
|
|
8809
8824
|
import ts36 from "typescript";
|
|
8810
8825
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -8849,7 +8864,7 @@ var factory5 = {
|
|
|
8849
8864
|
}
|
|
8850
8865
|
};
|
|
8851
8866
|
|
|
8852
|
-
// bazel-out/
|
|
8867
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
8853
8868
|
import { SafeCall as SafeCall2, SafeKeyedRead as SafeKeyedRead2, SafePropertyRead as SafePropertyRead5 } from "@angular/compiler";
|
|
8854
8869
|
import ts37 from "typescript";
|
|
8855
8870
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -8895,8 +8910,8 @@ var factory6 = {
|
|
|
8895
8910
|
}
|
|
8896
8911
|
};
|
|
8897
8912
|
|
|
8898
|
-
// bazel-out/
|
|
8899
|
-
import { TmplAstBoundAttribute as
|
|
8913
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
8914
|
+
import { TmplAstBoundAttribute as TmplAstBoundAttribute4 } from "@angular/compiler";
|
|
8900
8915
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
8901
8916
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
8902
8917
|
constructor() {
|
|
@@ -8904,7 +8919,7 @@ var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
|
8904
8919
|
this.code = ErrorCode.SUFFIX_NOT_SUPPORTED;
|
|
8905
8920
|
}
|
|
8906
8921
|
visitNode(ctx, component, node) {
|
|
8907
|
-
if (!(node instanceof
|
|
8922
|
+
if (!(node instanceof TmplAstBoundAttribute4))
|
|
8908
8923
|
return [];
|
|
8909
8924
|
if (!node.keySpan.toString().startsWith("attr.") || !STYLE_SUFFIXES.some((suffix) => node.name.endsWith(`.${suffix}`))) {
|
|
8910
8925
|
return [];
|
|
@@ -8919,7 +8934,7 @@ var factory7 = {
|
|
|
8919
8934
|
create: () => new SuffixNotSupportedCheck()
|
|
8920
8935
|
};
|
|
8921
8936
|
|
|
8922
|
-
// bazel-out/
|
|
8937
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
8923
8938
|
import { TmplAstTextAttribute as TmplAstTextAttribute4 } from "@angular/compiler";
|
|
8924
8939
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
8925
8940
|
constructor() {
|
|
@@ -8958,10 +8973,10 @@ var factory8 = {
|
|
|
8958
8973
|
create: () => new TextAttributeNotBindingSpec()
|
|
8959
8974
|
};
|
|
8960
8975
|
|
|
8961
|
-
// bazel-out/
|
|
8976
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
8962
8977
|
import ts38 from "typescript";
|
|
8963
8978
|
|
|
8964
|
-
// bazel-out/
|
|
8979
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
8965
8980
|
var DiagnosticCategoryLabel;
|
|
8966
8981
|
(function(DiagnosticCategoryLabel2) {
|
|
8967
8982
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -8969,7 +8984,7 @@ var DiagnosticCategoryLabel;
|
|
|
8969
8984
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
8970
8985
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
8971
8986
|
|
|
8972
|
-
// bazel-out/
|
|
8987
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
8973
8988
|
var ExtendedTemplateCheckerImpl = class {
|
|
8974
8989
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
8975
8990
|
var _a, _b, _c, _d, _e;
|
|
@@ -9022,7 +9037,7 @@ function assertNever(value) {
|
|
|
9022
9037
|
${value}`);
|
|
9023
9038
|
}
|
|
9024
9039
|
|
|
9025
|
-
// bazel-out/
|
|
9040
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
9026
9041
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
9027
9042
|
factory2,
|
|
9028
9043
|
factory5,
|
|
@@ -9038,8 +9053,8 @@ var SUPPORTED_DIAGNOSTIC_NAMES = /* @__PURE__ */ new Set([
|
|
|
9038
9053
|
...ALL_DIAGNOSTIC_FACTORIES.map((factory9) => factory9.name)
|
|
9039
9054
|
]);
|
|
9040
9055
|
|
|
9041
|
-
// bazel-out/
|
|
9042
|
-
import { ASTWithSource as
|
|
9056
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/template_semantics/src/template_semantics_checker.mjs
|
|
9057
|
+
import { ASTWithSource as ASTWithSource6, ImplicitReceiver as ImplicitReceiver4, ParsedEventType as ParsedEventType2, RecursiveAstVisitor as RecursiveAstVisitor3, TmplAstBoundEvent as TmplAstBoundEvent3, TmplAstRecursiveVisitor as TmplAstRecursiveVisitor2, TmplAstVariable as TmplAstVariable3 } from "@angular/compiler";
|
|
9043
9058
|
import ts39 from "typescript";
|
|
9044
9059
|
var TemplateSemanticsCheckerImpl = class {
|
|
9045
9060
|
constructor(templateTypeChecker) {
|
|
@@ -9119,10 +9134,10 @@ var ExpressionsSemanticsVisitor = class extends RecursiveAstVisitor3 {
|
|
|
9119
9134
|
}
|
|
9120
9135
|
};
|
|
9121
9136
|
function unwrapAstWithSource(ast) {
|
|
9122
|
-
return ast instanceof
|
|
9137
|
+
return ast instanceof ASTWithSource6 ? ast.ast : ast;
|
|
9123
9138
|
}
|
|
9124
9139
|
|
|
9125
|
-
// bazel-out/
|
|
9140
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/rules/initializer_api_usage_rule.mjs
|
|
9126
9141
|
import ts40 from "typescript";
|
|
9127
9142
|
var APIS_TO_CHECK = [
|
|
9128
9143
|
INPUT_INITIALIZER_FN,
|
|
@@ -9173,7 +9188,7 @@ var InitializerApiUsageRule = class {
|
|
|
9173
9188
|
}
|
|
9174
9189
|
};
|
|
9175
9190
|
|
|
9176
|
-
// bazel-out/
|
|
9191
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/source_file_validator.mjs
|
|
9177
9192
|
var SourceFileValidator = class {
|
|
9178
9193
|
constructor(reflector, importedSymbolsTracker) {
|
|
9179
9194
|
this.rules = [new InitializerApiUsageRule(reflector, importedSymbolsTracker)];
|
|
@@ -9211,7 +9226,7 @@ var SourceFileValidator = class {
|
|
|
9211
9226
|
}
|
|
9212
9227
|
};
|
|
9213
9228
|
|
|
9214
|
-
// bazel-out/
|
|
9229
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/core_version.mjs
|
|
9215
9230
|
function coreHasSymbol(program, symbol) {
|
|
9216
9231
|
const checker = program.getTypeChecker();
|
|
9217
9232
|
for (const sf of program.getSourceFiles().filter(isMaybeCore)) {
|
|
@@ -9230,7 +9245,7 @@ function isMaybeCore(sf) {
|
|
|
9230
9245
|
return sf.isDeclarationFile && sf.fileName.includes("@angular/core") && sf.fileName.endsWith("index.d.ts");
|
|
9231
9246
|
}
|
|
9232
9247
|
|
|
9233
|
-
// bazel-out/
|
|
9248
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/feature_detection.mjs
|
|
9234
9249
|
import semver from "semver";
|
|
9235
9250
|
function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
9236
9251
|
if (coreVersion === `0.0.0-${"PLACEHOLDER"}`) {
|
|
@@ -9239,7 +9254,7 @@ function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
|
9239
9254
|
return semver.satisfies(coreVersion, minVersion);
|
|
9240
9255
|
}
|
|
9241
9256
|
|
|
9242
|
-
// bazel-out/
|
|
9257
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
9243
9258
|
var CompilationTicketKind;
|
|
9244
9259
|
(function(CompilationTicketKind2) {
|
|
9245
9260
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -10037,7 +10052,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
10037
10052
|
return versions;
|
|
10038
10053
|
}
|
|
10039
10054
|
|
|
10040
|
-
// bazel-out/
|
|
10055
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
10041
10056
|
import ts42 from "typescript";
|
|
10042
10057
|
var DelegatingCompilerHost2 = class {
|
|
10043
10058
|
get jsDocParsingMode() {
|
|
@@ -10176,7 +10191,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
10176
10191
|
}
|
|
10177
10192
|
};
|
|
10178
10193
|
|
|
10179
|
-
// bazel-out/
|
|
10194
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
10180
10195
|
var NgtscProgram = class {
|
|
10181
10196
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
10182
10197
|
this.options = options;
|
|
@@ -10403,15 +10418,15 @@ function mergeEmitResults(emitResults) {
|
|
|
10403
10418
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
10404
10419
|
}
|
|
10405
10420
|
|
|
10406
|
-
// bazel-out/
|
|
10421
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
10407
10422
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
10408
10423
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
10409
10424
|
}
|
|
10410
10425
|
|
|
10411
|
-
// bazel-out/
|
|
10426
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
10412
10427
|
import ts45 from "typescript";
|
|
10413
10428
|
|
|
10414
|
-
// bazel-out/
|
|
10429
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
10415
10430
|
import ts44 from "typescript";
|
|
10416
10431
|
function createMessageDiagnostic(messageText) {
|
|
10417
10432
|
return {
|
|
@@ -10425,7 +10440,7 @@ function createMessageDiagnostic(messageText) {
|
|
|
10425
10440
|
};
|
|
10426
10441
|
}
|
|
10427
10442
|
|
|
10428
|
-
// bazel-out/
|
|
10443
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
10429
10444
|
var defaultFormatHost = {
|
|
10430
10445
|
getCurrentDirectory: () => ts45.sys.getCurrentDirectory(),
|
|
10431
10446
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -10658,4 +10673,4 @@ export {
|
|
|
10658
10673
|
* Use of this source code is governed by an MIT-style license that can be
|
|
10659
10674
|
* found in the LICENSE file at https://angular.io/license
|
|
10660
10675
|
*/
|
|
10661
|
-
//# sourceMappingURL=chunk-
|
|
10676
|
+
//# sourceMappingURL=chunk-D7XZVDL2.js.map
|