@angular/compiler-cli 20.0.0-next.0 → 20.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/{chunk-STORTTKY.js → chunk-37JMVF7H.js} +8 -8
- package/bundles/{chunk-5UDS2TPQ.js → chunk-77D5CI2U.js} +7 -7
- package/bundles/{chunk-5B64KRP2.js → chunk-7HRFJETP.js} +49 -42
- package/bundles/{chunk-5B64KRP2.js.map → chunk-7HRFJETP.js.map} +1 -1
- package/bundles/{chunk-NSLVDBJJ.js → chunk-B73DMM7T.js} +5 -5
- package/bundles/{chunk-2MJ6YSB2.js → chunk-CD575TJ6.js} +406 -333
- package/bundles/chunk-CD575TJ6.js.map +6 -0
- package/bundles/{chunk-GBKXY6BH.js → chunk-FKXFEX7K.js} +3 -3
- package/bundles/{chunk-HXSKCJMP.js → chunk-FVYXSSAL.js} +3 -3
- package/bundles/{chunk-KDHDNSXW.js → chunk-PAYJFU4V.js} +12 -12
- package/bundles/{chunk-I6R3GL3L.js → chunk-Q2WE7ECN.js} +5 -5
- package/bundles/{chunk-UCG5K4BI.js → chunk-RFDMMGNB.js} +289 -257
- package/bundles/chunk-RFDMMGNB.js.map +6 -0
- package/bundles/{chunk-SXMUFI7N.js → chunk-SWJRL4N4.js} +33 -33
- package/bundles/index.js +15 -15
- package/bundles/linker/babel/index.js +12 -12
- package/bundles/linker/index.js +4 -4
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +6 -6
- package/bundles/private/tooling.js +6 -6
- 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 +3 -4
- package/private/migrations.d.ts +1 -1
- package/src/ngtsc/annotations/common/src/evaluation.d.ts +1 -1
- package/src/ngtsc/annotations/common/src/util.d.ts +19 -2
- package/src/ngtsc/annotations/component/src/metadata.d.ts +2 -2
- package/src/ngtsc/annotations/component/src/resources.d.ts +3 -2
- package/src/ngtsc/annotations/index.d.ts +1 -1
- package/src/ngtsc/core/api/src/options.d.ts +8 -0
- package/src/ngtsc/core/src/compiler.d.ts +3 -3
- package/src/ngtsc/docs/src/function_extractor.d.ts +1 -1
- package/src/ngtsc/hmr/src/update_declaration.d.ts +3 -2
- package/src/ngtsc/metadata/index.d.ts +1 -1
- package/src/ngtsc/metadata/src/resource_registry.d.ts +9 -8
- package/src/ngtsc/translator/src/translator.d.ts +1 -0
- package/src/ngtsc/typecheck/api/api.d.ts +22 -24
- package/src/ngtsc/typecheck/api/checker.d.ts +3 -3
- package/src/ngtsc/typecheck/api/context.d.ts +26 -17
- package/src/ngtsc/typecheck/diagnostics/src/diagnostic.d.ts +2 -2
- package/src/ngtsc/typecheck/diagnostics/src/id.d.ts +2 -2
- package/src/ngtsc/typecheck/src/checker.d.ts +6 -6
- package/src/ngtsc/typecheck/src/completion.d.ts +2 -2
- package/src/ngtsc/typecheck/src/context.d.ts +24 -26
- package/src/ngtsc/typecheck/src/diagnostics.d.ts +5 -5
- package/src/ngtsc/typecheck/src/dom.d.ts +5 -5
- package/src/ngtsc/typecheck/src/oob.d.ts +41 -45
- package/src/ngtsc/typecheck/src/source.d.ts +11 -11
- package/src/ngtsc/typecheck/src/tcb_util.d.ts +15 -15
- package/src/ngtsc/typecheck/src/template_symbol_builder.d.ts +3 -3
- package/src/ngtsc/typecheck/src/type_check_block.d.ts +3 -3
- package/bundles/chunk-2MJ6YSB2.js.map +0 -6
- package/bundles/chunk-UCG5K4BI.js.map +0 -6
- package/bundles/ngcc/index.js +0 -52
- package/bundles/ngcc/index.js.map +0 -6
- package/ngcc/index.d.ts +0 -11
- /package/bundles/{chunk-STORTTKY.js.map → chunk-37JMVF7H.js.map} +0 -0
- /package/bundles/{chunk-5UDS2TPQ.js.map → chunk-77D5CI2U.js.map} +0 -0
- /package/bundles/{chunk-NSLVDBJJ.js.map → chunk-B73DMM7T.js.map} +0 -0
- /package/bundles/{chunk-GBKXY6BH.js.map → chunk-FKXFEX7K.js.map} +0 -0
- /package/bundles/{chunk-HXSKCJMP.js.map → chunk-FVYXSSAL.js.map} +0 -0
- /package/bundles/{chunk-KDHDNSXW.js.map → chunk-PAYJFU4V.js.map} +0 -0
- /package/bundles/{chunk-I6R3GL3L.js.map → chunk-Q2WE7ECN.js.map} +0 -0
- /package/bundles/{chunk-SXMUFI7N.js.map → chunk-SWJRL4N4.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
__require
|
|
7
7
|
} from "./chunk-KPQ72R34.js";
|
|
8
8
|
|
|
9
|
-
// bazel-out/
|
|
9
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/util.mjs
|
|
10
10
|
var TS_DTS_JS_EXTENSION = /(?:\.d)?\.ts$|\.js$/;
|
|
11
11
|
function normalizeSeparators(path) {
|
|
12
12
|
return path.replace(/\\/g, "/");
|
|
@@ -22,7 +22,7 @@ function getSourceFileOrError(program, fileName) {
|
|
|
22
22
|
return sf;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
// bazel-out/
|
|
25
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.mjs
|
|
26
26
|
var InvalidFileSystem = class {
|
|
27
27
|
exists(path) {
|
|
28
28
|
throw makeError();
|
|
@@ -110,7 +110,7 @@ function makeError() {
|
|
|
110
110
|
return new Error("FileSystem has not been configured. Please call `setFileSystem()` before calling this method.");
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
// bazel-out/
|
|
113
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/helpers.mjs
|
|
114
114
|
var fs = new InvalidFileSystem();
|
|
115
115
|
function getFileSystem() {
|
|
116
116
|
return fs;
|
|
@@ -167,7 +167,7 @@ function toRelativeImport(relativePath) {
|
|
|
167
167
|
return isLocalRelativePath(relativePath) ? `./${relativePath}` : relativePath;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
// bazel-out/
|
|
170
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.mjs
|
|
171
171
|
import * as os from "os";
|
|
172
172
|
import ts from "typescript";
|
|
173
173
|
var NgtscCompilerHost = class {
|
|
@@ -227,7 +227,7 @@ var NgtscCompilerHost = class {
|
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
|
|
230
|
-
// bazel-out/
|
|
230
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/logical.mjs
|
|
231
231
|
var LogicalProjectPath = {
|
|
232
232
|
relativePathBetween: function(from, to) {
|
|
233
233
|
const relativePath = relative(dirname(resolve(from)), resolve(to));
|
|
@@ -276,7 +276,7 @@ function isWithinBasePath(base, path) {
|
|
|
276
276
|
return isLocalRelativePath(relative(base, path));
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
// bazel-out/
|
|
279
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.mjs
|
|
280
280
|
import fs2 from "fs";
|
|
281
281
|
import { createRequire } from "module";
|
|
282
282
|
import * as p from "path";
|
|
@@ -380,7 +380,7 @@ function toggleCase(str) {
|
|
|
380
380
|
return str.replace(/\w/g, (ch) => ch.toUpperCase() === ch ? ch.toLowerCase() : ch.toUpperCase());
|
|
381
381
|
}
|
|
382
382
|
|
|
383
|
-
// bazel-out/
|
|
383
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/ts_read_directory.mjs
|
|
384
384
|
import ts2 from "typescript";
|
|
385
385
|
function createFileSystemTsReadDirectoryFn(fs3) {
|
|
386
386
|
if (ts2.matchFiles === void 0) {
|
|
@@ -443,4 +443,4 @@ export {
|
|
|
443
443
|
* Use of this source code is governed by an MIT-style license that can be
|
|
444
444
|
* found in the LICENSE file at https://angular.dev/license
|
|
445
445
|
*/
|
|
446
|
-
//# sourceMappingURL=chunk-
|
|
446
|
+
//# sourceMappingURL=chunk-37JMVF7H.js.map
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
const require = __cjsCompatRequire(import.meta.url);
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
// bazel-out/
|
|
6
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file.mjs
|
|
7
7
|
import { decode, encode } from "@jridgewell/sourcemap-codec";
|
|
8
8
|
import mapHelpers from "convert-source-map";
|
|
9
9
|
|
|
10
|
-
// bazel-out/
|
|
10
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/segment_marker.mjs
|
|
11
11
|
function compareSegments(a, b) {
|
|
12
12
|
return a.position - b.position;
|
|
13
13
|
}
|
|
@@ -27,7 +27,7 @@ function offsetSegment(startOfLinePositions, marker, offset) {
|
|
|
27
27
|
return { line, column, position, next: void 0 };
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
// bazel-out/
|
|
30
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file.mjs
|
|
31
31
|
function removeSourceMapComments(contents) {
|
|
32
32
|
return mapHelpers.removeMapFileComments(mapHelpers.removeComments(contents)).replace(/\n\n$/, "\n");
|
|
33
33
|
}
|
|
@@ -282,10 +282,10 @@ var Cache = class {
|
|
|
282
282
|
}
|
|
283
283
|
};
|
|
284
284
|
|
|
285
|
-
// bazel-out/
|
|
285
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file_loader.mjs
|
|
286
286
|
import mapHelpers2 from "convert-source-map";
|
|
287
287
|
|
|
288
|
-
// bazel-out/
|
|
288
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/content_origin.mjs
|
|
289
289
|
var ContentOrigin;
|
|
290
290
|
(function(ContentOrigin2) {
|
|
291
291
|
ContentOrigin2[ContentOrigin2["Provided"] = 0] = "Provided";
|
|
@@ -293,7 +293,7 @@ var ContentOrigin;
|
|
|
293
293
|
ContentOrigin2[ContentOrigin2["FileSystem"] = 2] = "FileSystem";
|
|
294
294
|
})(ContentOrigin || (ContentOrigin = {}));
|
|
295
295
|
|
|
296
|
-
// bazel-out/
|
|
296
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file_loader.mjs
|
|
297
297
|
var SCHEME_MATCHER = /^([a-z][a-z0-9.-]*):\/\//i;
|
|
298
298
|
var SourceFileLoader = class {
|
|
299
299
|
fs;
|
|
@@ -426,4 +426,4 @@ export {
|
|
|
426
426
|
* Use of this source code is governed by an MIT-style license that can be
|
|
427
427
|
* found in the LICENSE file at https://angular.dev/license
|
|
428
428
|
*/
|
|
429
|
-
//# sourceMappingURL=chunk-
|
|
429
|
+
//# sourceMappingURL=chunk-77D5CI2U.js.map
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
resolve,
|
|
13
13
|
stripExtension,
|
|
14
14
|
toRelativeImport
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-37JMVF7H.js";
|
|
16
16
|
|
|
17
|
-
// bazel-out/
|
|
17
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
|
|
18
18
|
var ErrorCode;
|
|
19
19
|
(function(ErrorCode2) {
|
|
20
20
|
ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
|
|
@@ -111,7 +111,7 @@ var ErrorCode;
|
|
|
111
111
|
ErrorCode2[ErrorCode2["LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION"] = 11003] = "LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION";
|
|
112
112
|
})(ErrorCode || (ErrorCode = {}));
|
|
113
113
|
|
|
114
|
-
// bazel-out/
|
|
114
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
115
115
|
var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
|
|
116
116
|
function replaceTsWithNgInErrors(errors) {
|
|
117
117
|
return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
|
|
@@ -120,7 +120,7 @@ function ngErrorCode(code) {
|
|
|
120
120
|
return parseInt("-99" + code);
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
// bazel-out/
|
|
123
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
124
124
|
import ts from "typescript";
|
|
125
125
|
var FatalDiagnosticError = class extends Error {
|
|
126
126
|
code;
|
|
@@ -189,7 +189,7 @@ function isLocalCompilationDiagnostics(diagnostic) {
|
|
|
189
189
|
return diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNRESOLVED_CONST) || diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION);
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
// bazel-out/
|
|
192
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
193
193
|
var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
194
194
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
195
195
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -201,10 +201,10 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
|
201
201
|
ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
|
|
202
202
|
]);
|
|
203
203
|
|
|
204
|
-
// bazel-out/
|
|
204
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
|
|
205
205
|
var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.dev/errors";
|
|
206
206
|
|
|
207
|
-
// bazel-out/
|
|
207
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
|
|
208
208
|
var ExtendedTemplateDiagnosticName;
|
|
209
209
|
(function(ExtendedTemplateDiagnosticName2) {
|
|
210
210
|
ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
|
|
@@ -222,10 +222,10 @@ var ExtendedTemplateDiagnosticName;
|
|
|
222
222
|
ExtendedTemplateDiagnosticName2["UNUSED_STANDALONE_IMPORTS"] = "unusedStandaloneImports";
|
|
223
223
|
})(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
|
|
224
224
|
|
|
225
|
-
// bazel-out/
|
|
225
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
226
226
|
import ts5 from "typescript";
|
|
227
227
|
|
|
228
|
-
// bazel-out/
|
|
228
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
|
|
229
229
|
import ts2 from "typescript";
|
|
230
230
|
function isDecoratorIdentifier(exp) {
|
|
231
231
|
return ts2.isIdentifier(exp) || ts2.isPropertyAccessExpression(exp) && ts2.isIdentifier(exp.expression) && ts2.isIdentifier(exp.name);
|
|
@@ -248,7 +248,7 @@ var ClassMemberAccessLevel;
|
|
|
248
248
|
})(ClassMemberAccessLevel || (ClassMemberAccessLevel = {}));
|
|
249
249
|
var AmbientImport = {};
|
|
250
250
|
|
|
251
|
-
// bazel-out/
|
|
251
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
|
|
252
252
|
import ts3 from "typescript";
|
|
253
253
|
function typeToValue(typeNode, checker, isLocalCompilation) {
|
|
254
254
|
var _a, _b;
|
|
@@ -432,7 +432,7 @@ function extractModuleName(node) {
|
|
|
432
432
|
return node.moduleSpecifier.text;
|
|
433
433
|
}
|
|
434
434
|
|
|
435
|
-
// bazel-out/
|
|
435
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
|
|
436
436
|
import ts4 from "typescript";
|
|
437
437
|
function isNamedClassDeclaration(node) {
|
|
438
438
|
return ts4.isClassDeclaration(node) && isIdentifier(node.name);
|
|
@@ -456,7 +456,7 @@ function classMemberAccessLevelToString(level) {
|
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
458
|
|
|
459
|
-
// bazel-out/
|
|
459
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
460
460
|
var TypeScriptReflectionHost = class {
|
|
461
461
|
checker;
|
|
462
462
|
isLocalCompilation;
|
|
@@ -962,7 +962,7 @@ function getExportedName(decl, originalId) {
|
|
|
962
962
|
}
|
|
963
963
|
var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
|
|
964
964
|
|
|
965
|
-
// bazel-out/
|
|
965
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
|
|
966
966
|
import ts6 from "typescript";
|
|
967
967
|
var TS = /\.tsx?$/i;
|
|
968
968
|
var D_TS = /\.d\.ts$/i;
|
|
@@ -1063,7 +1063,7 @@ function toUnredirectedSourceFile(sf) {
|
|
|
1063
1063
|
return redirectInfo.unredirected;
|
|
1064
1064
|
}
|
|
1065
1065
|
|
|
1066
|
-
// bazel-out/
|
|
1066
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
|
|
1067
1067
|
var Reference = class {
|
|
1068
1068
|
node;
|
|
1069
1069
|
bestGuessOwningModule;
|
|
@@ -1135,14 +1135,14 @@ var Reference = class {
|
|
|
1135
1135
|
}
|
|
1136
1136
|
};
|
|
1137
1137
|
|
|
1138
|
-
// bazel-out/
|
|
1138
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
1139
1139
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
1140
1140
|
|
|
1141
|
-
// bazel-out/
|
|
1141
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
1142
1142
|
import { ExternalExpr, ExternalReference, WrappedNodeExpr } from "@angular/compiler";
|
|
1143
1143
|
import ts7 from "typescript";
|
|
1144
1144
|
|
|
1145
|
-
// bazel-out/
|
|
1145
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
|
|
1146
1146
|
function findExportedNameOfNode(target, file, reflector) {
|
|
1147
1147
|
const exports = reflector.getExportsOfModule(file);
|
|
1148
1148
|
if (exports === null) {
|
|
@@ -1162,7 +1162,7 @@ function findExportedNameOfNode(target, file, reflector) {
|
|
|
1162
1162
|
return foundExportName;
|
|
1163
1163
|
}
|
|
1164
1164
|
|
|
1165
|
-
// bazel-out/
|
|
1165
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
1166
1166
|
var ImportFlags;
|
|
1167
1167
|
(function(ImportFlags2) {
|
|
1168
1168
|
ImportFlags2[ImportFlags2["None"] = 0] = "None";
|
|
@@ -1409,7 +1409,7 @@ var UnifiedModulesStrategy = class {
|
|
|
1409
1409
|
}
|
|
1410
1410
|
};
|
|
1411
1411
|
|
|
1412
|
-
// bazel-out/
|
|
1412
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
1413
1413
|
var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
|
|
1414
1414
|
var UnifiedModulesAliasingHost = class {
|
|
1415
1415
|
unifiedModulesHost;
|
|
@@ -1478,7 +1478,7 @@ var AliasStrategy = class {
|
|
|
1478
1478
|
}
|
|
1479
1479
|
};
|
|
1480
1480
|
|
|
1481
|
-
// bazel-out/
|
|
1481
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
|
|
1482
1482
|
function relativePathBetween(from, to) {
|
|
1483
1483
|
const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
|
|
1484
1484
|
return relativePath !== "" ? toRelativeImport(relativePath) : null;
|
|
@@ -1497,7 +1497,7 @@ function getProjectRelativePath(fileName, rootDirs, compilerHost) {
|
|
|
1497
1497
|
return null;
|
|
1498
1498
|
}
|
|
1499
1499
|
|
|
1500
|
-
// bazel-out/
|
|
1500
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
|
|
1501
1501
|
var NoopImportRewriter = class {
|
|
1502
1502
|
rewriteSymbol(symbol, specifier) {
|
|
1503
1503
|
return symbol;
|
|
@@ -1557,7 +1557,7 @@ function validateAndRewriteCoreSymbol(name) {
|
|
|
1557
1557
|
return CORE_SUPPORTED_SYMBOLS.get(name);
|
|
1558
1558
|
}
|
|
1559
1559
|
|
|
1560
|
-
// bazel-out/
|
|
1560
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
|
|
1561
1561
|
import ts8 from "typescript";
|
|
1562
1562
|
var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
|
|
1563
1563
|
function loadIsReferencedAliasDeclarationPatch(context) {
|
|
@@ -1595,7 +1595,7 @@ function throwIncompatibleTransformationContextError() {
|
|
|
1595
1595
|
throw Error("Angular compiler is incompatible with this version of the TypeScript compiler.\n\nIf you recently updated TypeScript and this issue surfaces now, consider downgrading.\n\nPlease report an issue on the Angular repositories when this issue surfaces and you are using a supposedly compatible TypeScript version.");
|
|
1596
1596
|
}
|
|
1597
1597
|
|
|
1598
|
-
// bazel-out/
|
|
1598
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
1599
1599
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
1600
1600
|
function attachDefaultImportDeclaration(expr, importDecl) {
|
|
1601
1601
|
expr[DefaultImportDeclaration] = importDecl;
|
|
@@ -1634,7 +1634,7 @@ var DefaultImportTracker = class {
|
|
|
1634
1634
|
}
|
|
1635
1635
|
};
|
|
1636
1636
|
|
|
1637
|
-
// bazel-out/
|
|
1637
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
|
|
1638
1638
|
import ts9 from "typescript";
|
|
1639
1639
|
var AssumeEager = "AssumeEager";
|
|
1640
1640
|
var DeferredSymbolTracker = class {
|
|
@@ -1757,7 +1757,7 @@ var DeferredSymbolTracker = class {
|
|
|
1757
1757
|
}
|
|
1758
1758
|
};
|
|
1759
1759
|
|
|
1760
|
-
// bazel-out/
|
|
1760
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/imported_symbols_tracker.mjs
|
|
1761
1761
|
import ts10 from "typescript";
|
|
1762
1762
|
var ImportedSymbolsTracker = class {
|
|
1763
1763
|
fileToNamedImports = /* @__PURE__ */ new WeakMap();
|
|
@@ -1825,7 +1825,7 @@ var ImportedSymbolsTracker = class {
|
|
|
1825
1825
|
}
|
|
1826
1826
|
};
|
|
1827
1827
|
|
|
1828
|
-
// bazel-out/
|
|
1828
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/local_compilation_extra_imports_tracker.mjs
|
|
1829
1829
|
import ts11 from "typescript";
|
|
1830
1830
|
var LocalCompilationExtraImportsTracker = class {
|
|
1831
1831
|
typeChecker;
|
|
@@ -1877,7 +1877,7 @@ function removeQuotations(s) {
|
|
|
1877
1877
|
return s.substring(1, s.length - 1).trim();
|
|
1878
1878
|
}
|
|
1879
1879
|
|
|
1880
|
-
// bazel-out/
|
|
1880
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
|
|
1881
1881
|
var ModuleResolver = class {
|
|
1882
1882
|
program;
|
|
1883
1883
|
compilerOptions;
|
|
@@ -1898,10 +1898,10 @@ var ModuleResolver = class {
|
|
|
1898
1898
|
}
|
|
1899
1899
|
};
|
|
1900
1900
|
|
|
1901
|
-
// bazel-out/
|
|
1901
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
|
|
1902
1902
|
import ts16 from "typescript";
|
|
1903
1903
|
|
|
1904
|
-
// bazel-out/
|
|
1904
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/check_unique_identifier_name.mjs
|
|
1905
1905
|
import ts12 from "typescript";
|
|
1906
1906
|
function createGenerateUniqueIdentifierHelper() {
|
|
1907
1907
|
const generatedIdentifiers = /* @__PURE__ */ new Set();
|
|
@@ -1927,7 +1927,7 @@ function createGenerateUniqueIdentifierHelper() {
|
|
|
1927
1927
|
};
|
|
1928
1928
|
}
|
|
1929
1929
|
|
|
1930
|
-
// bazel-out/
|
|
1930
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_typescript_transform.mjs
|
|
1931
1931
|
import ts13 from "typescript";
|
|
1932
1932
|
function createTsTransformForImportManager(manager, extraStatementsForFiles) {
|
|
1933
1933
|
return (ctx) => {
|
|
@@ -1996,7 +1996,7 @@ function isImportStatement(stmt) {
|
|
|
1996
1996
|
return ts13.isImportDeclaration(stmt) || ts13.isImportEqualsDeclaration(stmt) || ts13.isNamespaceImport(stmt);
|
|
1997
1997
|
}
|
|
1998
1998
|
|
|
1999
|
-
// bazel-out/
|
|
1999
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_generated_imports.mjs
|
|
2000
2000
|
import ts14 from "typescript";
|
|
2001
2001
|
function attemptToReuseGeneratedImports(tracker, request) {
|
|
2002
2002
|
const requestHash = hashImportRequest(request);
|
|
@@ -2023,7 +2023,7 @@ function hashImportRequest(req) {
|
|
|
2023
2023
|
return `${req.requestedFile.fileName}:${req.exportModuleSpecifier}:${req.exportSymbolName}${req.unsafeAliasOverride ? ":" + req.unsafeAliasOverride : ""}`;
|
|
2024
2024
|
}
|
|
2025
2025
|
|
|
2026
|
-
// bazel-out/
|
|
2026
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_source_file_imports.mjs
|
|
2027
2027
|
import ts15 from "typescript";
|
|
2028
2028
|
function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
|
|
2029
2029
|
let candidateImportToBeUpdated = null;
|
|
@@ -2083,7 +2083,7 @@ function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
|
|
|
2083
2083
|
return fileUniqueAlias != null ? fileUniqueAlias : propertyName;
|
|
2084
2084
|
}
|
|
2085
2085
|
|
|
2086
|
-
// bazel-out/
|
|
2086
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
|
|
2087
2087
|
var presetImportManagerForceNamespaceImports = {
|
|
2088
2088
|
disableOriginalSourceFileReuse: true,
|
|
2089
2089
|
forceGenerateNamespacesForNewImports: true
|
|
@@ -2306,7 +2306,7 @@ function createImportReference(asTypeReference, ref) {
|
|
|
2306
2306
|
}
|
|
2307
2307
|
}
|
|
2308
2308
|
|
|
2309
|
-
// bazel-out/
|
|
2309
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
2310
2310
|
var Context = class {
|
|
2311
2311
|
isStatement;
|
|
2312
2312
|
constructor(isStatement) {
|
|
@@ -2320,7 +2320,7 @@ var Context = class {
|
|
|
2320
2320
|
}
|
|
2321
2321
|
};
|
|
2322
2322
|
|
|
2323
|
-
// bazel-out/
|
|
2323
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
2324
2324
|
import * as o from "@angular/compiler";
|
|
2325
2325
|
var UNARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
2326
2326
|
[o.UnaryOperator.Minus, "-"],
|
|
@@ -2543,6 +2543,10 @@ var ExpressionTranslatorVisitor = class {
|
|
|
2543
2543
|
}
|
|
2544
2544
|
return this.factory.createUnaryExpression(UNARY_OPERATORS.get(ast.operator), ast.expr.visitExpression(this, context));
|
|
2545
2545
|
}
|
|
2546
|
+
visitParenthesizedExpr(ast, context) {
|
|
2547
|
+
const result = ast.expr.visitExpression(this, context);
|
|
2548
|
+
return this.factory.createParenthesizedExpression(result);
|
|
2549
|
+
}
|
|
2546
2550
|
visitStatements(statements, context) {
|
|
2547
2551
|
return statements.map((stmt) => stmt.visitStatement(this, context)).filter((stmt) => stmt !== void 0);
|
|
2548
2552
|
}
|
|
@@ -2589,7 +2593,7 @@ function createRange(span) {
|
|
|
2589
2593
|
};
|
|
2590
2594
|
}
|
|
2591
2595
|
|
|
2592
|
-
// bazel-out/
|
|
2596
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
|
|
2593
2597
|
import ts17 from "typescript";
|
|
2594
2598
|
var INELIGIBLE = {};
|
|
2595
2599
|
function canEmitType(type, canEmit) {
|
|
@@ -2665,11 +2669,11 @@ var TypeEmitter = class {
|
|
|
2665
2669
|
}
|
|
2666
2670
|
};
|
|
2667
2671
|
|
|
2668
|
-
// bazel-out/
|
|
2672
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
2669
2673
|
import * as o2 from "@angular/compiler";
|
|
2670
2674
|
import ts19 from "typescript";
|
|
2671
2675
|
|
|
2672
|
-
// bazel-out/
|
|
2676
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
|
|
2673
2677
|
import ts18 from "typescript";
|
|
2674
2678
|
function tsNumericExpression(value) {
|
|
2675
2679
|
if (value < 0) {
|
|
@@ -2679,7 +2683,7 @@ function tsNumericExpression(value) {
|
|
|
2679
2683
|
return ts18.factory.createNumericLiteral(value);
|
|
2680
2684
|
}
|
|
2681
2685
|
|
|
2682
|
-
// bazel-out/
|
|
2686
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
2683
2687
|
function translateType(type, contextFile, reflector, refEmitter, imports) {
|
|
2684
2688
|
return type.visitType(new TypeTranslatorVisitor(imports, contextFile, reflector, refEmitter), new Context(false));
|
|
2685
2689
|
}
|
|
@@ -2871,6 +2875,9 @@ var TypeTranslatorVisitor = class {
|
|
|
2871
2875
|
visitVoidExpr(ast, context) {
|
|
2872
2876
|
throw new Error("Method not implemented.");
|
|
2873
2877
|
}
|
|
2878
|
+
visitParenthesizedExpr(ast, context) {
|
|
2879
|
+
throw new Error("Method not implemented.");
|
|
2880
|
+
}
|
|
2874
2881
|
translateType(type, context) {
|
|
2875
2882
|
const typeNode = type.visitType(this, context);
|
|
2876
2883
|
if (!ts19.isTypeNode(typeNode)) {
|
|
@@ -2909,7 +2916,7 @@ var TypeTranslatorVisitor = class {
|
|
|
2909
2916
|
}
|
|
2910
2917
|
};
|
|
2911
2918
|
|
|
2912
|
-
// bazel-out/
|
|
2919
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
2913
2920
|
import ts20 from "typescript";
|
|
2914
2921
|
var PureAnnotation;
|
|
2915
2922
|
(function(PureAnnotation2) {
|
|
@@ -3118,7 +3125,7 @@ function attachComments(statement, leadingComments) {
|
|
|
3118
3125
|
}
|
|
3119
3126
|
}
|
|
3120
3127
|
|
|
3121
|
-
// bazel-out/
|
|
3128
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
3122
3129
|
function translateExpression(contextFile, expression, imports, options = {}) {
|
|
3123
3130
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, contextFile, options), new Context(false));
|
|
3124
3131
|
}
|
|
@@ -3218,4 +3225,4 @@ export {
|
|
|
3218
3225
|
* Use of this source code is governed by an MIT-style license that can be
|
|
3219
3226
|
* found in the LICENSE file at https://angular.dev/license
|
|
3220
3227
|
*/
|
|
3221
|
-
//# sourceMappingURL=chunk-
|
|
3228
|
+
//# sourceMappingURL=chunk-7HRFJETP.js.map
|