@angular/compiler-cli 19.2.0-next.2 → 19.2.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-STORTTKY.js → chunk-37JMVF7H.js} +8 -8
- package/bundles/{chunk-3WDOF2PD.js → chunk-67OPP2P5.js} +113 -86
- package/bundles/{chunk-3WDOF2PD.js.map → chunk-67OPP2P5.js.map} +3 -3
- package/bundles/{chunk-5UDS2TPQ.js → chunk-77D5CI2U.js} +7 -7
- package/bundles/{chunk-SPTIAMJL.js → chunk-E7POVVFX.js} +13 -13
- package/bundles/chunk-E7POVVFX.js.map +6 -0
- package/bundles/{chunk-GBKXY6BH.js → chunk-FKXFEX7K.js} +3 -3
- package/bundles/{chunk-7U2MEXOV.js → chunk-FTZQEOD7.js} +5 -5
- package/bundles/{chunk-GSGK42HV.js → chunk-HHTMNOE7.js} +132 -127
- package/bundles/{chunk-GSGK42HV.js.map → chunk-HHTMNOE7.js.map} +1 -1
- package/bundles/{chunk-2LUVAZUS.js → chunk-J7S5XIBF.js} +31 -31
- package/bundles/{chunk-KNAEEOO7.js → chunk-JBQ2W4H2.js} +3 -3
- package/bundles/{chunk-T2AA53RT.js → chunk-OZ2WSYWM.js} +49 -44
- package/bundles/chunk-OZ2WSYWM.js.map +6 -0
- package/bundles/{chunk-I6R3GL3L.js → chunk-Q2WE7ECN.js} +5 -5
- 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 +3 -3
- package/src/ngtsc/imports/src/patch_alias_reference_resolution.d.ts +6 -1
- package/bundles/chunk-SPTIAMJL.js.map +0 -6
- package/bundles/chunk-T2AA53RT.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-7U2MEXOV.js.map → chunk-FTZQEOD7.js.map} +0 -0
- /package/bundles/{chunk-2LUVAZUS.js.map → chunk-J7S5XIBF.js.map} +0 -0
- /package/bundles/{chunk-KNAEEOO7.js.map → chunk-JBQ2W4H2.js.map} +0 -0
- /package/bundles/{chunk-I6R3GL3L.js.map → chunk-Q2WE7ECN.js.map} +0 -0
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
import {
|
|
6
6
|
Context,
|
|
7
7
|
ExpressionTranslatorVisitor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OZ2WSYWM.js";
|
|
9
9
|
import {
|
|
10
10
|
SourceFileLoader
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-77D5CI2U.js";
|
|
12
12
|
|
|
13
|
-
// bazel-out/
|
|
13
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/fatal_linker_error.mjs
|
|
14
14
|
var FatalLinkerError = class extends Error {
|
|
15
15
|
node;
|
|
16
16
|
type = "FatalLinkerError";
|
|
@@ -23,14 +23,14 @@ function isFatalLinkerError(e) {
|
|
|
23
23
|
return e && e.type === "FatalLinkerError";
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
// bazel-out/
|
|
26
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/ast/utils.mjs
|
|
27
27
|
function assert(node, predicate, expected) {
|
|
28
28
|
if (!predicate(node)) {
|
|
29
29
|
throw new FatalLinkerError(node, `Unsupported syntax, expected ${expected}.`);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
// bazel-out/
|
|
33
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/ast/ast_value.mjs
|
|
34
34
|
import * as o from "@angular/compiler";
|
|
35
35
|
var AstObject = class {
|
|
36
36
|
expression;
|
|
@@ -168,10 +168,10 @@ var AstValue = class {
|
|
|
168
168
|
}
|
|
169
169
|
};
|
|
170
170
|
|
|
171
|
-
// bazel-out/
|
|
171
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/emit_scopes/emit_scope.mjs
|
|
172
172
|
import { ConstantPool } from "@angular/compiler";
|
|
173
173
|
|
|
174
|
-
// bazel-out/
|
|
174
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/linker_import_generator.mjs
|
|
175
175
|
var LinkerImportGenerator = class {
|
|
176
176
|
factory;
|
|
177
177
|
ngImport;
|
|
@@ -193,7 +193,7 @@ var LinkerImportGenerator = class {
|
|
|
193
193
|
}
|
|
194
194
|
};
|
|
195
195
|
|
|
196
|
-
// bazel-out/
|
|
196
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/emit_scopes/emit_scope.mjs
|
|
197
197
|
var EmitScope = class {
|
|
198
198
|
ngImport;
|
|
199
199
|
translator;
|
|
@@ -225,7 +225,7 @@ var EmitScope = class {
|
|
|
225
225
|
}
|
|
226
226
|
};
|
|
227
227
|
|
|
228
|
-
// bazel-out/
|
|
228
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/emit_scopes/local_emit_scope.mjs
|
|
229
229
|
var LocalEmitScope = class extends EmitScope {
|
|
230
230
|
translateDefinition(definition) {
|
|
231
231
|
return super.translateDefinition({
|
|
@@ -238,10 +238,10 @@ var LocalEmitScope = class extends EmitScope {
|
|
|
238
238
|
}
|
|
239
239
|
};
|
|
240
240
|
|
|
241
|
-
// bazel-out/
|
|
241
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_linker_selector.mjs
|
|
242
242
|
import semver3 from "semver";
|
|
243
243
|
|
|
244
|
-
// bazel-out/
|
|
244
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/get_source_file.mjs
|
|
245
245
|
function createGetSourceFile(sourceUrl, code, loader) {
|
|
246
246
|
if (loader === null) {
|
|
247
247
|
return () => null;
|
|
@@ -256,7 +256,7 @@ function createGetSourceFile(sourceUrl, code, loader) {
|
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
// bazel-out/
|
|
259
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_class_metadata_async_linker_1.mjs
|
|
260
260
|
import { compileOpaqueAsyncClassMetadata } from "@angular/compiler";
|
|
261
261
|
var PartialClassMetadataAsyncLinkerVersion1 = class {
|
|
262
262
|
linkPartialDeclaration(constantPool, metaObj) {
|
|
@@ -281,7 +281,7 @@ var PartialClassMetadataAsyncLinkerVersion1 = class {
|
|
|
281
281
|
}
|
|
282
282
|
};
|
|
283
283
|
|
|
284
|
-
// bazel-out/
|
|
284
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_class_metadata_linker_1.mjs
|
|
285
285
|
import { compileClassMetadata } from "@angular/compiler";
|
|
286
286
|
var PartialClassMetadataLinkerVersion1 = class {
|
|
287
287
|
linkPartialDeclaration(constantPool, metaObj) {
|
|
@@ -301,17 +301,17 @@ function toR3ClassMetadata(metaObj) {
|
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
// bazel-out/
|
|
304
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_component_linker_1.mjs
|
|
305
305
|
import { ChangeDetectionStrategy, compileComponentFromMetadata, DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, makeBindingParser as makeBindingParser2, parseTemplate, R3TargetBinder, R3TemplateDependencyKind, SelectorMatcher, ViewEncapsulation } from "@angular/compiler";
|
|
306
306
|
import semver2 from "semver";
|
|
307
307
|
|
|
308
|
-
// bazel-out/
|
|
308
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_directive_linker_1.mjs
|
|
309
309
|
import { compileDirectiveFromMetadata, makeBindingParser, ParseLocation, ParseSourceFile, ParseSourceSpan } from "@angular/compiler";
|
|
310
310
|
|
|
311
|
-
// bazel-out/
|
|
311
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/util.mjs
|
|
312
312
|
import { createMayBeForwardRefExpression, outputAst as o2 } from "@angular/compiler";
|
|
313
313
|
import semver from "semver";
|
|
314
|
-
var PLACEHOLDER_VERSION = "19.2.0-
|
|
314
|
+
var PLACEHOLDER_VERSION = "19.2.0-rc.0";
|
|
315
315
|
function wrapReference(wrapped) {
|
|
316
316
|
return { value: wrapped, type: wrapped };
|
|
317
317
|
}
|
|
@@ -364,7 +364,7 @@ function getDefaultStandaloneValue(version) {
|
|
|
364
364
|
return STANDALONE_IS_DEFAULT_RANGE.test(version);
|
|
365
365
|
}
|
|
366
366
|
|
|
367
|
-
// bazel-out/
|
|
367
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_directive_linker_1.mjs
|
|
368
368
|
var PartialDirectiveLinkerVersion1 = class {
|
|
369
369
|
sourceUrl;
|
|
370
370
|
code;
|
|
@@ -513,7 +513,7 @@ function createSourceSpan(range, code, sourceUrl) {
|
|
|
513
513
|
return new ParseSourceSpan(startLocation, startLocation.moveBy(range.endPos - range.startPos));
|
|
514
514
|
}
|
|
515
515
|
|
|
516
|
-
// bazel-out/
|
|
516
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_component_linker_1.mjs
|
|
517
517
|
function makeDirectiveMetadata(directiveExpr, typeExpr, isComponentByDefault = null) {
|
|
518
518
|
return {
|
|
519
519
|
kind: R3TemplateDependencyKind.Directive,
|
|
@@ -732,7 +732,7 @@ function parseChangeDetectionStrategy(changeDetectionStrategy) {
|
|
|
732
732
|
return enumValue;
|
|
733
733
|
}
|
|
734
734
|
|
|
735
|
-
// bazel-out/
|
|
735
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_factory_linker_1.mjs
|
|
736
736
|
import { compileFactoryFunction, FactoryTarget } from "@angular/compiler";
|
|
737
737
|
var PartialFactoryLinkerVersion1 = class {
|
|
738
738
|
linkPartialDeclaration(constantPool, metaObj) {
|
|
@@ -768,7 +768,7 @@ function getDependencies(metaObj, propName) {
|
|
|
768
768
|
return null;
|
|
769
769
|
}
|
|
770
770
|
|
|
771
|
-
// bazel-out/
|
|
771
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_injectable_linker_1.mjs
|
|
772
772
|
import { compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression2, outputAst as o3 } from "@angular/compiler";
|
|
773
773
|
var PartialInjectableLinkerVersion1 = class {
|
|
774
774
|
linkPartialDeclaration(constantPool, metaObj) {
|
|
@@ -806,7 +806,7 @@ function toR3InjectableMeta(metaObj) {
|
|
|
806
806
|
return meta;
|
|
807
807
|
}
|
|
808
808
|
|
|
809
|
-
// bazel-out/
|
|
809
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_injector_linker_1.mjs
|
|
810
810
|
import { compileInjector } from "@angular/compiler";
|
|
811
811
|
var PartialInjectorLinkerVersion1 = class {
|
|
812
812
|
linkPartialDeclaration(constantPool, metaObj) {
|
|
@@ -828,7 +828,7 @@ function toR3InjectorMeta(metaObj) {
|
|
|
828
828
|
};
|
|
829
829
|
}
|
|
830
830
|
|
|
831
|
-
// bazel-out/
|
|
831
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_ng_module_linker_1.mjs
|
|
832
832
|
import { compileNgModule, R3NgModuleMetadataKind, R3SelectorScopeMode } from "@angular/compiler";
|
|
833
833
|
var PartialNgModuleLinkerVersion1 = class {
|
|
834
834
|
emitInline;
|
|
@@ -901,7 +901,7 @@ function wrapReferences(values) {
|
|
|
901
901
|
return values.getArray().map((i) => wrapReference(i.getOpaque()));
|
|
902
902
|
}
|
|
903
903
|
|
|
904
|
-
// bazel-out/
|
|
904
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_pipe_linker_1.mjs
|
|
905
905
|
import { compilePipeFromMetadata } from "@angular/compiler";
|
|
906
906
|
var PartialPipeLinkerVersion1 = class {
|
|
907
907
|
constructor() {
|
|
@@ -930,7 +930,7 @@ function toR3PipeMeta(metaObj, version) {
|
|
|
930
930
|
};
|
|
931
931
|
}
|
|
932
932
|
|
|
933
|
-
// bazel-out/
|
|
933
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_linker_selector.mjs
|
|
934
934
|
var \u0275\u0275ngDeclareDirective = "\u0275\u0275ngDeclareDirective";
|
|
935
935
|
var \u0275\u0275ngDeclareClassMetadata = "\u0275\u0275ngDeclareClassMetadata";
|
|
936
936
|
var \u0275\u0275ngDeclareComponent = "\u0275\u0275ngDeclareComponent";
|
|
@@ -1035,7 +1035,7 @@ function getRange(comparator, versionStr) {
|
|
|
1035
1035
|
return new semver3.Range(`${comparator}${version.format()}`);
|
|
1036
1036
|
}
|
|
1037
1037
|
|
|
1038
|
-
// bazel-out/
|
|
1038
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/file_linker.mjs
|
|
1039
1039
|
var FileLinker = class {
|
|
1040
1040
|
linkerEnvironment;
|
|
1041
1041
|
linkerSelector;
|
|
@@ -1080,14 +1080,14 @@ var FileLinker = class {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
};
|
|
1082
1082
|
|
|
1083
|
-
// bazel-out/
|
|
1083
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/linker_options.mjs
|
|
1084
1084
|
var DEFAULT_LINKER_OPTIONS = {
|
|
1085
1085
|
sourceMapping: true,
|
|
1086
1086
|
linkerJitMode: false,
|
|
1087
1087
|
unknownDeclarationVersionHandling: "error"
|
|
1088
1088
|
};
|
|
1089
1089
|
|
|
1090
|
-
// bazel-out/
|
|
1090
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/translator.mjs
|
|
1091
1091
|
var Translator = class {
|
|
1092
1092
|
factory;
|
|
1093
1093
|
constructor(factory) {
|
|
@@ -1101,7 +1101,7 @@ var Translator = class {
|
|
|
1101
1101
|
}
|
|
1102
1102
|
};
|
|
1103
1103
|
|
|
1104
|
-
// bazel-out/
|
|
1104
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/linker_environment.mjs
|
|
1105
1105
|
var LinkerEnvironment = class {
|
|
1106
1106
|
fileSystem;
|
|
1107
1107
|
logger;
|
|
@@ -1129,7 +1129,7 @@ var LinkerEnvironment = class {
|
|
|
1129
1129
|
}
|
|
1130
1130
|
};
|
|
1131
1131
|
|
|
1132
|
-
// bazel-out/
|
|
1132
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/needs_linking.mjs
|
|
1133
1133
|
function needsLinking(path, source) {
|
|
1134
1134
|
return declarationFunctions.some((fn) => source.includes(fn));
|
|
1135
1135
|
}
|
|
@@ -1150,4 +1150,4 @@ export {
|
|
|
1150
1150
|
* Use of this source code is governed by an MIT-style license that can be
|
|
1151
1151
|
* found in the LICENSE file at https://angular.dev/license
|
|
1152
1152
|
*/
|
|
1153
|
-
//# sourceMappingURL=chunk-
|
|
1153
|
+
//# sourceMappingURL=chunk-J7S5XIBF.js.map
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
angularJitApplicationTransform
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-E7POVVFX.js";
|
|
8
8
|
|
|
9
|
-
// bazel-out/
|
|
9
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
|
|
10
10
|
var GLOBAL_DEFS_FOR_TERSER = {
|
|
11
11
|
ngDevMode: false,
|
|
12
12
|
ngI18nClosureMode: false
|
|
@@ -31,4 +31,4 @@ export {
|
|
|
31
31
|
* Use of this source code is governed by an MIT-style license that can be
|
|
32
32
|
* found in the LICENSE file at https://angular.dev/license
|
|
33
33
|
*/
|
|
34
|
-
//# sourceMappingURL=chunk-
|
|
34
|
+
//# sourceMappingURL=chunk-JBQ2W4H2.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) {
|
|
@@ -1565,6 +1565,9 @@ function loadIsReferencedAliasDeclarationPatch(context) {
|
|
|
1565
1565
|
throwIncompatibleTransformationContextError();
|
|
1566
1566
|
}
|
|
1567
1567
|
const emitResolver = context.getEmitResolver();
|
|
1568
|
+
if (emitResolver === void 0) {
|
|
1569
|
+
return null;
|
|
1570
|
+
}
|
|
1568
1571
|
const existingReferencedAliases = emitResolver[patchedReferencedAliasesSymbol];
|
|
1569
1572
|
if (existingReferencedAliases !== void 0) {
|
|
1570
1573
|
return existingReferencedAliases;
|
|
@@ -1592,7 +1595,7 @@ function throwIncompatibleTransformationContextError() {
|
|
|
1592
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.");
|
|
1593
1596
|
}
|
|
1594
1597
|
|
|
1595
|
-
// bazel-out/
|
|
1598
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
1596
1599
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
1597
1600
|
function attachDefaultImportDeclaration(expr, importDecl) {
|
|
1598
1601
|
expr[DefaultImportDeclaration] = importDecl;
|
|
@@ -1622,7 +1625,7 @@ var DefaultImportTracker = class {
|
|
|
1622
1625
|
if (clausesToPreserve === null) {
|
|
1623
1626
|
clausesToPreserve = loadIsReferencedAliasDeclarationPatch(context);
|
|
1624
1627
|
}
|
|
1625
|
-
clausesToPreserve.add(clause);
|
|
1628
|
+
clausesToPreserve == null ? void 0 : clausesToPreserve.add(clause);
|
|
1626
1629
|
}
|
|
1627
1630
|
}
|
|
1628
1631
|
return sourceFile;
|
|
@@ -1631,7 +1634,7 @@ var DefaultImportTracker = class {
|
|
|
1631
1634
|
}
|
|
1632
1635
|
};
|
|
1633
1636
|
|
|
1634
|
-
// bazel-out/
|
|
1637
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
|
|
1635
1638
|
import ts9 from "typescript";
|
|
1636
1639
|
var AssumeEager = "AssumeEager";
|
|
1637
1640
|
var DeferredSymbolTracker = class {
|
|
@@ -1754,7 +1757,7 @@ var DeferredSymbolTracker = class {
|
|
|
1754
1757
|
}
|
|
1755
1758
|
};
|
|
1756
1759
|
|
|
1757
|
-
// bazel-out/
|
|
1760
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/imported_symbols_tracker.mjs
|
|
1758
1761
|
import ts10 from "typescript";
|
|
1759
1762
|
var ImportedSymbolsTracker = class {
|
|
1760
1763
|
fileToNamedImports = /* @__PURE__ */ new WeakMap();
|
|
@@ -1822,7 +1825,7 @@ var ImportedSymbolsTracker = class {
|
|
|
1822
1825
|
}
|
|
1823
1826
|
};
|
|
1824
1827
|
|
|
1825
|
-
// bazel-out/
|
|
1828
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/local_compilation_extra_imports_tracker.mjs
|
|
1826
1829
|
import ts11 from "typescript";
|
|
1827
1830
|
var LocalCompilationExtraImportsTracker = class {
|
|
1828
1831
|
typeChecker;
|
|
@@ -1874,7 +1877,7 @@ function removeQuotations(s) {
|
|
|
1874
1877
|
return s.substring(1, s.length - 1).trim();
|
|
1875
1878
|
}
|
|
1876
1879
|
|
|
1877
|
-
// bazel-out/
|
|
1880
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
|
|
1878
1881
|
var ModuleResolver = class {
|
|
1879
1882
|
program;
|
|
1880
1883
|
compilerOptions;
|
|
@@ -1895,10 +1898,10 @@ var ModuleResolver = class {
|
|
|
1895
1898
|
}
|
|
1896
1899
|
};
|
|
1897
1900
|
|
|
1898
|
-
// bazel-out/
|
|
1901
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
|
|
1899
1902
|
import ts16 from "typescript";
|
|
1900
1903
|
|
|
1901
|
-
// bazel-out/
|
|
1904
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/check_unique_identifier_name.mjs
|
|
1902
1905
|
import ts12 from "typescript";
|
|
1903
1906
|
function createGenerateUniqueIdentifierHelper() {
|
|
1904
1907
|
const generatedIdentifiers = /* @__PURE__ */ new Set();
|
|
@@ -1924,14 +1927,16 @@ function createGenerateUniqueIdentifierHelper() {
|
|
|
1924
1927
|
};
|
|
1925
1928
|
}
|
|
1926
1929
|
|
|
1927
|
-
// bazel-out/
|
|
1930
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_typescript_transform.mjs
|
|
1928
1931
|
import ts13 from "typescript";
|
|
1929
1932
|
function createTsTransformForImportManager(manager, extraStatementsForFiles) {
|
|
1930
1933
|
return (ctx) => {
|
|
1931
1934
|
const { affectedFiles, newImports, updatedImports, reusedOriginalAliasDeclarations, deletedImports } = manager.finalize();
|
|
1932
1935
|
if (reusedOriginalAliasDeclarations.size > 0) {
|
|
1933
1936
|
const referencedAliasDeclarations = loadIsReferencedAliasDeclarationPatch(ctx);
|
|
1934
|
-
|
|
1937
|
+
if (referencedAliasDeclarations !== null) {
|
|
1938
|
+
reusedOriginalAliasDeclarations.forEach((aliasDecl) => referencedAliasDeclarations.add(aliasDecl));
|
|
1939
|
+
}
|
|
1935
1940
|
}
|
|
1936
1941
|
if (extraStatementsForFiles !== void 0) {
|
|
1937
1942
|
for (const [fileName, statements] of extraStatementsForFiles.entries()) {
|
|
@@ -1991,7 +1996,7 @@ function isImportStatement(stmt) {
|
|
|
1991
1996
|
return ts13.isImportDeclaration(stmt) || ts13.isImportEqualsDeclaration(stmt) || ts13.isNamespaceImport(stmt);
|
|
1992
1997
|
}
|
|
1993
1998
|
|
|
1994
|
-
// bazel-out/
|
|
1999
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_generated_imports.mjs
|
|
1995
2000
|
import ts14 from "typescript";
|
|
1996
2001
|
function attemptToReuseGeneratedImports(tracker, request) {
|
|
1997
2002
|
const requestHash = hashImportRequest(request);
|
|
@@ -2018,7 +2023,7 @@ function hashImportRequest(req) {
|
|
|
2018
2023
|
return `${req.requestedFile.fileName}:${req.exportModuleSpecifier}:${req.exportSymbolName}${req.unsafeAliasOverride ? ":" + req.unsafeAliasOverride : ""}`;
|
|
2019
2024
|
}
|
|
2020
2025
|
|
|
2021
|
-
// bazel-out/
|
|
2026
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_source_file_imports.mjs
|
|
2022
2027
|
import ts15 from "typescript";
|
|
2023
2028
|
function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
|
|
2024
2029
|
let candidateImportToBeUpdated = null;
|
|
@@ -2078,7 +2083,7 @@ function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
|
|
|
2078
2083
|
return fileUniqueAlias != null ? fileUniqueAlias : propertyName;
|
|
2079
2084
|
}
|
|
2080
2085
|
|
|
2081
|
-
// bazel-out/
|
|
2086
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
|
|
2082
2087
|
var presetImportManagerForceNamespaceImports = {
|
|
2083
2088
|
disableOriginalSourceFileReuse: true,
|
|
2084
2089
|
forceGenerateNamespacesForNewImports: true
|
|
@@ -2301,7 +2306,7 @@ function createImportReference(asTypeReference, ref) {
|
|
|
2301
2306
|
}
|
|
2302
2307
|
}
|
|
2303
2308
|
|
|
2304
|
-
// bazel-out/
|
|
2309
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
2305
2310
|
var Context = class {
|
|
2306
2311
|
isStatement;
|
|
2307
2312
|
constructor(isStatement) {
|
|
@@ -2315,7 +2320,7 @@ var Context = class {
|
|
|
2315
2320
|
}
|
|
2316
2321
|
};
|
|
2317
2322
|
|
|
2318
|
-
// bazel-out/
|
|
2323
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
2319
2324
|
import * as o from "@angular/compiler";
|
|
2320
2325
|
var UNARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
2321
2326
|
[o.UnaryOperator.Minus, "-"],
|
|
@@ -2580,7 +2585,7 @@ function createRange(span) {
|
|
|
2580
2585
|
};
|
|
2581
2586
|
}
|
|
2582
2587
|
|
|
2583
|
-
// bazel-out/
|
|
2588
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
|
|
2584
2589
|
import ts17 from "typescript";
|
|
2585
2590
|
var INELIGIBLE = {};
|
|
2586
2591
|
function canEmitType(type, canEmit) {
|
|
@@ -2656,11 +2661,11 @@ var TypeEmitter = class {
|
|
|
2656
2661
|
}
|
|
2657
2662
|
};
|
|
2658
2663
|
|
|
2659
|
-
// bazel-out/
|
|
2664
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
2660
2665
|
import * as o2 from "@angular/compiler";
|
|
2661
2666
|
import ts19 from "typescript";
|
|
2662
2667
|
|
|
2663
|
-
// bazel-out/
|
|
2668
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
|
|
2664
2669
|
import ts18 from "typescript";
|
|
2665
2670
|
function tsNumericExpression(value) {
|
|
2666
2671
|
if (value < 0) {
|
|
@@ -2670,7 +2675,7 @@ function tsNumericExpression(value) {
|
|
|
2670
2675
|
return ts18.factory.createNumericLiteral(value);
|
|
2671
2676
|
}
|
|
2672
2677
|
|
|
2673
|
-
// bazel-out/
|
|
2678
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
2674
2679
|
function translateType(type, contextFile, reflector, refEmitter, imports) {
|
|
2675
2680
|
return type.visitType(new TypeTranslatorVisitor(imports, contextFile, reflector, refEmitter), new Context(false));
|
|
2676
2681
|
}
|
|
@@ -2897,7 +2902,7 @@ var TypeTranslatorVisitor = class {
|
|
|
2897
2902
|
}
|
|
2898
2903
|
};
|
|
2899
2904
|
|
|
2900
|
-
// bazel-out/
|
|
2905
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
2901
2906
|
import ts20 from "typescript";
|
|
2902
2907
|
var PureAnnotation;
|
|
2903
2908
|
(function(PureAnnotation2) {
|
|
@@ -3104,7 +3109,7 @@ function attachComments(statement, leadingComments) {
|
|
|
3104
3109
|
}
|
|
3105
3110
|
}
|
|
3106
3111
|
|
|
3107
|
-
// bazel-out/
|
|
3112
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
3108
3113
|
function translateExpression(contextFile, expression, imports, options = {}) {
|
|
3109
3114
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, contextFile, options), new Context(false));
|
|
3110
3115
|
}
|
|
@@ -3204,4 +3209,4 @@ export {
|
|
|
3204
3209
|
* Use of this source code is governed by an MIT-style license that can be
|
|
3205
3210
|
* found in the LICENSE file at https://angular.dev/license
|
|
3206
3211
|
*/
|
|
3207
|
-
//# sourceMappingURL=chunk-
|
|
3212
|
+
//# sourceMappingURL=chunk-OZ2WSYWM.js.map
|