@angular/compiler-cli 19.1.0-next.2 → 19.1.0-next.4
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-NQFS66HQ.js → chunk-AAMTATB3.js} +32 -31
- package/bundles/{chunk-NQFS66HQ.js.map → chunk-AAMTATB3.js.map} +1 -1
- package/bundles/{chunk-3OT7XV3K.js → chunk-ACKPW32M.js} +169 -150
- package/bundles/chunk-ACKPW32M.js.map +6 -0
- package/bundles/{chunk-34FJ6PKD.js → chunk-AHHY35ZY.js} +98 -95
- package/bundles/{chunk-34FJ6PKD.js.map → chunk-AHHY35ZY.js.map} +1 -1
- package/bundles/{chunk-GBKXY6BH.js → chunk-FKXFEX7K.js} +3 -3
- package/bundles/{chunk-A7ZZMLHV.js → chunk-JQUCZAGS.js} +5 -5
- package/bundles/{chunk-MIHO36SM.js → chunk-LSXJNKBJ.js} +12 -12
- package/bundles/{chunk-I6R3GL3L.js → chunk-Q2WE7ECN.js} +5 -5
- package/bundles/{chunk-P5OLJFAE.js → chunk-Q73LD63I.js} +49 -45
- package/bundles/chunk-Q73LD63I.js.map +6 -0
- package/bundles/{chunk-YCOYUOYB.js → chunk-QFDZTXLY.js} +3 -3
- package/bundles/index.js +12 -12
- package/bundles/linker/babel/index.js +12 -12
- package/bundles/linker/index.js +4 -4
- package/bundles/ngcc/index.js +1 -1
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +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 +2 -2
- package/src/ngtsc/core/api/src/options.d.ts +4 -0
- package/src/ngtsc/partial_evaluator/src/interpreter.d.ts +1 -1
- package/src/ngtsc/reflection/src/typescript.d.ts +1 -0
- package/src/ngtsc/typecheck/api/api.d.ts +4 -0
- package/src/ngtsc/util/src/path.d.ts +5 -5
- package/bundles/chunk-3OT7XV3K.js.map +0 -6
- package/bundles/chunk-P5OLJFAE.js.map +0 -6
- /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-A7ZZMLHV.js.map → chunk-JQUCZAGS.js.map} +0 -0
- /package/bundles/{chunk-MIHO36SM.js.map → chunk-LSXJNKBJ.js.map} +0 -0
- /package/bundles/{chunk-I6R3GL3L.js.map → chunk-Q2WE7ECN.js.map} +0 -0
- /package/bundles/{chunk-YCOYUOYB.js.map → chunk-QFDZTXLY.js.map} +0 -0
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
tryParseSignalInputMapping,
|
|
11
11
|
tryParseSignalModelMapping,
|
|
12
12
|
tryParseSignalQueryFromInitializer
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ACKPW32M.js";
|
|
14
14
|
import {
|
|
15
15
|
ImportManager,
|
|
16
16
|
ImportedSymbolsTracker,
|
|
@@ -18,9 +18,9 @@ import {
|
|
|
18
18
|
isAliasImportDeclaration,
|
|
19
19
|
loadIsReferencedAliasDeclarationPatch,
|
|
20
20
|
reflectClassMember
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-Q73LD63I.js";
|
|
22
22
|
|
|
23
|
-
// bazel-out/
|
|
23
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/downlevel_decorators_transform.mjs
|
|
24
24
|
import ts from "typescript";
|
|
25
25
|
function isAngularDecorator2(decorator, isCore) {
|
|
26
26
|
return isCore || decorator.import !== null && decorator.import.from === "@angular/core";
|
|
@@ -325,10 +325,10 @@ function cloneClassElementWithModifiers(node, modifiers) {
|
|
|
325
325
|
return ts.setOriginalNode(clone, node);
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
-
// bazel-out/
|
|
328
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/initializer_api_transforms/transform.mjs
|
|
329
329
|
import ts4 from "typescript";
|
|
330
330
|
|
|
331
|
-
// bazel-out/
|
|
331
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/initializer_api_transforms/transform_api.mjs
|
|
332
332
|
import ts2 from "typescript";
|
|
333
333
|
function createSyntheticAngularCoreDecoratorAccess(factory, importManager, ngClassDecorator, sourceFile, decoratorName) {
|
|
334
334
|
const classDecoratorIdentifier = ts2.isIdentifier(ngClassDecorator.identifier) ? ngClassDecorator.identifier : ngClassDecorator.identifier.expression;
|
|
@@ -345,7 +345,7 @@ function castAsAny(factory, expr) {
|
|
|
345
345
|
return factory.createAsExpression(expr, factory.createKeywordTypeNode(ts2.SyntaxKind.AnyKeyword));
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
// bazel-out/
|
|
348
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/initializer_api_transforms/input_function.mjs
|
|
349
349
|
var signalInputsTransform = (member, sourceFile, host, factory, importTracker, importManager, classDecorator, isCore) => {
|
|
350
350
|
var _a, _b;
|
|
351
351
|
if ((_a = host.getDecoratorsOfDeclaration(member.node)) == null ? void 0 : _a.some((d) => isAngularDecorator(d, "Input", isCore))) {
|
|
@@ -367,7 +367,7 @@ var signalInputsTransform = (member, sourceFile, host, factory, importTracker, i
|
|
|
367
367
|
return factory.updatePropertyDeclaration(member.node, [newDecorator, ...(_b = member.node.modifiers) != null ? _b : []], member.name, member.node.questionToken, member.node.type, member.node.initializer);
|
|
368
368
|
};
|
|
369
369
|
|
|
370
|
-
// bazel-out/
|
|
370
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/initializer_api_transforms/model_function.mjs
|
|
371
371
|
import ts3 from "typescript";
|
|
372
372
|
var signalModelTransform = (member, sourceFile, host, factory, importTracker, importManager, classDecorator, isCore) => {
|
|
373
373
|
var _a, _b;
|
|
@@ -401,7 +401,7 @@ function createDecorator(name, config, classDecorator, factory, sourceFile, impo
|
|
|
401
401
|
return factory.createDecorator(factory.createCallExpression(callTarget, void 0, [config]));
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
-
// bazel-out/
|
|
404
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/initializer_api_transforms/output_function.mjs
|
|
405
405
|
var initializerApiOutputTransform = (member, sourceFile, host, factory, importTracker, importManager, classDecorator, isCore) => {
|
|
406
406
|
var _a, _b;
|
|
407
407
|
if ((_a = host.getDecoratorsOfDeclaration(member.node)) == null ? void 0 : _a.some((d) => isAngularDecorator(d, "Output", isCore))) {
|
|
@@ -415,7 +415,7 @@ var initializerApiOutputTransform = (member, sourceFile, host, factory, importTr
|
|
|
415
415
|
return factory.updatePropertyDeclaration(member.node, [newDecorator, ...(_b = member.node.modifiers) != null ? _b : []], member.node.name, member.node.questionToken, member.node.type, member.node.initializer);
|
|
416
416
|
};
|
|
417
417
|
|
|
418
|
-
// bazel-out/
|
|
418
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/initializer_api_transforms/query_functions.mjs
|
|
419
419
|
var queryFunctionToDecorator = {
|
|
420
420
|
viewChild: "ViewChild",
|
|
421
421
|
viewChildren: "ViewChildren",
|
|
@@ -448,7 +448,7 @@ var queryFunctionsTransforms = (member, sourceFile, host, factory, importTracker
|
|
|
448
448
|
return factory.updatePropertyDeclaration(member.node, [newDecorator, ...(_a = member.node.modifiers) != null ? _a : []], member.node.name, member.node.questionToken, member.node.type, member.node.initializer);
|
|
449
449
|
};
|
|
450
450
|
|
|
451
|
-
// bazel-out/
|
|
451
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/initializer_api_transforms/transform.mjs
|
|
452
452
|
var decoratorsWithInputs = ["Directive", "Component"];
|
|
453
453
|
var propertyTransforms = [
|
|
454
454
|
signalInputsTransform,
|
|
@@ -501,7 +501,7 @@ function createTransformVisitor(ctx, host, importManager, importTracker, isCore,
|
|
|
501
501
|
return visitor;
|
|
502
502
|
}
|
|
503
503
|
|
|
504
|
-
// bazel-out/
|
|
504
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/index.mjs
|
|
505
505
|
function angularJitApplicationTransform(program, isCore = false, shouldTransformClass) {
|
|
506
506
|
const typeChecker = program.getTypeChecker();
|
|
507
507
|
const reflectionHost = new TypeScriptReflectionHost(typeChecker);
|
|
@@ -536,4 +536,4 @@ export {
|
|
|
536
536
|
* Use of this source code is governed by an MIT-style license that can be
|
|
537
537
|
* found in the LICENSE file at https://angular.dev/license
|
|
538
538
|
*/
|
|
539
|
-
//# sourceMappingURL=chunk-
|
|
539
|
+
//# sourceMappingURL=chunk-LSXJNKBJ.js.map
|
|
@@ -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,12 +12,12 @@ 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.mjs
|
|
18
18
|
import ts from "typescript";
|
|
19
19
|
|
|
20
|
-
// bazel-out/
|
|
20
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
|
|
21
21
|
var ErrorCode;
|
|
22
22
|
(function(ErrorCode2) {
|
|
23
23
|
ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
|
|
@@ -114,7 +114,7 @@ var ErrorCode;
|
|
|
114
114
|
ErrorCode2[ErrorCode2["LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION"] = 11003] = "LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION";
|
|
115
115
|
})(ErrorCode || (ErrorCode = {}));
|
|
116
116
|
|
|
117
|
-
// bazel-out/
|
|
117
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
118
118
|
var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
|
|
119
119
|
function replaceTsWithNgInErrors(errors) {
|
|
120
120
|
return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
|
|
@@ -123,7 +123,7 @@ function ngErrorCode(code) {
|
|
|
123
123
|
return parseInt("-99" + code);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
// bazel-out/
|
|
126
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
127
127
|
var FatalDiagnosticError = class extends Error {
|
|
128
128
|
code;
|
|
129
129
|
node;
|
|
@@ -191,7 +191,7 @@ function isLocalCompilationDiagnostics(diagnostic) {
|
|
|
191
191
|
return diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNRESOLVED_CONST) || diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION);
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
// bazel-out/
|
|
194
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
195
195
|
var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
196
196
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
197
197
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -203,10 +203,10 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
|
203
203
|
ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
|
|
204
204
|
]);
|
|
205
205
|
|
|
206
|
-
// bazel-out/
|
|
206
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
|
|
207
207
|
var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.dev/errors";
|
|
208
208
|
|
|
209
|
-
// bazel-out/
|
|
209
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
|
|
210
210
|
var ExtendedTemplateDiagnosticName;
|
|
211
211
|
(function(ExtendedTemplateDiagnosticName2) {
|
|
212
212
|
ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
|
|
@@ -224,10 +224,10 @@ var ExtendedTemplateDiagnosticName;
|
|
|
224
224
|
ExtendedTemplateDiagnosticName2["UNUSED_STANDALONE_IMPORTS"] = "unusedStandaloneImports";
|
|
225
225
|
})(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
|
|
226
226
|
|
|
227
|
-
// bazel-out/
|
|
227
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
228
228
|
import ts5 from "typescript";
|
|
229
229
|
|
|
230
|
-
// bazel-out/
|
|
230
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
|
|
231
231
|
import ts2 from "typescript";
|
|
232
232
|
function isDecoratorIdentifier(exp) {
|
|
233
233
|
return ts2.isIdentifier(exp) || ts2.isPropertyAccessExpression(exp) && ts2.isIdentifier(exp.expression) && ts2.isIdentifier(exp.name);
|
|
@@ -250,7 +250,7 @@ var ClassMemberAccessLevel;
|
|
|
250
250
|
})(ClassMemberAccessLevel || (ClassMemberAccessLevel = {}));
|
|
251
251
|
var AmbientImport = {};
|
|
252
252
|
|
|
253
|
-
// bazel-out/
|
|
253
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
|
|
254
254
|
import ts3 from "typescript";
|
|
255
255
|
function typeToValue(typeNode, checker, isLocalCompilation) {
|
|
256
256
|
var _a, _b;
|
|
@@ -434,7 +434,7 @@ function extractModuleName(node) {
|
|
|
434
434
|
return node.moduleSpecifier.text;
|
|
435
435
|
}
|
|
436
436
|
|
|
437
|
-
// bazel-out/
|
|
437
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
|
|
438
438
|
import ts4 from "typescript";
|
|
439
439
|
function isNamedClassDeclaration(node) {
|
|
440
440
|
return ts4.isClassDeclaration(node) && isIdentifier(node.name);
|
|
@@ -458,7 +458,7 @@ function classMemberAccessLevelToString(level) {
|
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
460
|
|
|
461
|
-
// bazel-out/
|
|
461
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
462
462
|
var TypeScriptReflectionHost = class {
|
|
463
463
|
checker;
|
|
464
464
|
isLocalCompilation;
|
|
@@ -749,6 +749,10 @@ var TypeScriptReflectionHost = class {
|
|
|
749
749
|
}
|
|
750
750
|
};
|
|
751
751
|
var TypeEntityToDeclarationError = class extends Error {
|
|
752
|
+
constructor(message) {
|
|
753
|
+
super(message);
|
|
754
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
755
|
+
}
|
|
752
756
|
};
|
|
753
757
|
function reflectTypeEntityToDeclaration(type, checker) {
|
|
754
758
|
let realSymbol = checker.getSymbolAtLocation(type);
|
|
@@ -950,7 +954,7 @@ function getExportedName(decl, originalId) {
|
|
|
950
954
|
}
|
|
951
955
|
var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
|
|
952
956
|
|
|
953
|
-
// bazel-out/
|
|
957
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
|
|
954
958
|
import ts6 from "typescript";
|
|
955
959
|
var TS = /\.tsx?$/i;
|
|
956
960
|
var D_TS = /\.d\.ts$/i;
|
|
@@ -1051,7 +1055,7 @@ function toUnredirectedSourceFile(sf) {
|
|
|
1051
1055
|
return redirectInfo.unredirected;
|
|
1052
1056
|
}
|
|
1053
1057
|
|
|
1054
|
-
// bazel-out/
|
|
1058
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
|
|
1055
1059
|
var Reference = class {
|
|
1056
1060
|
node;
|
|
1057
1061
|
bestGuessOwningModule;
|
|
@@ -1123,14 +1127,14 @@ var Reference = class {
|
|
|
1123
1127
|
}
|
|
1124
1128
|
};
|
|
1125
1129
|
|
|
1126
|
-
// bazel-out/
|
|
1130
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
1127
1131
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
1128
1132
|
|
|
1129
|
-
// bazel-out/
|
|
1133
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
1130
1134
|
import { ExternalExpr, ExternalReference, WrappedNodeExpr } from "@angular/compiler";
|
|
1131
1135
|
import ts7 from "typescript";
|
|
1132
1136
|
|
|
1133
|
-
// bazel-out/
|
|
1137
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
|
|
1134
1138
|
function findExportedNameOfNode(target, file, reflector) {
|
|
1135
1139
|
const exports = reflector.getExportsOfModule(file);
|
|
1136
1140
|
if (exports === null) {
|
|
@@ -1150,7 +1154,7 @@ function findExportedNameOfNode(target, file, reflector) {
|
|
|
1150
1154
|
return foundExportName;
|
|
1151
1155
|
}
|
|
1152
1156
|
|
|
1153
|
-
// bazel-out/
|
|
1157
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
1154
1158
|
var ImportFlags;
|
|
1155
1159
|
(function(ImportFlags2) {
|
|
1156
1160
|
ImportFlags2[ImportFlags2["None"] = 0] = "None";
|
|
@@ -1397,7 +1401,7 @@ var UnifiedModulesStrategy = class {
|
|
|
1397
1401
|
}
|
|
1398
1402
|
};
|
|
1399
1403
|
|
|
1400
|
-
// bazel-out/
|
|
1404
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
1401
1405
|
var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
|
|
1402
1406
|
var UnifiedModulesAliasingHost = class {
|
|
1403
1407
|
unifiedModulesHost;
|
|
@@ -1466,7 +1470,7 @@ var AliasStrategy = class {
|
|
|
1466
1470
|
}
|
|
1467
1471
|
};
|
|
1468
1472
|
|
|
1469
|
-
// bazel-out/
|
|
1473
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
|
|
1470
1474
|
function relativePathBetween(from, to) {
|
|
1471
1475
|
const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
|
|
1472
1476
|
return relativePath !== "" ? toRelativeImport(relativePath) : null;
|
|
@@ -1474,8 +1478,8 @@ function relativePathBetween(from, to) {
|
|
|
1474
1478
|
function normalizeSeparators(path) {
|
|
1475
1479
|
return path.replace(/\\/g, "/");
|
|
1476
1480
|
}
|
|
1477
|
-
function getProjectRelativePath(
|
|
1478
|
-
const filePath = compilerHost.getCanonicalFileName(
|
|
1481
|
+
function getProjectRelativePath(fileName, rootDirs, compilerHost) {
|
|
1482
|
+
const filePath = compilerHost.getCanonicalFileName(fileName);
|
|
1479
1483
|
for (const rootDir of rootDirs) {
|
|
1480
1484
|
const rel = relative(compilerHost.getCanonicalFileName(rootDir), filePath);
|
|
1481
1485
|
if (!rel.startsWith("..")) {
|
|
@@ -1485,7 +1489,7 @@ function getProjectRelativePath(sourceFile, rootDirs, compilerHost) {
|
|
|
1485
1489
|
return null;
|
|
1486
1490
|
}
|
|
1487
1491
|
|
|
1488
|
-
// bazel-out/
|
|
1492
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
|
|
1489
1493
|
var NoopImportRewriter = class {
|
|
1490
1494
|
rewriteSymbol(symbol, specifier) {
|
|
1491
1495
|
return symbol;
|
|
@@ -1545,7 +1549,7 @@ function validateAndRewriteCoreSymbol(name) {
|
|
|
1545
1549
|
return CORE_SUPPORTED_SYMBOLS.get(name);
|
|
1546
1550
|
}
|
|
1547
1551
|
|
|
1548
|
-
// bazel-out/
|
|
1552
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
|
|
1549
1553
|
import ts8 from "typescript";
|
|
1550
1554
|
var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
|
|
1551
1555
|
function loadIsReferencedAliasDeclarationPatch(context) {
|
|
@@ -1580,7 +1584,7 @@ function throwIncompatibleTransformationContextError() {
|
|
|
1580
1584
|
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.");
|
|
1581
1585
|
}
|
|
1582
1586
|
|
|
1583
|
-
// bazel-out/
|
|
1587
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
1584
1588
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
1585
1589
|
function attachDefaultImportDeclaration(expr, importDecl) {
|
|
1586
1590
|
expr[DefaultImportDeclaration] = importDecl;
|
|
@@ -1619,7 +1623,7 @@ var DefaultImportTracker = class {
|
|
|
1619
1623
|
}
|
|
1620
1624
|
};
|
|
1621
1625
|
|
|
1622
|
-
// bazel-out/
|
|
1626
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
|
|
1623
1627
|
import ts9 from "typescript";
|
|
1624
1628
|
var AssumeEager = "AssumeEager";
|
|
1625
1629
|
var DeferredSymbolTracker = class {
|
|
@@ -1742,7 +1746,7 @@ var DeferredSymbolTracker = class {
|
|
|
1742
1746
|
}
|
|
1743
1747
|
};
|
|
1744
1748
|
|
|
1745
|
-
// bazel-out/
|
|
1749
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/imported_symbols_tracker.mjs
|
|
1746
1750
|
import ts10 from "typescript";
|
|
1747
1751
|
var ImportedSymbolsTracker = class {
|
|
1748
1752
|
fileToNamedImports = /* @__PURE__ */ new WeakMap();
|
|
@@ -1810,7 +1814,7 @@ var ImportedSymbolsTracker = class {
|
|
|
1810
1814
|
}
|
|
1811
1815
|
};
|
|
1812
1816
|
|
|
1813
|
-
// bazel-out/
|
|
1817
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/local_compilation_extra_imports_tracker.mjs
|
|
1814
1818
|
import ts11 from "typescript";
|
|
1815
1819
|
var LocalCompilationExtraImportsTracker = class {
|
|
1816
1820
|
typeChecker;
|
|
@@ -1862,7 +1866,7 @@ function removeQuotations(s) {
|
|
|
1862
1866
|
return s.substring(1, s.length - 1).trim();
|
|
1863
1867
|
}
|
|
1864
1868
|
|
|
1865
|
-
// bazel-out/
|
|
1869
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
|
|
1866
1870
|
var ModuleResolver = class {
|
|
1867
1871
|
program;
|
|
1868
1872
|
compilerOptions;
|
|
@@ -1883,10 +1887,10 @@ var ModuleResolver = class {
|
|
|
1883
1887
|
}
|
|
1884
1888
|
};
|
|
1885
1889
|
|
|
1886
|
-
// bazel-out/
|
|
1890
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
|
|
1887
1891
|
import ts16 from "typescript";
|
|
1888
1892
|
|
|
1889
|
-
// bazel-out/
|
|
1893
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/check_unique_identifier_name.mjs
|
|
1890
1894
|
import ts12 from "typescript";
|
|
1891
1895
|
function createGenerateUniqueIdentifierHelper() {
|
|
1892
1896
|
const generatedIdentifiers = /* @__PURE__ */ new Set();
|
|
@@ -1912,7 +1916,7 @@ function createGenerateUniqueIdentifierHelper() {
|
|
|
1912
1916
|
};
|
|
1913
1917
|
}
|
|
1914
1918
|
|
|
1915
|
-
// bazel-out/
|
|
1919
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_typescript_transform.mjs
|
|
1916
1920
|
import ts13 from "typescript";
|
|
1917
1921
|
function createTsTransformForImportManager(manager, extraStatementsForFiles) {
|
|
1918
1922
|
return (ctx) => {
|
|
@@ -1979,7 +1983,7 @@ function isImportStatement(stmt) {
|
|
|
1979
1983
|
return ts13.isImportDeclaration(stmt) || ts13.isImportEqualsDeclaration(stmt) || ts13.isNamespaceImport(stmt);
|
|
1980
1984
|
}
|
|
1981
1985
|
|
|
1982
|
-
// bazel-out/
|
|
1986
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_generated_imports.mjs
|
|
1983
1987
|
import ts14 from "typescript";
|
|
1984
1988
|
function attemptToReuseGeneratedImports(tracker, request) {
|
|
1985
1989
|
const requestHash = hashImportRequest(request);
|
|
@@ -2006,7 +2010,7 @@ function hashImportRequest(req) {
|
|
|
2006
2010
|
return `${req.requestedFile.fileName}:${req.exportModuleSpecifier}:${req.exportSymbolName}${req.unsafeAliasOverride ? ":" + req.unsafeAliasOverride : ""}`;
|
|
2007
2011
|
}
|
|
2008
2012
|
|
|
2009
|
-
// bazel-out/
|
|
2013
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_source_file_imports.mjs
|
|
2010
2014
|
import ts15 from "typescript";
|
|
2011
2015
|
function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
|
|
2012
2016
|
let candidateImportToBeUpdated = null;
|
|
@@ -2066,7 +2070,7 @@ function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
|
|
|
2066
2070
|
return fileUniqueAlias != null ? fileUniqueAlias : propertyName;
|
|
2067
2071
|
}
|
|
2068
2072
|
|
|
2069
|
-
// bazel-out/
|
|
2073
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
|
|
2070
2074
|
var presetImportManagerForceNamespaceImports = {
|
|
2071
2075
|
disableOriginalSourceFileReuse: true,
|
|
2072
2076
|
forceGenerateNamespacesForNewImports: true
|
|
@@ -2289,7 +2293,7 @@ function createImportReference(asTypeReference, ref) {
|
|
|
2289
2293
|
}
|
|
2290
2294
|
}
|
|
2291
2295
|
|
|
2292
|
-
// bazel-out/
|
|
2296
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
2293
2297
|
var Context = class {
|
|
2294
2298
|
isStatement;
|
|
2295
2299
|
constructor(isStatement) {
|
|
@@ -2303,7 +2307,7 @@ var Context = class {
|
|
|
2303
2307
|
}
|
|
2304
2308
|
};
|
|
2305
2309
|
|
|
2306
|
-
// bazel-out/
|
|
2310
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
2307
2311
|
import * as o from "@angular/compiler";
|
|
2308
2312
|
var UNARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
2309
2313
|
[o.UnaryOperator.Minus, "-"],
|
|
@@ -2559,7 +2563,7 @@ function createRange(span) {
|
|
|
2559
2563
|
};
|
|
2560
2564
|
}
|
|
2561
2565
|
|
|
2562
|
-
// bazel-out/
|
|
2566
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
|
|
2563
2567
|
import ts17 from "typescript";
|
|
2564
2568
|
var INELIGIBLE = {};
|
|
2565
2569
|
function canEmitType(type, canEmit) {
|
|
@@ -2635,11 +2639,11 @@ var TypeEmitter = class {
|
|
|
2635
2639
|
}
|
|
2636
2640
|
};
|
|
2637
2641
|
|
|
2638
|
-
// bazel-out/
|
|
2642
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
2639
2643
|
import * as o2 from "@angular/compiler";
|
|
2640
2644
|
import ts19 from "typescript";
|
|
2641
2645
|
|
|
2642
|
-
// bazel-out/
|
|
2646
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
|
|
2643
2647
|
import ts18 from "typescript";
|
|
2644
2648
|
function tsNumericExpression(value) {
|
|
2645
2649
|
if (value < 0) {
|
|
@@ -2649,7 +2653,7 @@ function tsNumericExpression(value) {
|
|
|
2649
2653
|
return ts18.factory.createNumericLiteral(value);
|
|
2650
2654
|
}
|
|
2651
2655
|
|
|
2652
|
-
// bazel-out/
|
|
2656
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
2653
2657
|
function translateType(type, contextFile, reflector, refEmitter, imports) {
|
|
2654
2658
|
return type.visitType(new TypeTranslatorVisitor(imports, contextFile, reflector, refEmitter), new Context(false));
|
|
2655
2659
|
}
|
|
@@ -2870,7 +2874,7 @@ var TypeTranslatorVisitor = class {
|
|
|
2870
2874
|
}
|
|
2871
2875
|
};
|
|
2872
2876
|
|
|
2873
|
-
// bazel-out/
|
|
2877
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
2874
2878
|
import ts20 from "typescript";
|
|
2875
2879
|
var PureAnnotation;
|
|
2876
2880
|
(function(PureAnnotation2) {
|
|
@@ -3074,7 +3078,7 @@ function attachComments(statement, leadingComments) {
|
|
|
3074
3078
|
}
|
|
3075
3079
|
}
|
|
3076
3080
|
|
|
3077
|
-
// bazel-out/
|
|
3081
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
3078
3082
|
function translateExpression(contextFile, expression, imports, options = {}) {
|
|
3079
3083
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, contextFile, options), new Context(false));
|
|
3080
3084
|
}
|
|
@@ -3174,4 +3178,4 @@ export {
|
|
|
3174
3178
|
* Use of this source code is governed by an MIT-style license that can be
|
|
3175
3179
|
* found in the LICENSE file at https://angular.dev/license
|
|
3176
3180
|
*/
|
|
3177
|
-
//# sourceMappingURL=chunk-
|
|
3181
|
+
//# sourceMappingURL=chunk-Q73LD63I.js.map
|