@angular/compiler-cli 20.0.0-next.0 → 20.0.0-next.1
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-GBKXY6BH.js → chunk-FKXFEX7K.js} +3 -3
- package/bundles/{chunk-UCG5K4BI.js → chunk-O2OVHMWL.js} +237 -236
- package/bundles/chunk-O2OVHMWL.js.map +6 -0
- package/bundles/{chunk-2MJ6YSB2.js → chunk-PLKJMRGZ.js} +138 -136
- package/bundles/{chunk-2MJ6YSB2.js.map → chunk-PLKJMRGZ.js.map} +1 -1
- package/bundles/{chunk-I6R3GL3L.js → chunk-Q2WE7ECN.js} +5 -5
- package/bundles/{chunk-5B64KRP2.js → chunk-QYORKQDN.js} +48 -42
- package/bundles/{chunk-5B64KRP2.js.map → chunk-QYORKQDN.js.map} +1 -1
- package/bundles/{chunk-KDHDNSXW.js → chunk-SEPXPBD2.js} +12 -12
- package/bundles/{chunk-HXSKCJMP.js → chunk-SNXU6YPZ.js} +3 -3
- package/bundles/{chunk-SXMUFI7N.js → chunk-UAA7BTBW.js} +33 -33
- package/bundles/{chunk-NSLVDBJJ.js → chunk-YSSSYIZJ.js} +5 -5
- 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 +4 -4
- 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/src/ngtsc/translator/src/translator.d.ts +1 -0
- 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-GBKXY6BH.js.map → chunk-FKXFEX7K.js.map} +0 -0
- /package/bundles/{chunk-I6R3GL3L.js.map → chunk-Q2WE7ECN.js.map} +0 -0
- /package/bundles/{chunk-KDHDNSXW.js.map → chunk-SEPXPBD2.js.map} +0 -0
- /package/bundles/{chunk-HXSKCJMP.js.map → chunk-SNXU6YPZ.js.map} +0 -0
- /package/bundles/{chunk-SXMUFI7N.js.map → chunk-UAA7BTBW.js.map} +0 -0
- /package/bundles/{chunk-NSLVDBJJ.js.map → chunk-YSSSYIZJ.js.map} +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
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/perf/src/api.mjs
|
|
7
7
|
var PerfPhase;
|
|
8
8
|
(function(PerfPhase2) {
|
|
9
9
|
PerfPhase2[PerfPhase2["Unaccounted"] = 0] = "Unaccounted";
|
|
@@ -73,7 +73,7 @@ var PerfCheckpoint;
|
|
|
73
73
|
PerfCheckpoint2[PerfCheckpoint2["LAST"] = 9] = "LAST";
|
|
74
74
|
})(PerfCheckpoint || (PerfCheckpoint = {}));
|
|
75
75
|
|
|
76
|
-
// bazel-out/
|
|
76
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
|
|
77
77
|
var NoopPerfRecorder = class {
|
|
78
78
|
eventCount() {
|
|
79
79
|
}
|
|
@@ -90,7 +90,7 @@ var NoopPerfRecorder = class {
|
|
|
90
90
|
};
|
|
91
91
|
var NOOP_PERF_RECORDER = new NoopPerfRecorder();
|
|
92
92
|
|
|
93
|
-
// bazel-out/
|
|
93
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/clock.mjs
|
|
94
94
|
function mark() {
|
|
95
95
|
return process.hrtime();
|
|
96
96
|
}
|
|
@@ -99,7 +99,7 @@ function timeSinceInMicros(mark2) {
|
|
|
99
99
|
return delta[0] * 1e6 + Math.floor(delta[1] / 1e3);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
// bazel-out/
|
|
102
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/recorder.mjs
|
|
103
103
|
var ActivePerfRecorder = class {
|
|
104
104
|
zeroTime;
|
|
105
105
|
counters;
|
|
@@ -213,4 +213,4 @@ export {
|
|
|
213
213
|
* Use of this source code is governed by an MIT-style license that can be
|
|
214
214
|
* found in the LICENSE file at https://angular.dev/license
|
|
215
215
|
*/
|
|
216
|
-
//# sourceMappingURL=chunk-
|
|
216
|
+
//# sourceMappingURL=chunk-Q2WE7ECN.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,9 @@ 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
|
+
return this.factory.createParenthesizedExpression(ast.expr.visitExpression(this, context));
|
|
2548
|
+
}
|
|
2546
2549
|
visitStatements(statements, context) {
|
|
2547
2550
|
return statements.map((stmt) => stmt.visitStatement(this, context)).filter((stmt) => stmt !== void 0);
|
|
2548
2551
|
}
|
|
@@ -2589,7 +2592,7 @@ function createRange(span) {
|
|
|
2589
2592
|
};
|
|
2590
2593
|
}
|
|
2591
2594
|
|
|
2592
|
-
// bazel-out/
|
|
2595
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
|
|
2593
2596
|
import ts17 from "typescript";
|
|
2594
2597
|
var INELIGIBLE = {};
|
|
2595
2598
|
function canEmitType(type, canEmit) {
|
|
@@ -2665,11 +2668,11 @@ var TypeEmitter = class {
|
|
|
2665
2668
|
}
|
|
2666
2669
|
};
|
|
2667
2670
|
|
|
2668
|
-
// bazel-out/
|
|
2671
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
2669
2672
|
import * as o2 from "@angular/compiler";
|
|
2670
2673
|
import ts19 from "typescript";
|
|
2671
2674
|
|
|
2672
|
-
// bazel-out/
|
|
2675
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
|
|
2673
2676
|
import ts18 from "typescript";
|
|
2674
2677
|
function tsNumericExpression(value) {
|
|
2675
2678
|
if (value < 0) {
|
|
@@ -2679,7 +2682,7 @@ function tsNumericExpression(value) {
|
|
|
2679
2682
|
return ts18.factory.createNumericLiteral(value);
|
|
2680
2683
|
}
|
|
2681
2684
|
|
|
2682
|
-
// bazel-out/
|
|
2685
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
2683
2686
|
function translateType(type, contextFile, reflector, refEmitter, imports) {
|
|
2684
2687
|
return type.visitType(new TypeTranslatorVisitor(imports, contextFile, reflector, refEmitter), new Context(false));
|
|
2685
2688
|
}
|
|
@@ -2871,6 +2874,9 @@ var TypeTranslatorVisitor = class {
|
|
|
2871
2874
|
visitVoidExpr(ast, context) {
|
|
2872
2875
|
throw new Error("Method not implemented.");
|
|
2873
2876
|
}
|
|
2877
|
+
visitParenthesizedExpr(ast, context) {
|
|
2878
|
+
throw new Error("Method not implemented.");
|
|
2879
|
+
}
|
|
2874
2880
|
translateType(type, context) {
|
|
2875
2881
|
const typeNode = type.visitType(this, context);
|
|
2876
2882
|
if (!ts19.isTypeNode(typeNode)) {
|
|
@@ -2909,7 +2915,7 @@ var TypeTranslatorVisitor = class {
|
|
|
2909
2915
|
}
|
|
2910
2916
|
};
|
|
2911
2917
|
|
|
2912
|
-
// bazel-out/
|
|
2918
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
2913
2919
|
import ts20 from "typescript";
|
|
2914
2920
|
var PureAnnotation;
|
|
2915
2921
|
(function(PureAnnotation2) {
|
|
@@ -3118,7 +3124,7 @@ function attachComments(statement, leadingComments) {
|
|
|
3118
3124
|
}
|
|
3119
3125
|
}
|
|
3120
3126
|
|
|
3121
|
-
// bazel-out/
|
|
3127
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
3122
3128
|
function translateExpression(contextFile, expression, imports, options = {}) {
|
|
3123
3129
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, contextFile, options), new Context(false));
|
|
3124
3130
|
}
|
|
@@ -3218,4 +3224,4 @@ export {
|
|
|
3218
3224
|
* Use of this source code is governed by an MIT-style license that can be
|
|
3219
3225
|
* found in the LICENSE file at https://angular.dev/license
|
|
3220
3226
|
*/
|
|
3221
|
-
//# sourceMappingURL=chunk-
|
|
3227
|
+
//# sourceMappingURL=chunk-QYORKQDN.js.map
|