@angular/compiler-cli 18.0.0-next.5 → 18.0.0-rc.0
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-IEQXFDXI.js → chunk-3UXY73FR.js} +31 -31
- package/bundles/chunk-3UXY73FR.js.map +6 -0
- package/bundles/{chunk-75YFKYUJ.js → chunk-3W345P4E.js} +7 -7
- package/bundles/chunk-3W345P4E.js.map +6 -0
- package/bundles/{chunk-QT2OXMUI.js → chunk-3ZM5BFEI.js} +188 -123
- package/bundles/chunk-3ZM5BFEI.js.map +6 -0
- package/bundles/{chunk-DZJYWOMD.js → chunk-5DY7CLVW.js} +16 -14
- package/bundles/chunk-5DY7CLVW.js.map +6 -0
- package/bundles/{chunk-QFI3O2MX.js → chunk-BAS2AOWB.js} +40 -19
- package/bundles/chunk-BAS2AOWB.js.map +6 -0
- package/bundles/{chunk-GWZTRBUN.js → chunk-CFIOLJL4.js} +59 -51
- package/bundles/chunk-CFIOLJL4.js.map +6 -0
- package/bundles/{chunk-R4KQI5XI.js → chunk-JZQHA4E7.js} +5 -5
- package/bundles/{chunk-R4KQI5XI.js.map → chunk-JZQHA4E7.js.map} +1 -1
- package/bundles/{chunk-SBDNBITT.js → chunk-LYJKWJUC.js} +3 -3
- package/bundles/{chunk-WCD6LVCP.js → chunk-QYV344EV.js} +11 -8
- package/bundles/chunk-QYV344EV.js.map +6 -0
- package/bundles/{chunk-AO7Q5KNS.js → chunk-XAPDG6EU.js} +248 -176
- package/bundles/chunk-XAPDG6EU.js.map +6 -0
- package/bundles/{chunk-YUMIYLNL.js → chunk-ZX6BKV7T.js} +5 -5
- package/bundles/{chunk-YUMIYLNL.js.map → chunk-ZX6BKV7T.js.map} +1 -1
- package/bundles/index.js +12 -12
- package/bundles/index.js.map +1 -1
- package/bundles/linker/babel/index.js +15 -13
- package/bundles/linker/babel/index.js.map +1 -1
- package/bundles/linker/index.js +4 -4
- package/bundles/ngcc/index.js +1 -1
- package/bundles/ngcc/index.js.map +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/ng_xi18n.js.map +1 -1
- package/bundles/src/bin/ngc.js +8 -8
- package/bundles/src/bin/ngc.js.map +1 -1
- package/bundles_metadata.json +1 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +2 -2
- package/private/migrations.d.ts +2 -2
- package/src/ngtsc/annotations/common/src/util.d.ts +2 -2
- package/src/ngtsc/annotations/directive/src/initializer_functions.d.ts +2 -2
- package/src/ngtsc/annotations/index.d.ts +2 -2
- package/src/ngtsc/annotations/ng_module/index.d.ts +1 -1
- package/src/ngtsc/annotations/ng_module/src/handler.d.ts +2 -2
- package/src/ngtsc/diagnostics/index.d.ts +1 -1
- package/src/ngtsc/file_system/index.d.ts +2 -2
- package/src/ngtsc/imports/index.d.ts +4 -4
- package/src/ngtsc/incremental/index.d.ts +1 -1
- package/src/ngtsc/incremental/semantic_graph/index.d.ts +1 -1
- package/src/ngtsc/metadata/index.d.ts +3 -3
- package/src/ngtsc/partial_evaluator/index.d.ts +1 -1
- package/src/ngtsc/reflection/index.d.ts +2 -2
- package/src/ngtsc/scope/index.d.ts +1 -1
- package/src/ngtsc/shims/index.d.ts +1 -1
- package/src/ngtsc/transform/index.d.ts +2 -2
- package/src/ngtsc/translator/index.d.ts +4 -4
- package/src/ngtsc/typecheck/api/api.d.ts +4 -0
- package/src/ngtsc/typecheck/src/expression.d.ts +1 -1
- package/src/perform_compile.d.ts +1 -1
- package/src/transformers/compiler_host.d.ts +1 -1
- package/src/transformers/program.d.ts +1 -1
- package/bundles/chunk-75YFKYUJ.js.map +0 -6
- package/bundles/chunk-AO7Q5KNS.js.map +0 -6
- package/bundles/chunk-DZJYWOMD.js.map +0 -6
- package/bundles/chunk-GWZTRBUN.js.map +0 -6
- package/bundles/chunk-IEQXFDXI.js.map +0 -6
- package/bundles/chunk-QFI3O2MX.js.map +0 -6
- package/bundles/chunk-QT2OXMUI.js.map +0 -6
- package/bundles/chunk-WCD6LVCP.js.map +0 -6
- /package/bundles/{chunk-SBDNBITT.js.map → chunk-LYJKWJUC.js.map} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
PotentialImportKind,
|
|
9
9
|
PotentialImportMode,
|
|
10
10
|
SymbolKind
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZX6BKV7T.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-3ZM5BFEI.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-CFIOLJL4.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-JZQHA4E7.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-3W345P4E.js";
|
|
115
115
|
|
|
116
|
-
// bazel-out/
|
|
116
|
+
// bazel-out/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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;
|
|
@@ -928,8 +928,8 @@ var DocsExtractor = class {
|
|
|
928
928
|
const realSourceFile = node.getSourceFile();
|
|
929
929
|
entry.source = {
|
|
930
930
|
filePath: getRelativeFilePath(realSourceFile, rootDir),
|
|
931
|
-
startLine: ts10.getLineAndCharacterOfPosition(realSourceFile, node.
|
|
932
|
-
endLine: ts10.getLineAndCharacterOfPosition(realSourceFile, node.getEnd()).line
|
|
931
|
+
startLine: ts10.getLineAndCharacterOfPosition(realSourceFile, node.getStart()).line + 1,
|
|
932
|
+
endLine: ts10.getLineAndCharacterOfPosition(realSourceFile, node.getEnd()).line + 1
|
|
933
933
|
};
|
|
934
934
|
entries.push({ ...entry, name: exportName });
|
|
935
935
|
}
|
|
@@ -994,11 +994,11 @@ function getRelativeFilePath(sourceFile, rootDir) {
|
|
|
994
994
|
return relativePath;
|
|
995
995
|
}
|
|
996
996
|
|
|
997
|
-
// bazel-out/
|
|
997
|
+
// bazel-out/k8-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/k8-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/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
1053
1053
|
import ts11 from "typescript";
|
|
1054
1054
|
|
|
1055
|
-
// bazel-out/
|
|
1055
|
+
// bazel-out/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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/k8-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$";
|
|
@@ -2584,7 +2584,11 @@ var AdapterResourceLoader = class {
|
|
|
2584
2584
|
if (!this.adapter.transformResource || context.type !== "style") {
|
|
2585
2585
|
return data;
|
|
2586
2586
|
}
|
|
2587
|
-
const transformResult = await this.adapter.transformResource(data, {
|
|
2587
|
+
const transformResult = await this.adapter.transformResource(data, {
|
|
2588
|
+
type: "style",
|
|
2589
|
+
containingFile: context.containingFile,
|
|
2590
|
+
resourceFile: null
|
|
2591
|
+
});
|
|
2588
2592
|
if (transformResult === null) {
|
|
2589
2593
|
return data;
|
|
2590
2594
|
}
|
|
@@ -2666,7 +2670,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
2666
2670
|
};
|
|
2667
2671
|
}
|
|
2668
2672
|
|
|
2669
|
-
// bazel-out/
|
|
2673
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
2670
2674
|
var StandaloneComponentScopeReader = class {
|
|
2671
2675
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
2672
2676
|
this.metaReader = metaReader;
|
|
@@ -2762,10 +2766,10 @@ var StandaloneComponentScopeReader = class {
|
|
|
2762
2766
|
}
|
|
2763
2767
|
};
|
|
2764
2768
|
|
|
2765
|
-
// bazel-out/
|
|
2769
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
2766
2770
|
import { CssSelector as CssSelector2, DomElementSchemaRegistry as DomElementSchemaRegistry2, ExternalExpr as ExternalExpr2, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
|
|
2767
2771
|
|
|
2768
|
-
// bazel-out/
|
|
2772
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
2769
2773
|
import ts18 from "typescript";
|
|
2770
2774
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
2771
2775
|
var _a;
|
|
@@ -2817,9 +2821,7 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
|
|
|
2817
2821
|
try {
|
|
2818
2822
|
sf = getParsedTemplateSourceFile(fileName, mapping);
|
|
2819
2823
|
} catch (e) {
|
|
2820
|
-
const failureChain = makeDiagnosticChain(`Failed to report an error in '${fileName}' at ${span.start.line + 1}:${span.start.col + 1}`, [
|
|
2821
|
-
makeDiagnosticChain((_a = e == null ? void 0 : e.stack) != null ? _a : `${e}`)
|
|
2822
|
-
]);
|
|
2824
|
+
const failureChain = makeDiagnosticChain(`Failed to report an error in '${fileName}' at ${span.start.line + 1}:${span.start.col + 1}`, [makeDiagnosticChain((_a = e == null ? void 0 : e.stack) != null ? _a : `${e}`)]);
|
|
2823
2825
|
return {
|
|
2824
2826
|
source: "ngtsc",
|
|
2825
2827
|
category,
|
|
@@ -2869,10 +2871,16 @@ function parseTemplateAsSourceFile(fileName, template) {
|
|
|
2869
2871
|
if (parseTemplateAsSourceFileForTest !== null) {
|
|
2870
2872
|
return parseTemplateAsSourceFileForTest(fileName, template);
|
|
2871
2873
|
}
|
|
2872
|
-
return ts18.createSourceFile(
|
|
2874
|
+
return ts18.createSourceFile(
|
|
2875
|
+
fileName,
|
|
2876
|
+
template,
|
|
2877
|
+
ts18.ScriptTarget.Latest,
|
|
2878
|
+
false,
|
|
2879
|
+
ts18.ScriptKind.JSX
|
|
2880
|
+
);
|
|
2873
2881
|
}
|
|
2874
2882
|
|
|
2875
|
-
// bazel-out/
|
|
2883
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
2876
2884
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
2877
2885
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
2878
2886
|
function getTemplateId(clazz) {
|
|
@@ -2889,11 +2897,11 @@ function allocateTemplateId(sf) {
|
|
|
2889
2897
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
2890
2898
|
}
|
|
2891
2899
|
|
|
2892
|
-
// bazel-out/
|
|
2900
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2893
2901
|
import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
|
|
2894
2902
|
import ts20 from "typescript";
|
|
2895
2903
|
|
|
2896
|
-
// bazel-out/
|
|
2904
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
2897
2905
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
|
|
2898
2906
|
import ts19 from "typescript";
|
|
2899
2907
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
@@ -3024,7 +3032,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
3024
3032
|
}) || false;
|
|
3025
3033
|
}
|
|
3026
3034
|
|
|
3027
|
-
// bazel-out/
|
|
3035
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
3028
3036
|
var CompletionEngine = class {
|
|
3029
3037
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
3030
3038
|
this.tcb = tcb;
|
|
@@ -4201,10 +4209,10 @@ var MagicString = class {
|
|
|
4201
4209
|
}
|
|
4202
4210
|
};
|
|
4203
4211
|
|
|
4204
|
-
// bazel-out/
|
|
4212
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
4205
4213
|
import ts33 from "typescript";
|
|
4206
4214
|
|
|
4207
|
-
// bazel-out/
|
|
4215
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
4208
4216
|
import { DomElementSchemaRegistry } from "@angular/compiler";
|
|
4209
4217
|
import ts21 from "typescript";
|
|
4210
4218
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
@@ -4257,10 +4265,10 @@ var RegistryDomSchemaChecker = class {
|
|
|
4257
4265
|
}
|
|
4258
4266
|
};
|
|
4259
4267
|
|
|
4260
|
-
// bazel-out/
|
|
4268
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
4261
4269
|
import ts26 from "typescript";
|
|
4262
4270
|
|
|
4263
|
-
// bazel-out/
|
|
4271
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/reference_emit_environment.mjs
|
|
4264
4272
|
import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
|
|
4265
4273
|
var ReferenceEmitEnvironment = class {
|
|
4266
4274
|
constructor(importManager, refEmitter, reflector, contextFile) {
|
|
@@ -4291,7 +4299,7 @@ var ReferenceEmitEnvironment = class {
|
|
|
4291
4299
|
}
|
|
4292
4300
|
};
|
|
4293
4301
|
|
|
4294
|
-
// bazel-out/
|
|
4302
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
4295
4303
|
import ts22 from "typescript";
|
|
4296
4304
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
4297
4305
|
ts22.SyntaxKind.ParenthesizedExpression,
|
|
@@ -4374,15 +4382,15 @@ function tsNumericExpression(value) {
|
|
|
4374
4382
|
return ts22.factory.createNumericLiteral(value);
|
|
4375
4383
|
}
|
|
4376
4384
|
|
|
4377
|
-
// bazel-out/
|
|
4385
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
4378
4386
|
import { ExpressionType as ExpressionType2, R3Identifiers as R3Identifiers2, WrappedNodeExpr } from "@angular/compiler";
|
|
4379
4387
|
import ts25 from "typescript";
|
|
4380
4388
|
|
|
4381
|
-
// bazel-out/
|
|
4389
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
4382
4390
|
import { R3Identifiers } from "@angular/compiler";
|
|
4383
4391
|
import ts24 from "typescript";
|
|
4384
4392
|
|
|
4385
|
-
// bazel-out/
|
|
4393
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
4386
4394
|
import ts23 from "typescript";
|
|
4387
4395
|
var TypeParameterEmitter = class {
|
|
4388
4396
|
constructor(typeParameters, reflector) {
|
|
@@ -4460,7 +4468,7 @@ var TypeParameterEmitter = class {
|
|
|
4460
4468
|
}
|
|
4461
4469
|
};
|
|
4462
4470
|
|
|
4463
|
-
// bazel-out/
|
|
4471
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
4464
4472
|
var TCB_FILE_IMPORT_GRAPH_PREPARE_IDENTIFIERS = [
|
|
4465
4473
|
R3Identifiers.InputSignalBrandWriteType
|
|
4466
4474
|
];
|
|
@@ -4552,7 +4560,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
4552
4560
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
4553
4561
|
}
|
|
4554
4562
|
|
|
4555
|
-
// bazel-out/
|
|
4563
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
4556
4564
|
function generateTypeCtorDeclarationFn(env, meta, nodeTypeRef, typeParams) {
|
|
4557
4565
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
4558
4566
|
const rawType = ts25.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -4675,7 +4683,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
4675
4683
|
});
|
|
4676
4684
|
}
|
|
4677
4685
|
|
|
4678
|
-
// bazel-out/
|
|
4686
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
4679
4687
|
var Environment = class extends ReferenceEmitEnvironment {
|
|
4680
4688
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
4681
4689
|
super(importManager, refEmitter, reflector, contextFile);
|
|
@@ -4743,14 +4751,11 @@ var Environment = class extends ReferenceEmitEnvironment {
|
|
|
4743
4751
|
return emitter.emit((ref) => this.referenceType(ref));
|
|
4744
4752
|
}
|
|
4745
4753
|
getPreludeStatements() {
|
|
4746
|
-
return [
|
|
4747
|
-
...this.pipeInstStatements,
|
|
4748
|
-
...this.typeCtorStatements
|
|
4749
|
-
];
|
|
4754
|
+
return [...this.pipeInstStatements, ...this.typeCtorStatements];
|
|
4750
4755
|
}
|
|
4751
4756
|
};
|
|
4752
4757
|
|
|
4753
|
-
// bazel-out/
|
|
4758
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
4754
4759
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan3, TmplAstElement as TmplAstElement2 } from "@angular/compiler";
|
|
4755
4760
|
import ts27 from "typescript";
|
|
4756
4761
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
@@ -4808,12 +4813,14 @@ var OutOfBandDiagnosticRecorderImpl = class {
|
|
|
4808
4813
|
duplicateTemplateVar(templateId, variable, firstDecl) {
|
|
4809
4814
|
const mapping = this.resolver.getSourceMapping(templateId);
|
|
4810
4815
|
const errorMsg = `Cannot redeclare variable '${variable.name}' as it was previously declared elsewhere for the same template.`;
|
|
4811
|
-
this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, variable.sourceSpan, ts27.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DUPLICATE_VARIABLE_DECLARATION), errorMsg, [
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4816
|
+
this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, variable.sourceSpan, ts27.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DUPLICATE_VARIABLE_DECLARATION), errorMsg, [
|
|
4817
|
+
{
|
|
4818
|
+
text: `The variable '${firstDecl.name}' was first declared here.`,
|
|
4819
|
+
start: firstDecl.sourceSpan.start.offset,
|
|
4820
|
+
end: firstDecl.sourceSpan.end.offset,
|
|
4821
|
+
sourceFile: mapping.node.getSourceFile()
|
|
4822
|
+
}
|
|
4823
|
+
]));
|
|
4817
4824
|
}
|
|
4818
4825
|
requiresInlineTcb(templateId, node) {
|
|
4819
4826
|
this._diagnostics.push(makeInlineDiagnostic(templateId, ErrorCode.INLINE_TCB_REQUIRED, node.name, `This component requires inline template type-checking, which is not supported by the current environment.`));
|
|
@@ -4831,7 +4838,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
|
|
|
4831
4838
|
const mapping = this.resolver.getSourceMapping(templateId);
|
|
4832
4839
|
let diagnosticVar = null;
|
|
4833
4840
|
for (const variable of variables) {
|
|
4834
|
-
if (diagnosticVar === null ||
|
|
4841
|
+
if (diagnosticVar === null || variable.value === "" || variable.value === "$implicit") {
|
|
4835
4842
|
diagnosticVar = variable;
|
|
4836
4843
|
}
|
|
4837
4844
|
}
|
|
@@ -4931,7 +4938,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
4931
4938
|
};
|
|
4932
4939
|
}
|
|
4933
4940
|
|
|
4934
|
-
// bazel-out/
|
|
4941
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
4935
4942
|
import ts28 from "typescript";
|
|
4936
4943
|
var TypeCheckShimGenerator = class {
|
|
4937
4944
|
constructor() {
|
|
@@ -4949,11 +4956,11 @@ var TypeCheckShimGenerator = class {
|
|
|
4949
4956
|
}
|
|
4950
4957
|
};
|
|
4951
4958
|
|
|
4952
|
-
// bazel-out/
|
|
4959
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
4953
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";
|
|
4954
4961
|
import ts31 from "typescript";
|
|
4955
4962
|
|
|
4956
|
-
// bazel-out/
|
|
4963
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
4957
4964
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan4 } from "@angular/compiler";
|
|
4958
4965
|
import ts29 from "typescript";
|
|
4959
4966
|
function wrapForDiagnostics(expr) {
|
|
@@ -4969,7 +4976,12 @@ function addParseSpanInfo(node, span) {
|
|
|
4969
4976
|
} else {
|
|
4970
4977
|
commentText = `${span.start.offset},${span.end.offset}`;
|
|
4971
4978
|
}
|
|
4972
|
-
ts29.addSyntheticTrailingComment(
|
|
4979
|
+
ts29.addSyntheticTrailingComment(
|
|
4980
|
+
node,
|
|
4981
|
+
ts29.SyntaxKind.MultiLineCommentTrivia,
|
|
4982
|
+
commentText,
|
|
4983
|
+
false
|
|
4984
|
+
);
|
|
4973
4985
|
}
|
|
4974
4986
|
function addTemplateId(tcb, id) {
|
|
4975
4987
|
ts29.addSyntheticLeadingComment(tcb, ts29.SyntaxKind.MultiLineCommentTrivia, id, true);
|
|
@@ -4991,7 +5003,12 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
4991
5003
|
if (diagnostic.file === void 0 || diagnostic.start === void 0) {
|
|
4992
5004
|
return null;
|
|
4993
5005
|
}
|
|
4994
|
-
const fullMapping = getTemplateMapping(
|
|
5006
|
+
const fullMapping = getTemplateMapping(
|
|
5007
|
+
diagnostic.file,
|
|
5008
|
+
diagnostic.start,
|
|
5009
|
+
resolver,
|
|
5010
|
+
true
|
|
5011
|
+
);
|
|
4995
5012
|
if (fullMapping === null) {
|
|
4996
5013
|
return null;
|
|
4997
5014
|
}
|
|
@@ -4999,7 +5016,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
4999
5016
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
5000
5017
|
}
|
|
5001
5018
|
|
|
5002
|
-
// bazel-out/
|
|
5019
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
5003
5020
|
import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
|
|
5004
5021
|
import ts30 from "typescript";
|
|
5005
5022
|
var NULL_AS_ANY = ts30.factory.createAsExpression(ts30.factory.createNull(), ts30.factory.createKeywordTypeNode(ts30.SyntaxKind.AnyKeyword));
|
|
@@ -5332,7 +5349,7 @@ var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
|
|
|
5332
5349
|
_VeSafeLhsInferenceBugDetector.SINGLETON = new _VeSafeLhsInferenceBugDetector();
|
|
5333
5350
|
})();
|
|
5334
5351
|
|
|
5335
|
-
// bazel-out/
|
|
5352
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
5336
5353
|
var TcbGenericContextBehavior;
|
|
5337
5354
|
(function(TcbGenericContextBehavior2) {
|
|
5338
5355
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -5368,11 +5385,10 @@ function generateTypeCheckBlock(env, ref, name, meta, domSchemaChecker, oobRecor
|
|
|
5368
5385
|
}
|
|
5369
5386
|
const paramList = [tcbThisParam(ctxRawType.typeName, typeArguments)];
|
|
5370
5387
|
const scopeStatements = scope.render();
|
|
5371
|
-
const innerBody = ts31.factory.createBlock([
|
|
5372
|
-
|
|
5373
|
-
|
|
5388
|
+
const innerBody = ts31.factory.createBlock([...env.getPreludeStatements(), ...scopeStatements]);
|
|
5389
|
+
const body = ts31.factory.createBlock([
|
|
5390
|
+
ts31.factory.createIfStatement(ts31.factory.createTrue(), innerBody, void 0)
|
|
5374
5391
|
]);
|
|
5375
|
-
const body = ts31.factory.createBlock([ts31.factory.createIfStatement(ts31.factory.createTrue(), innerBody, void 0)]);
|
|
5376
5392
|
const fnDecl = ts31.factory.createFunctionDeclaration(
|
|
5377
5393
|
void 0,
|
|
5378
5394
|
void 0,
|
|
@@ -5510,7 +5526,10 @@ var TcbTemplateBodyOp = class extends TcbOp {
|
|
|
5510
5526
|
}
|
|
5511
5527
|
let tmplBlock = ts31.factory.createBlock(statements);
|
|
5512
5528
|
if (guard !== null) {
|
|
5513
|
-
tmplBlock = ts31.factory.createIfStatement(
|
|
5529
|
+
tmplBlock = ts31.factory.createIfStatement(
|
|
5530
|
+
guard,
|
|
5531
|
+
tmplBlock
|
|
5532
|
+
);
|
|
5514
5533
|
}
|
|
5515
5534
|
this.scope.addStatement(tmplBlock);
|
|
5516
5535
|
return null;
|
|
@@ -5777,7 +5796,11 @@ var TcbDirectiveCtorCircularFallbackOp = class extends TcbOp {
|
|
|
5777
5796
|
execute() {
|
|
5778
5797
|
const id = this.tcb.allocateId();
|
|
5779
5798
|
const typeCtor = this.tcb.env.typeCtorFor(this.dir);
|
|
5780
|
-
const circularPlaceholder = ts31.factory.createCallExpression(
|
|
5799
|
+
const circularPlaceholder = ts31.factory.createCallExpression(
|
|
5800
|
+
typeCtor,
|
|
5801
|
+
void 0,
|
|
5802
|
+
[ts31.factory.createNonNullExpression(ts31.factory.createNull())]
|
|
5803
|
+
);
|
|
5781
5804
|
this.scope.addStatement(tsCreateVariable(id, circularPlaceholder));
|
|
5782
5805
|
return id;
|
|
5783
5806
|
}
|
|
@@ -5963,7 +5986,9 @@ var TcbDirectiveOutputsOp = class extends TcbOp {
|
|
|
5963
5986
|
if (this.tcb.env.config.checkTypeOfOutputEvents) {
|
|
5964
5987
|
const handler = tcbCreateEventHandler(output, this.tcb, this.scope, 0);
|
|
5965
5988
|
const subscribeFn = ts31.factory.createPropertyAccessExpression(outputField, "subscribe");
|
|
5966
|
-
const call = ts31.factory.createCallExpression(subscribeFn, void 0, [
|
|
5989
|
+
const call = ts31.factory.createCallExpression(subscribeFn, void 0, [
|
|
5990
|
+
handler
|
|
5991
|
+
]);
|
|
5967
5992
|
addParseSpanInfo(call, output.sourceSpan);
|
|
5968
5993
|
this.scope.addStatement(ts31.factory.createExpressionStatement(call));
|
|
5969
5994
|
} else {
|
|
@@ -6099,16 +6124,20 @@ var TcbIfOp = class extends TcbOp {
|
|
|
6099
6124
|
return void 0;
|
|
6100
6125
|
}
|
|
6101
6126
|
if (branch.expression === null) {
|
|
6102
|
-
const branchScope =
|
|
6127
|
+
const branchScope = this.getBranchScope(this.scope, branch, index);
|
|
6103
6128
|
return ts31.factory.createBlock(branchScope.render());
|
|
6104
6129
|
}
|
|
6105
6130
|
const expressionScope = Scope.forNodes(this.tcb, this.scope, branch, [], null);
|
|
6106
6131
|
expressionScope.render().forEach((stmt) => this.scope.addStatement(stmt));
|
|
6107
6132
|
this.expressionScopes.set(branch, expressionScope);
|
|
6108
6133
|
const expression = branch.expressionAlias === null ? tcbExpression(branch.expression, this.tcb, expressionScope) : expressionScope.resolve(branch.expressionAlias);
|
|
6109
|
-
const bodyScope =
|
|
6134
|
+
const bodyScope = this.getBranchScope(expressionScope, branch, index);
|
|
6110
6135
|
return ts31.factory.createIfStatement(expression, ts31.factory.createBlock(bodyScope.render()), this.generateBranch(index + 1));
|
|
6111
6136
|
}
|
|
6137
|
+
getBranchScope(parentScope, branch, index) {
|
|
6138
|
+
const checkBody = this.tcb.env.config.checkControlFlowBodies;
|
|
6139
|
+
return Scope.forNodes(this.tcb, parentScope, null, checkBody ? branch.children : [], checkBody ? this.generateBranchGuard(index) : null);
|
|
6140
|
+
}
|
|
6112
6141
|
generateBranchGuard(index) {
|
|
6113
6142
|
let guard = null;
|
|
6114
6143
|
for (let i = 0; i <= index; i++) {
|
|
@@ -6146,7 +6175,8 @@ var TcbSwitchOp = class extends TcbOp {
|
|
|
6146
6175
|
execute() {
|
|
6147
6176
|
const switchExpression = tcbExpression(this.block.expression, this.tcb, this.scope);
|
|
6148
6177
|
const clauses = this.block.cases.map((current) => {
|
|
6149
|
-
const
|
|
6178
|
+
const checkBody = this.tcb.env.config.checkControlFlowBodies;
|
|
6179
|
+
const clauseScope = Scope.forNodes(this.tcb, this.scope, null, checkBody ? current.children : [], checkBody ? this.generateGuard(current, switchExpression) : null);
|
|
6150
6180
|
const statements = [...clauseScope.render(), ts31.factory.createBreakStatement()];
|
|
6151
6181
|
return current.expression === null ? ts31.factory.createDefaultClause(statements) : ts31.factory.createCaseClause(tcbExpression(current.expression, this.tcb, clauseScope), statements);
|
|
6152
6182
|
});
|
|
@@ -6187,7 +6217,7 @@ var TcbForOfOp = class extends TcbOp {
|
|
|
6187
6217
|
return false;
|
|
6188
6218
|
}
|
|
6189
6219
|
execute() {
|
|
6190
|
-
const loopScope = Scope.forNodes(this.tcb, this.scope, this.block, this.block.children, null);
|
|
6220
|
+
const loopScope = Scope.forNodes(this.tcb, this.scope, this.block, this.tcb.env.config.checkControlFlowBodies ? this.block.children : [], null);
|
|
6191
6221
|
const initializerId = loopScope.resolve(this.block.item);
|
|
6192
6222
|
if (!ts31.isIdentifier(initializerId)) {
|
|
6193
6223
|
throw new Error(`Could not resolve for loop variable ${this.block.item.name} to an identifier`);
|
|
@@ -6398,7 +6428,7 @@ var _Scope = class {
|
|
|
6398
6428
|
this.opQueue.push(new TcbSwitchOp(this.tcb, this, node));
|
|
6399
6429
|
} else if (node instanceof TmplAstForLoopBlock) {
|
|
6400
6430
|
this.opQueue.push(new TcbForOfOp(this.tcb, this, node));
|
|
6401
|
-
node.empty && this.appendChildren(node.empty);
|
|
6431
|
+
node.empty && this.tcb.env.config.checkControlFlowBodies && this.appendChildren(node.empty);
|
|
6402
6432
|
} else if (node instanceof TmplAstBoundText) {
|
|
6403
6433
|
this.opQueue.push(new TcbExpressionOp(this.tcb, this, node.value));
|
|
6404
6434
|
} else if (node instanceof TmplAstIcu) {
|
|
@@ -6840,7 +6870,7 @@ var TcbForLoopTrackTranslator = class extends TcbExpressionTranslator {
|
|
|
6840
6870
|
}
|
|
6841
6871
|
};
|
|
6842
6872
|
|
|
6843
|
-
// bazel-out/
|
|
6873
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
6844
6874
|
import ts32 from "typescript";
|
|
6845
6875
|
var TypeCheckFile = class extends Environment {
|
|
6846
6876
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -6888,7 +6918,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
6888
6918
|
}
|
|
6889
6919
|
};
|
|
6890
6920
|
|
|
6891
|
-
// bazel-out/
|
|
6921
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
6892
6922
|
var InliningMode;
|
|
6893
6923
|
(function(InliningMode2) {
|
|
6894
6924
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -7140,10 +7170,10 @@ var TypeCtorOp = class {
|
|
|
7140
7170
|
}
|
|
7141
7171
|
};
|
|
7142
7172
|
|
|
7143
|
-
// bazel-out/
|
|
7173
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
7144
7174
|
import { ParseLocation, ParseSourceSpan } from "@angular/compiler";
|
|
7145
7175
|
|
|
7146
|
-
// bazel-out/
|
|
7176
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
7147
7177
|
var LF_CHAR = 10;
|
|
7148
7178
|
var CR_CHAR = 13;
|
|
7149
7179
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -7184,7 +7214,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
7184
7214
|
return low - 1;
|
|
7185
7215
|
}
|
|
7186
7216
|
|
|
7187
|
-
// bazel-out/
|
|
7217
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
7188
7218
|
var TemplateSource = class {
|
|
7189
7219
|
constructor(mapping, file) {
|
|
7190
7220
|
this.mapping = mapping;
|
|
@@ -7235,7 +7265,7 @@ var TemplateSourceManager = class {
|
|
|
7235
7265
|
}
|
|
7236
7266
|
};
|
|
7237
7267
|
|
|
7238
|
-
// bazel-out/
|
|
7268
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
7239
7269
|
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";
|
|
7240
7270
|
import ts34 from "typescript";
|
|
7241
7271
|
var SymbolBuilder = class {
|
|
@@ -7281,7 +7311,10 @@ var SymbolBuilder = class {
|
|
|
7281
7311
|
getSymbolOfElement(element) {
|
|
7282
7312
|
var _a;
|
|
7283
7313
|
const elementSourceSpan = (_a = element.startSourceSpan) != null ? _a : element.sourceSpan;
|
|
7284
|
-
const node = findFirstMatchingNode(this.typeCheckBlock, {
|
|
7314
|
+
const node = findFirstMatchingNode(this.typeCheckBlock, {
|
|
7315
|
+
withSpan: elementSourceSpan,
|
|
7316
|
+
filter: ts34.isVariableDeclaration
|
|
7317
|
+
});
|
|
7285
7318
|
if (node === null) {
|
|
7286
7319
|
return null;
|
|
7287
7320
|
}
|
|
@@ -7302,7 +7335,10 @@ var SymbolBuilder = class {
|
|
|
7302
7335
|
const elementSourceSpan = (_a = element.startSourceSpan) != null ? _a : element.sourceSpan;
|
|
7303
7336
|
const tcbSourceFile = this.typeCheckBlock.getSourceFile();
|
|
7304
7337
|
const isDirectiveDeclaration = (node) => (ts34.isTypeNode(node) || ts34.isIdentifier(node)) && ts34.isVariableDeclaration(node.parent) && hasExpressionIdentifier(tcbSourceFile, node, ExpressionIdentifier.DIRECTIVE);
|
|
7305
|
-
const nodes = findAllMatchingNodes(this.typeCheckBlock, {
|
|
7338
|
+
const nodes = findAllMatchingNodes(this.typeCheckBlock, {
|
|
7339
|
+
withSpan: elementSourceSpan,
|
|
7340
|
+
filter: isDirectiveDeclaration
|
|
7341
|
+
});
|
|
7306
7342
|
const symbols = [];
|
|
7307
7343
|
for (const node of nodes) {
|
|
7308
7344
|
const symbol = this.getSymbolOfTsNode(node.parent);
|
|
@@ -7416,7 +7452,10 @@ var SymbolBuilder = class {
|
|
|
7416
7452
|
return ts34.isStringLiteral(n2.argumentExpression) && n2.argumentExpression.text === expectedAccess;
|
|
7417
7453
|
}
|
|
7418
7454
|
}
|
|
7419
|
-
const outputFieldAccesses = findAllMatchingNodes(this.typeCheckBlock, {
|
|
7455
|
+
const outputFieldAccesses = findAllMatchingNodes(this.typeCheckBlock, {
|
|
7456
|
+
withSpan: eventBinding.keySpan,
|
|
7457
|
+
filter
|
|
7458
|
+
});
|
|
7420
7459
|
const bindings = [];
|
|
7421
7460
|
for (const outputFieldAccess of outputFieldAccesses) {
|
|
7422
7461
|
if (consumer instanceof TmplAstTemplate3 || consumer instanceof TmplAstElement4) {
|
|
@@ -7484,7 +7523,10 @@ var SymbolBuilder = class {
|
|
|
7484
7523
|
const host = this.getSymbol(consumer);
|
|
7485
7524
|
return host !== null ? { kind: SymbolKind.DomBinding, host } : null;
|
|
7486
7525
|
}
|
|
7487
|
-
const nodes = findAllMatchingNodes(this.typeCheckBlock, {
|
|
7526
|
+
const nodes = findAllMatchingNodes(this.typeCheckBlock, {
|
|
7527
|
+
withSpan: binding.sourceSpan,
|
|
7528
|
+
filter: isAssignment
|
|
7529
|
+
});
|
|
7488
7530
|
const bindings = [];
|
|
7489
7531
|
for (const node of nodes) {
|
|
7490
7532
|
if (!isAccessExpression(node.left)) {
|
|
@@ -7557,7 +7599,10 @@ var SymbolBuilder = class {
|
|
|
7557
7599
|
};
|
|
7558
7600
|
}
|
|
7559
7601
|
getSymbolOfVariable(variable) {
|
|
7560
|
-
const node = findFirstMatchingNode(this.typeCheckBlock, {
|
|
7602
|
+
const node = findFirstMatchingNode(this.typeCheckBlock, {
|
|
7603
|
+
withSpan: variable.sourceSpan,
|
|
7604
|
+
filter: ts34.isVariableDeclaration
|
|
7605
|
+
});
|
|
7561
7606
|
if (node === null) {
|
|
7562
7607
|
return null;
|
|
7563
7608
|
}
|
|
@@ -7585,7 +7630,10 @@ var SymbolBuilder = class {
|
|
|
7585
7630
|
}
|
|
7586
7631
|
getSymbolOfReference(ref) {
|
|
7587
7632
|
const target = this.templateData.boundTarget.getReferenceTarget(ref);
|
|
7588
|
-
let node = findFirstMatchingNode(this.typeCheckBlock, {
|
|
7633
|
+
let node = findFirstMatchingNode(this.typeCheckBlock, {
|
|
7634
|
+
withSpan: ref.sourceSpan,
|
|
7635
|
+
filter: ts34.isVariableDeclaration
|
|
7636
|
+
});
|
|
7589
7637
|
if (node === null || target === null || node.initializer === void 0) {
|
|
7590
7638
|
return null;
|
|
7591
7639
|
}
|
|
@@ -7628,7 +7676,10 @@ var SymbolBuilder = class {
|
|
|
7628
7676
|
}
|
|
7629
7677
|
}
|
|
7630
7678
|
getSymbolOfPipe(expression) {
|
|
7631
|
-
const methodAccess = findFirstMatchingNode(this.typeCheckBlock, {
|
|
7679
|
+
const methodAccess = findFirstMatchingNode(this.typeCheckBlock, {
|
|
7680
|
+
withSpan: expression.nameSpan,
|
|
7681
|
+
filter: ts34.isPropertyAccessExpression
|
|
7682
|
+
});
|
|
7632
7683
|
if (methodAccess === null) {
|
|
7633
7684
|
return null;
|
|
7634
7685
|
}
|
|
@@ -7668,7 +7719,10 @@ var SymbolBuilder = class {
|
|
|
7668
7719
|
}
|
|
7669
7720
|
let node = null;
|
|
7670
7721
|
if (expression instanceof PropertyRead5) {
|
|
7671
|
-
node = findFirstMatchingNode(this.typeCheckBlock, {
|
|
7722
|
+
node = findFirstMatchingNode(this.typeCheckBlock, {
|
|
7723
|
+
withSpan,
|
|
7724
|
+
filter: ts34.isPropertyAccessExpression
|
|
7725
|
+
});
|
|
7672
7726
|
}
|
|
7673
7727
|
if (node === null) {
|
|
7674
7728
|
node = findFirstMatchingNode(this.typeCheckBlock, { withSpan, filter: anyNodeFilter });
|
|
@@ -7753,7 +7807,7 @@ function unwrapSignalInputWriteTAccessor(expr) {
|
|
|
7753
7807
|
};
|
|
7754
7808
|
}
|
|
7755
7809
|
|
|
7756
|
-
// bazel-out/
|
|
7810
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
7757
7811
|
var REGISTRY2 = new DomElementSchemaRegistry2();
|
|
7758
7812
|
var TemplateTypeCheckerImpl = class {
|
|
7759
7813
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -8454,10 +8508,10 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
8454
8508
|
}
|
|
8455
8509
|
};
|
|
8456
8510
|
|
|
8457
|
-
// bazel-out/
|
|
8511
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
8458
8512
|
import { Interpolation, PropertyRead as PropertyRead6 } from "@angular/compiler";
|
|
8459
8513
|
|
|
8460
|
-
// bazel-out/
|
|
8514
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/symbol_util.mjs
|
|
8461
8515
|
import ts35 from "typescript";
|
|
8462
8516
|
var SIGNAL_FNS = /* @__PURE__ */ new Set([
|
|
8463
8517
|
"WritableSignal",
|
|
@@ -8477,7 +8531,7 @@ function isSignalSymbol(symbol) {
|
|
|
8477
8531
|
});
|
|
8478
8532
|
}
|
|
8479
8533
|
|
|
8480
|
-
// bazel-out/
|
|
8534
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
8481
8535
|
import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstBoundDeferredTrigger as TmplAstBoundDeferredTrigger2 } from "@angular/compiler";
|
|
8482
8536
|
var TemplateCheckWithVisitor = class {
|
|
8483
8537
|
run(ctx, component, template) {
|
|
@@ -8602,7 +8656,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
|
8602
8656
|
}
|
|
8603
8657
|
};
|
|
8604
8658
|
|
|
8605
|
-
// bazel-out/
|
|
8659
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
8606
8660
|
var SIGNAL_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["set", "update", "asReadonly"]);
|
|
8607
8661
|
var FUNCTION_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["name", "length", "prototype"]);
|
|
8608
8662
|
var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -8646,7 +8700,7 @@ var factory = {
|
|
|
8646
8700
|
create: () => new InterpolatedSignalCheck()
|
|
8647
8701
|
};
|
|
8648
8702
|
|
|
8649
|
-
// bazel-out/
|
|
8703
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
8650
8704
|
import { TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
|
|
8651
8705
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
8652
8706
|
constructor() {
|
|
@@ -8672,7 +8726,7 @@ var factory2 = {
|
|
|
8672
8726
|
create: () => new InvalidBananaInBoxCheck()
|
|
8673
8727
|
};
|
|
8674
8728
|
|
|
8675
|
-
// bazel-out/
|
|
8729
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
8676
8730
|
import { TmplAstTemplate as TmplAstTemplate4 } from "@angular/compiler";
|
|
8677
8731
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
8678
8732
|
["ngIf", { directive: "NgIf", builtIn: "@if" }],
|
|
@@ -8717,7 +8771,7 @@ var factory3 = {
|
|
|
8717
8771
|
}
|
|
8718
8772
|
};
|
|
8719
8773
|
|
|
8720
|
-
// bazel-out/
|
|
8774
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
8721
8775
|
import { TmplAstTemplate as TmplAstTemplate5 } from "@angular/compiler";
|
|
8722
8776
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
8723
8777
|
constructor() {
|
|
@@ -8750,7 +8804,7 @@ var factory4 = {
|
|
|
8750
8804
|
create: () => new MissingNgForOfLetCheck()
|
|
8751
8805
|
};
|
|
8752
8806
|
|
|
8753
|
-
// bazel-out/
|
|
8807
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
8754
8808
|
import { Binary } from "@angular/compiler";
|
|
8755
8809
|
import ts36 from "typescript";
|
|
8756
8810
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -8795,7 +8849,7 @@ var factory5 = {
|
|
|
8795
8849
|
}
|
|
8796
8850
|
};
|
|
8797
8851
|
|
|
8798
|
-
// bazel-out/
|
|
8852
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
8799
8853
|
import { SafeCall as SafeCall2, SafeKeyedRead as SafeKeyedRead2, SafePropertyRead as SafePropertyRead5 } from "@angular/compiler";
|
|
8800
8854
|
import ts37 from "typescript";
|
|
8801
8855
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -8841,7 +8895,7 @@ var factory6 = {
|
|
|
8841
8895
|
}
|
|
8842
8896
|
};
|
|
8843
8897
|
|
|
8844
|
-
// bazel-out/
|
|
8898
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
8845
8899
|
import { TmplAstBoundAttribute as TmplAstBoundAttribute3 } from "@angular/compiler";
|
|
8846
8900
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
8847
8901
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -8865,7 +8919,7 @@ var factory7 = {
|
|
|
8865
8919
|
create: () => new SuffixNotSupportedCheck()
|
|
8866
8920
|
};
|
|
8867
8921
|
|
|
8868
|
-
// bazel-out/
|
|
8922
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
8869
8923
|
import { TmplAstTextAttribute as TmplAstTextAttribute4 } from "@angular/compiler";
|
|
8870
8924
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
8871
8925
|
constructor() {
|
|
@@ -8904,10 +8958,10 @@ var factory8 = {
|
|
|
8904
8958
|
create: () => new TextAttributeNotBindingSpec()
|
|
8905
8959
|
};
|
|
8906
8960
|
|
|
8907
|
-
// bazel-out/
|
|
8961
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
8908
8962
|
import ts38 from "typescript";
|
|
8909
8963
|
|
|
8910
|
-
// bazel-out/
|
|
8964
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
8911
8965
|
var DiagnosticCategoryLabel;
|
|
8912
8966
|
(function(DiagnosticCategoryLabel2) {
|
|
8913
8967
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -8915,7 +8969,7 @@ var DiagnosticCategoryLabel;
|
|
|
8915
8969
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
8916
8970
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
8917
8971
|
|
|
8918
|
-
// bazel-out/
|
|
8972
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
8919
8973
|
var ExtendedTemplateCheckerImpl = class {
|
|
8920
8974
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
8921
8975
|
var _a, _b, _c, _d, _e;
|
|
@@ -8968,7 +9022,7 @@ function assertNever(value) {
|
|
|
8968
9022
|
${value}`);
|
|
8969
9023
|
}
|
|
8970
9024
|
|
|
8971
|
-
// bazel-out/
|
|
9025
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
8972
9026
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
8973
9027
|
factory2,
|
|
8974
9028
|
factory5,
|
|
@@ -8984,7 +9038,7 @@ var SUPPORTED_DIAGNOSTIC_NAMES = /* @__PURE__ */ new Set([
|
|
|
8984
9038
|
...ALL_DIAGNOSTIC_FACTORIES.map((factory9) => factory9.name)
|
|
8985
9039
|
]);
|
|
8986
9040
|
|
|
8987
|
-
// bazel-out/
|
|
9041
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/template_semantics/src/template_semantics_checker.mjs
|
|
8988
9042
|
import { ASTWithSource as ASTWithSource5, ImplicitReceiver as ImplicitReceiver4, ParsedEventType as ParsedEventType2, RecursiveAstVisitor as RecursiveAstVisitor3, TmplAstBoundEvent as TmplAstBoundEvent3, TmplAstRecursiveVisitor as TmplAstRecursiveVisitor2, TmplAstVariable as TmplAstVariable3 } from "@angular/compiler";
|
|
8989
9043
|
import ts39 from "typescript";
|
|
8990
9044
|
var TemplateSemanticsCheckerImpl = class {
|
|
@@ -9054,19 +9108,21 @@ var ExpressionsSemanticsVisitor = class extends RecursiveAstVisitor3 {
|
|
|
9054
9108
|
}
|
|
9055
9109
|
makeIllegalTemplateVarDiagnostic(target, expressionNode, errorMessage) {
|
|
9056
9110
|
var _a, _b;
|
|
9057
|
-
return this.templateTypeChecker.makeTemplateDiagnostic(this.component, expressionNode.handlerSpan, ts39.DiagnosticCategory.Error, ngErrorCode(ErrorCode.WRITE_TO_READ_ONLY_VARIABLE), errorMessage, [
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9111
|
+
return this.templateTypeChecker.makeTemplateDiagnostic(this.component, expressionNode.handlerSpan, ts39.DiagnosticCategory.Error, ngErrorCode(ErrorCode.WRITE_TO_READ_ONLY_VARIABLE), errorMessage, [
|
|
9112
|
+
{
|
|
9113
|
+
text: `The variable ${target.name} is declared here.`,
|
|
9114
|
+
start: ((_a = target.valueSpan) == null ? void 0 : _a.start.offset) || target.sourceSpan.start.offset,
|
|
9115
|
+
end: ((_b = target.valueSpan) == null ? void 0 : _b.end.offset) || target.sourceSpan.end.offset,
|
|
9116
|
+
sourceFile: this.component.getSourceFile()
|
|
9117
|
+
}
|
|
9118
|
+
]);
|
|
9063
9119
|
}
|
|
9064
9120
|
};
|
|
9065
9121
|
function unwrapAstWithSource(ast) {
|
|
9066
9122
|
return ast instanceof ASTWithSource5 ? ast.ast : ast;
|
|
9067
9123
|
}
|
|
9068
9124
|
|
|
9069
|
-
// bazel-out/
|
|
9125
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/rules/initializer_api_usage_rule.mjs
|
|
9070
9126
|
import ts40 from "typescript";
|
|
9071
9127
|
var APIS_TO_CHECK = [
|
|
9072
9128
|
INPUT_INITIALIZER_FN,
|
|
@@ -9117,7 +9173,7 @@ var InitializerApiUsageRule = class {
|
|
|
9117
9173
|
}
|
|
9118
9174
|
};
|
|
9119
9175
|
|
|
9120
|
-
// bazel-out/
|
|
9176
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/source_file_validator.mjs
|
|
9121
9177
|
var SourceFileValidator = class {
|
|
9122
9178
|
constructor(reflector, importedSymbolsTracker) {
|
|
9123
9179
|
this.rules = [new InitializerApiUsageRule(reflector, importedSymbolsTracker)];
|
|
@@ -9155,7 +9211,7 @@ var SourceFileValidator = class {
|
|
|
9155
9211
|
}
|
|
9156
9212
|
};
|
|
9157
9213
|
|
|
9158
|
-
// bazel-out/
|
|
9214
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/core_version.mjs
|
|
9159
9215
|
function coreHasSymbol(program, symbol) {
|
|
9160
9216
|
const checker = program.getTypeChecker();
|
|
9161
9217
|
for (const sf of program.getSourceFiles().filter(isMaybeCore)) {
|
|
@@ -9174,7 +9230,7 @@ function isMaybeCore(sf) {
|
|
|
9174
9230
|
return sf.isDeclarationFile && sf.fileName.includes("@angular/core") && sf.fileName.endsWith("index.d.ts");
|
|
9175
9231
|
}
|
|
9176
9232
|
|
|
9177
|
-
// bazel-out/
|
|
9233
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/feature_detection.mjs
|
|
9178
9234
|
import semver from "semver";
|
|
9179
9235
|
function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
9180
9236
|
if (coreVersion === `0.0.0-${"PLACEHOLDER"}`) {
|
|
@@ -9183,7 +9239,7 @@ function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
|
9183
9239
|
return semver.satisfies(coreVersion, minVersion);
|
|
9184
9240
|
}
|
|
9185
9241
|
|
|
9186
|
-
// bazel-out/
|
|
9242
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
9187
9243
|
var CompilationTicketKind;
|
|
9188
9244
|
(function(CompilationTicketKind2) {
|
|
9189
9245
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -9331,9 +9387,7 @@ var NgCompiler = class {
|
|
|
9331
9387
|
return this.incrementalCompilation.depGraph.getResourceDependencies(file);
|
|
9332
9388
|
}
|
|
9333
9389
|
getDiagnostics() {
|
|
9334
|
-
const diagnostics = [
|
|
9335
|
-
...this.getNonTemplateDiagnostics()
|
|
9336
|
-
];
|
|
9390
|
+
const diagnostics = [...this.getNonTemplateDiagnostics()];
|
|
9337
9391
|
try {
|
|
9338
9392
|
diagnostics.push(...this.getTemplateDiagnostics(), ...this.runAdditionalChecks());
|
|
9339
9393
|
} catch (err) {
|
|
@@ -9345,7 +9399,9 @@ var NgCompiler = class {
|
|
|
9345
9399
|
return this.addMessageTextDetails(diagnostics);
|
|
9346
9400
|
}
|
|
9347
9401
|
getDiagnosticsForFile(file, optimizeFor) {
|
|
9348
|
-
const diagnostics = [
|
|
9402
|
+
const diagnostics = [
|
|
9403
|
+
...this.getNonTemplateDiagnostics().filter((diag) => diag.file === file)
|
|
9404
|
+
];
|
|
9349
9405
|
try {
|
|
9350
9406
|
diagnostics.push(...this.getTemplateDiagnosticsForFile(file, optimizeFor), ...this.runAdditionalChecks(file));
|
|
9351
9407
|
} catch (err) {
|
|
@@ -9545,6 +9601,7 @@ var NgCompiler = class {
|
|
|
9545
9601
|
alwaysCheckSchemaInTemplateBodies: true,
|
|
9546
9602
|
checkTypeOfInputBindings: strictTemplates,
|
|
9547
9603
|
honorAccessModifiersForInputBindings: false,
|
|
9604
|
+
checkControlFlowBodies: true,
|
|
9548
9605
|
strictNullInputBindings: strictTemplates,
|
|
9549
9606
|
checkTypeOfAttributes: strictTemplates,
|
|
9550
9607
|
checkTypeOfDomBindings: false,
|
|
@@ -9568,6 +9625,7 @@ var NgCompiler = class {
|
|
|
9568
9625
|
applyTemplateContextGuards: false,
|
|
9569
9626
|
checkQueries: false,
|
|
9570
9627
|
checkTemplateBodies: false,
|
|
9628
|
+
checkControlFlowBodies: false,
|
|
9571
9629
|
alwaysCheckSchemaInTemplateBodies: this.closureCompilerEnabled,
|
|
9572
9630
|
checkTypeOfInputBindings: false,
|
|
9573
9631
|
strictNullInputBindings: false,
|
|
@@ -9744,7 +9802,10 @@ var NgCompiler = class {
|
|
|
9744
9802
|
const ngModuleIndex = new NgModuleIndexImpl(metaReader, localMetaReader);
|
|
9745
9803
|
const ngModuleScopeRegistry = new LocalModuleScopeRegistry(localMetaReader, metaReader, depScopeReader, refEmitter, aliasingHost);
|
|
9746
9804
|
const standaloneScopeReader = new StandaloneComponentScopeReader(metaReader, ngModuleScopeRegistry, depScopeReader);
|
|
9747
|
-
const scopeReader = new CompoundComponentScopeReader([
|
|
9805
|
+
const scopeReader = new CompoundComponentScopeReader([
|
|
9806
|
+
ngModuleScopeRegistry,
|
|
9807
|
+
standaloneScopeReader
|
|
9808
|
+
]);
|
|
9748
9809
|
const semanticDepGraphUpdater = this.incrementalCompilation.semanticDepGraphUpdater;
|
|
9749
9810
|
const metaRegistry = new CompoundMetadataRegistry([localMetaRegistry, ngModuleScopeRegistry]);
|
|
9750
9811
|
const injectableRegistry = new InjectableClassRegistry(reflector, isCore);
|
|
@@ -9976,7 +10037,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
9976
10037
|
return versions;
|
|
9977
10038
|
}
|
|
9978
10039
|
|
|
9979
|
-
// bazel-out/
|
|
10040
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
9980
10041
|
import ts42 from "typescript";
|
|
9981
10042
|
var DelegatingCompilerHost2 = class {
|
|
9982
10043
|
get jsDocParsingMode() {
|
|
@@ -10115,7 +10176,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
10115
10176
|
}
|
|
10116
10177
|
};
|
|
10117
10178
|
|
|
10118
|
-
// bazel-out/
|
|
10179
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
10119
10180
|
var NgtscProgram = class {
|
|
10120
10181
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
10121
10182
|
this.options = options;
|
|
@@ -10342,15 +10403,15 @@ function mergeEmitResults(emitResults) {
|
|
|
10342
10403
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
10343
10404
|
}
|
|
10344
10405
|
|
|
10345
|
-
// bazel-out/
|
|
10406
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
10346
10407
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
10347
10408
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
10348
10409
|
}
|
|
10349
10410
|
|
|
10350
|
-
// bazel-out/
|
|
10411
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
10351
10412
|
import ts45 from "typescript";
|
|
10352
10413
|
|
|
10353
|
-
// bazel-out/
|
|
10414
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
10354
10415
|
import ts44 from "typescript";
|
|
10355
10416
|
function createMessageDiagnostic(messageText) {
|
|
10356
10417
|
return {
|
|
@@ -10364,7 +10425,7 @@ function createMessageDiagnostic(messageText) {
|
|
|
10364
10425
|
};
|
|
10365
10426
|
}
|
|
10366
10427
|
|
|
10367
|
-
// bazel-out/
|
|
10428
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
10368
10429
|
var defaultFormatHost = {
|
|
10369
10430
|
getCurrentDirectory: () => ts45.sys.getCurrentDirectory(),
|
|
10370
10431
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -10434,15 +10495,17 @@ function readConfiguration(project, existingOptions, host = getFileSystem()) {
|
|
|
10434
10495
|
}
|
|
10435
10496
|
return { project: projectFile, rootNames, projectReferences, options, errors, emitFlags };
|
|
10436
10497
|
} catch (e) {
|
|
10437
|
-
const errors = [
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10498
|
+
const errors = [
|
|
10499
|
+
{
|
|
10500
|
+
category: ts45.DiagnosticCategory.Error,
|
|
10501
|
+
messageText: (_a = e.stack) != null ? _a : e.message,
|
|
10502
|
+
file: void 0,
|
|
10503
|
+
start: void 0,
|
|
10504
|
+
length: void 0,
|
|
10505
|
+
source: "angular",
|
|
10506
|
+
code: UNKNOWN_ERROR_CODE
|
|
10507
|
+
}
|
|
10508
|
+
];
|
|
10446
10509
|
return { project: "", errors, rootNames: [], options: {}, emitFlags: EmitFlags.Default };
|
|
10447
10510
|
}
|
|
10448
10511
|
}
|
|
@@ -10504,7 +10567,13 @@ function performCompilation({ rootNames, options, host, oldProgram, emitCallback
|
|
|
10504
10567
|
allDiagnostics.push(createMessageDiagnostic(`Time for diagnostics: ${afterDiags - beforeDiags}ms.`));
|
|
10505
10568
|
}
|
|
10506
10569
|
if (!hasErrors(allDiagnostics)) {
|
|
10507
|
-
emitResult = program.emit({
|
|
10570
|
+
emitResult = program.emit({
|
|
10571
|
+
emitCallback,
|
|
10572
|
+
mergeEmitResultsCallback,
|
|
10573
|
+
customTransformers,
|
|
10574
|
+
emitFlags,
|
|
10575
|
+
forceEmit
|
|
10576
|
+
});
|
|
10508
10577
|
allDiagnostics.push(...emitResult.diagnostics);
|
|
10509
10578
|
return { diagnostics: allDiagnostics, program, emitResult };
|
|
10510
10579
|
}
|
|
@@ -10534,7 +10603,10 @@ function defaultGatherDiagnostics(program) {
|
|
|
10534
10603
|
let checkOtherDiagnostics = true;
|
|
10535
10604
|
checkOtherDiagnostics = checkOtherDiagnostics && checkDiagnostics([...program.getTsOptionDiagnostics(), ...program.getNgOptionDiagnostics()]);
|
|
10536
10605
|
checkOtherDiagnostics = checkOtherDiagnostics && checkDiagnostics(program.getTsSyntacticDiagnostics());
|
|
10537
|
-
checkOtherDiagnostics = checkOtherDiagnostics && checkDiagnostics([
|
|
10606
|
+
checkOtherDiagnostics = checkOtherDiagnostics && checkDiagnostics([
|
|
10607
|
+
...program.getTsSemanticDiagnostics(),
|
|
10608
|
+
...program.getNgStructuralDiagnostics()
|
|
10609
|
+
]);
|
|
10538
10610
|
checkOtherDiagnostics = checkOtherDiagnostics && checkDiagnostics(program.getNgSemanticDiagnostics());
|
|
10539
10611
|
return allDiagnostics;
|
|
10540
10612
|
}
|
|
@@ -10586,4 +10658,4 @@ export {
|
|
|
10586
10658
|
* Use of this source code is governed by an MIT-style license that can be
|
|
10587
10659
|
* found in the LICENSE file at https://angular.io/license
|
|
10588
10660
|
*/
|
|
10589
|
-
//# sourceMappingURL=chunk-
|
|
10661
|
+
//# sourceMappingURL=chunk-XAPDG6EU.js.map
|