@angular/compiler-cli 19.0.0-rc.0 → 19.0.0-rc.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-V2Z4WDVR.js → chunk-AJPANXTD.js} +3 -3
- package/bundles/{chunk-TQQOHNLL.js → chunk-BQXOZNTE.js} +101 -85
- package/bundles/{chunk-TQQOHNLL.js.map → chunk-BQXOZNTE.js.map} +1 -1
- package/bundles/{chunk-GBKXY6BH.js → chunk-FKXFEX7K.js} +3 -3
- package/bundles/{chunk-4W4CWRSP.js → chunk-FYHKIXOX.js} +5 -5
- package/bundles/{chunk-S2JI2WY5.js → chunk-HIY6A3BW.js} +190 -157
- package/bundles/chunk-HIY6A3BW.js.map +6 -0
- package/bundles/{chunk-PXQLBKVP.js → chunk-IZRNIUQB.js} +31 -31
- package/bundles/{chunk-TRCFFQ47.js → chunk-KFTXE4DT.js} +52 -49
- package/bundles/chunk-KFTXE4DT.js.map +6 -0
- package/bundles/{chunk-NS33RCEE.js → chunk-LZMAR6SN.js} +12 -12
- 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/metadata/src/api.d.ts +5 -0
- package/src/ngtsc/metadata/src/util.d.ts +5 -2
- package/src/ngtsc/reflection/src/typescript.d.ts +6 -0
- package/src/ngtsc/validation/src/rules/unused_standalone_imports_rule.d.ts +5 -3
- package/bundles/chunk-S2JI2WY5.js.map +0 -6
- package/bundles/chunk-TRCFFQ47.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-V2Z4WDVR.js.map → chunk-AJPANXTD.js.map} +0 -0
- /package/bundles/{chunk-GBKXY6BH.js.map → chunk-FKXFEX7K.js.map} +0 -0
- /package/bundles/{chunk-4W4CWRSP.js.map → chunk-FYHKIXOX.js.map} +0 -0
- /package/bundles/{chunk-PXQLBKVP.js.map → chunk-IZRNIUQB.js.map} +0 -0
- /package/bundles/{chunk-NS33RCEE.js.map → chunk-LZMAR6SN.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-KFTXE4DT.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.0.0-rc.
|
|
314
|
+
var PLACEHOLDER_VERSION = "19.0.0-rc.1";
|
|
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,
|
|
@@ -731,7 +731,7 @@ function parseChangeDetectionStrategy(changeDetectionStrategy) {
|
|
|
731
731
|
return enumValue;
|
|
732
732
|
}
|
|
733
733
|
|
|
734
|
-
// bazel-out/
|
|
734
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_factory_linker_1.mjs
|
|
735
735
|
import { compileFactoryFunction, FactoryTarget } from "@angular/compiler";
|
|
736
736
|
var PartialFactoryLinkerVersion1 = class {
|
|
737
737
|
linkPartialDeclaration(constantPool, metaObj) {
|
|
@@ -767,7 +767,7 @@ function getDependencies(metaObj, propName) {
|
|
|
767
767
|
return null;
|
|
768
768
|
}
|
|
769
769
|
|
|
770
|
-
// bazel-out/
|
|
770
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_injectable_linker_1.mjs
|
|
771
771
|
import { compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression2, outputAst as o3 } from "@angular/compiler";
|
|
772
772
|
var PartialInjectableLinkerVersion1 = class {
|
|
773
773
|
linkPartialDeclaration(constantPool, metaObj) {
|
|
@@ -805,7 +805,7 @@ function toR3InjectableMeta(metaObj) {
|
|
|
805
805
|
return meta;
|
|
806
806
|
}
|
|
807
807
|
|
|
808
|
-
// bazel-out/
|
|
808
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_injector_linker_1.mjs
|
|
809
809
|
import { compileInjector } from "@angular/compiler";
|
|
810
810
|
var PartialInjectorLinkerVersion1 = class {
|
|
811
811
|
linkPartialDeclaration(constantPool, metaObj) {
|
|
@@ -827,7 +827,7 @@ function toR3InjectorMeta(metaObj) {
|
|
|
827
827
|
};
|
|
828
828
|
}
|
|
829
829
|
|
|
830
|
-
// bazel-out/
|
|
830
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_ng_module_linker_1.mjs
|
|
831
831
|
import { compileNgModule, R3NgModuleMetadataKind, R3SelectorScopeMode } from "@angular/compiler";
|
|
832
832
|
var PartialNgModuleLinkerVersion1 = class {
|
|
833
833
|
emitInline;
|
|
@@ -900,7 +900,7 @@ function wrapReferences(values) {
|
|
|
900
900
|
return values.getArray().map((i) => wrapReference(i.getOpaque()));
|
|
901
901
|
}
|
|
902
902
|
|
|
903
|
-
// bazel-out/
|
|
903
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_pipe_linker_1.mjs
|
|
904
904
|
import { compilePipeFromMetadata } from "@angular/compiler";
|
|
905
905
|
var PartialPipeLinkerVersion1 = class {
|
|
906
906
|
constructor() {
|
|
@@ -929,7 +929,7 @@ function toR3PipeMeta(metaObj, version) {
|
|
|
929
929
|
};
|
|
930
930
|
}
|
|
931
931
|
|
|
932
|
-
// bazel-out/
|
|
932
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_linker_selector.mjs
|
|
933
933
|
var \u0275\u0275ngDeclareDirective = "\u0275\u0275ngDeclareDirective";
|
|
934
934
|
var \u0275\u0275ngDeclareClassMetadata = "\u0275\u0275ngDeclareClassMetadata";
|
|
935
935
|
var \u0275\u0275ngDeclareComponent = "\u0275\u0275ngDeclareComponent";
|
|
@@ -1034,7 +1034,7 @@ function getRange(comparator, versionStr) {
|
|
|
1034
1034
|
return new semver3.Range(`${comparator}${version.format()}`);
|
|
1035
1035
|
}
|
|
1036
1036
|
|
|
1037
|
-
// bazel-out/
|
|
1037
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/file_linker.mjs
|
|
1038
1038
|
var FileLinker = class {
|
|
1039
1039
|
linkerEnvironment;
|
|
1040
1040
|
linkerSelector;
|
|
@@ -1079,14 +1079,14 @@ var FileLinker = class {
|
|
|
1079
1079
|
}
|
|
1080
1080
|
};
|
|
1081
1081
|
|
|
1082
|
-
// bazel-out/
|
|
1082
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/linker_options.mjs
|
|
1083
1083
|
var DEFAULT_LINKER_OPTIONS = {
|
|
1084
1084
|
sourceMapping: true,
|
|
1085
1085
|
linkerJitMode: false,
|
|
1086
1086
|
unknownDeclarationVersionHandling: "error"
|
|
1087
1087
|
};
|
|
1088
1088
|
|
|
1089
|
-
// bazel-out/
|
|
1089
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/translator.mjs
|
|
1090
1090
|
var Translator = class {
|
|
1091
1091
|
factory;
|
|
1092
1092
|
constructor(factory) {
|
|
@@ -1100,7 +1100,7 @@ var Translator = class {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
};
|
|
1102
1102
|
|
|
1103
|
-
// bazel-out/
|
|
1103
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/linker_environment.mjs
|
|
1104
1104
|
var LinkerEnvironment = class {
|
|
1105
1105
|
fileSystem;
|
|
1106
1106
|
logger;
|
|
@@ -1128,7 +1128,7 @@ var LinkerEnvironment = class {
|
|
|
1128
1128
|
}
|
|
1129
1129
|
};
|
|
1130
1130
|
|
|
1131
|
-
// bazel-out/
|
|
1131
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/needs_linking.mjs
|
|
1132
1132
|
function needsLinking(path, source) {
|
|
1133
1133
|
return declarationFunctions.some((fn) => source.includes(fn));
|
|
1134
1134
|
}
|
|
@@ -1149,4 +1149,4 @@ export {
|
|
|
1149
1149
|
* Use of this source code is governed by an MIT-style license that can be
|
|
1150
1150
|
* found in the LICENSE file at https://angular.dev/license
|
|
1151
1151
|
*/
|
|
1152
|
-
//# sourceMappingURL=chunk-
|
|
1152
|
+
//# sourceMappingURL=chunk-IZRNIUQB.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;
|
|
@@ -748,10 +748,12 @@ var TypeScriptReflectionHost = class {
|
|
|
748
748
|
return importInfo !== null && importInfo.from !== null && !importInfo.from.startsWith(".") ? importInfo.from : null;
|
|
749
749
|
}
|
|
750
750
|
};
|
|
751
|
+
var TypeEntityToDeclarationError = class extends Error {
|
|
752
|
+
};
|
|
751
753
|
function reflectTypeEntityToDeclaration(type, checker) {
|
|
752
754
|
let realSymbol = checker.getSymbolAtLocation(type);
|
|
753
755
|
if (realSymbol === void 0) {
|
|
754
|
-
throw new
|
|
756
|
+
throw new TypeEntityToDeclarationError(`Cannot resolve type entity ${type.getText()} to symbol`);
|
|
755
757
|
}
|
|
756
758
|
while (realSymbol.flags & ts5.SymbolFlags.Alias) {
|
|
757
759
|
realSymbol = checker.getAliasedSymbol(realSymbol);
|
|
@@ -762,28 +764,28 @@ function reflectTypeEntityToDeclaration(type, checker) {
|
|
|
762
764
|
} else if (realSymbol.declarations !== void 0 && realSymbol.declarations.length === 1) {
|
|
763
765
|
node = realSymbol.declarations[0];
|
|
764
766
|
} else {
|
|
765
|
-
throw new
|
|
767
|
+
throw new TypeEntityToDeclarationError(`Cannot resolve type entity symbol to declaration`);
|
|
766
768
|
}
|
|
767
769
|
if (ts5.isQualifiedName(type)) {
|
|
768
770
|
if (!ts5.isIdentifier(type.left)) {
|
|
769
|
-
throw new
|
|
771
|
+
throw new TypeEntityToDeclarationError(`Cannot handle qualified name with non-identifier lhs`);
|
|
770
772
|
}
|
|
771
773
|
const symbol = checker.getSymbolAtLocation(type.left);
|
|
772
774
|
if (symbol === void 0 || symbol.declarations === void 0 || symbol.declarations.length !== 1) {
|
|
773
|
-
throw new
|
|
775
|
+
throw new TypeEntityToDeclarationError(`Cannot resolve qualified type entity lhs to symbol`);
|
|
774
776
|
}
|
|
775
777
|
const decl = symbol.declarations[0];
|
|
776
778
|
if (ts5.isNamespaceImport(decl)) {
|
|
777
779
|
const clause = decl.parent;
|
|
778
780
|
const importDecl = clause.parent;
|
|
779
781
|
if (!ts5.isStringLiteral(importDecl.moduleSpecifier)) {
|
|
780
|
-
throw new
|
|
782
|
+
throw new TypeEntityToDeclarationError(`Module specifier is not a string`);
|
|
781
783
|
}
|
|
782
784
|
return { node, from: importDecl.moduleSpecifier.text };
|
|
783
785
|
} else if (ts5.isModuleDeclaration(decl)) {
|
|
784
786
|
return { node, from: null };
|
|
785
787
|
} else {
|
|
786
|
-
throw new
|
|
788
|
+
throw new TypeEntityToDeclarationError(`Unknown import type?`);
|
|
787
789
|
}
|
|
788
790
|
} else {
|
|
789
791
|
return { node, from: null };
|
|
@@ -948,7 +950,7 @@ function getExportedName(decl, originalId) {
|
|
|
948
950
|
}
|
|
949
951
|
var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
|
|
950
952
|
|
|
951
|
-
// bazel-out/
|
|
953
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
|
|
952
954
|
import ts6 from "typescript";
|
|
953
955
|
var TS = /\.tsx?$/i;
|
|
954
956
|
var D_TS = /\.d\.ts$/i;
|
|
@@ -1049,7 +1051,7 @@ function toUnredirectedSourceFile(sf) {
|
|
|
1049
1051
|
return redirectInfo.unredirected;
|
|
1050
1052
|
}
|
|
1051
1053
|
|
|
1052
|
-
// bazel-out/
|
|
1054
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
|
|
1053
1055
|
var Reference = class {
|
|
1054
1056
|
node;
|
|
1055
1057
|
bestGuessOwningModule;
|
|
@@ -1121,14 +1123,14 @@ var Reference = class {
|
|
|
1121
1123
|
}
|
|
1122
1124
|
};
|
|
1123
1125
|
|
|
1124
|
-
// bazel-out/
|
|
1126
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
1125
1127
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
1126
1128
|
|
|
1127
|
-
// bazel-out/
|
|
1129
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
1128
1130
|
import { ExternalExpr, ExternalReference, WrappedNodeExpr } from "@angular/compiler";
|
|
1129
1131
|
import ts7 from "typescript";
|
|
1130
1132
|
|
|
1131
|
-
// bazel-out/
|
|
1133
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
|
|
1132
1134
|
function findExportedNameOfNode(target, file, reflector) {
|
|
1133
1135
|
const exports = reflector.getExportsOfModule(file);
|
|
1134
1136
|
if (exports === null) {
|
|
@@ -1148,7 +1150,7 @@ function findExportedNameOfNode(target, file, reflector) {
|
|
|
1148
1150
|
return foundExportName;
|
|
1149
1151
|
}
|
|
1150
1152
|
|
|
1151
|
-
// bazel-out/
|
|
1153
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
1152
1154
|
var ImportFlags;
|
|
1153
1155
|
(function(ImportFlags2) {
|
|
1154
1156
|
ImportFlags2[ImportFlags2["None"] = 0] = "None";
|
|
@@ -1390,7 +1392,7 @@ var UnifiedModulesStrategy = class {
|
|
|
1390
1392
|
}
|
|
1391
1393
|
};
|
|
1392
1394
|
|
|
1393
|
-
// bazel-out/
|
|
1395
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
1394
1396
|
var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
|
|
1395
1397
|
var UnifiedModulesAliasingHost = class {
|
|
1396
1398
|
unifiedModulesHost;
|
|
@@ -1459,7 +1461,7 @@ var AliasStrategy = class {
|
|
|
1459
1461
|
}
|
|
1460
1462
|
};
|
|
1461
1463
|
|
|
1462
|
-
// bazel-out/
|
|
1464
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
|
|
1463
1465
|
function relativePathBetween(from, to) {
|
|
1464
1466
|
const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
|
|
1465
1467
|
return relativePath !== "" ? toRelativeImport(relativePath) : null;
|
|
@@ -1478,7 +1480,7 @@ function getProjectRelativePath(sourceFile, rootDirs, compilerHost) {
|
|
|
1478
1480
|
return null;
|
|
1479
1481
|
}
|
|
1480
1482
|
|
|
1481
|
-
// bazel-out/
|
|
1483
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
|
|
1482
1484
|
var NoopImportRewriter = class {
|
|
1483
1485
|
rewriteSymbol(symbol, specifier) {
|
|
1484
1486
|
return symbol;
|
|
@@ -1538,7 +1540,7 @@ function validateAndRewriteCoreSymbol(name) {
|
|
|
1538
1540
|
return CORE_SUPPORTED_SYMBOLS.get(name);
|
|
1539
1541
|
}
|
|
1540
1542
|
|
|
1541
|
-
// bazel-out/
|
|
1543
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
|
|
1542
1544
|
import ts8 from "typescript";
|
|
1543
1545
|
var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
|
|
1544
1546
|
function loadIsReferencedAliasDeclarationPatch(context) {
|
|
@@ -1573,7 +1575,7 @@ function throwIncompatibleTransformationContextError() {
|
|
|
1573
1575
|
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.");
|
|
1574
1576
|
}
|
|
1575
1577
|
|
|
1576
|
-
// bazel-out/
|
|
1578
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
1577
1579
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
1578
1580
|
function attachDefaultImportDeclaration(expr, importDecl) {
|
|
1579
1581
|
expr[DefaultImportDeclaration] = importDecl;
|
|
@@ -1612,7 +1614,7 @@ var DefaultImportTracker = class {
|
|
|
1612
1614
|
}
|
|
1613
1615
|
};
|
|
1614
1616
|
|
|
1615
|
-
// bazel-out/
|
|
1617
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
|
|
1616
1618
|
import ts9 from "typescript";
|
|
1617
1619
|
var AssumeEager = "AssumeEager";
|
|
1618
1620
|
var DeferredSymbolTracker = class {
|
|
@@ -1735,7 +1737,7 @@ var DeferredSymbolTracker = class {
|
|
|
1735
1737
|
}
|
|
1736
1738
|
};
|
|
1737
1739
|
|
|
1738
|
-
// bazel-out/
|
|
1740
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/imported_symbols_tracker.mjs
|
|
1739
1741
|
import ts10 from "typescript";
|
|
1740
1742
|
var ImportedSymbolsTracker = class {
|
|
1741
1743
|
fileToNamedImports = /* @__PURE__ */ new WeakMap();
|
|
@@ -1803,7 +1805,7 @@ var ImportedSymbolsTracker = class {
|
|
|
1803
1805
|
}
|
|
1804
1806
|
};
|
|
1805
1807
|
|
|
1806
|
-
// bazel-out/
|
|
1808
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/local_compilation_extra_imports_tracker.mjs
|
|
1807
1809
|
import ts11 from "typescript";
|
|
1808
1810
|
var LocalCompilationExtraImportsTracker = class {
|
|
1809
1811
|
typeChecker;
|
|
@@ -1855,7 +1857,7 @@ function removeQuotations(s) {
|
|
|
1855
1857
|
return s.substring(1, s.length - 1).trim();
|
|
1856
1858
|
}
|
|
1857
1859
|
|
|
1858
|
-
// bazel-out/
|
|
1860
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
|
|
1859
1861
|
var ModuleResolver = class {
|
|
1860
1862
|
program;
|
|
1861
1863
|
compilerOptions;
|
|
@@ -1876,10 +1878,10 @@ var ModuleResolver = class {
|
|
|
1876
1878
|
}
|
|
1877
1879
|
};
|
|
1878
1880
|
|
|
1879
|
-
// bazel-out/
|
|
1881
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
|
|
1880
1882
|
import ts16 from "typescript";
|
|
1881
1883
|
|
|
1882
|
-
// bazel-out/
|
|
1884
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/check_unique_identifier_name.mjs
|
|
1883
1885
|
import ts12 from "typescript";
|
|
1884
1886
|
function createGenerateUniqueIdentifierHelper() {
|
|
1885
1887
|
const generatedIdentifiers = /* @__PURE__ */ new Set();
|
|
@@ -1905,7 +1907,7 @@ function createGenerateUniqueIdentifierHelper() {
|
|
|
1905
1907
|
};
|
|
1906
1908
|
}
|
|
1907
1909
|
|
|
1908
|
-
// bazel-out/
|
|
1910
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_typescript_transform.mjs
|
|
1909
1911
|
import ts13 from "typescript";
|
|
1910
1912
|
function createTsTransformForImportManager(manager, extraStatementsForFiles) {
|
|
1911
1913
|
return (ctx) => {
|
|
@@ -1972,7 +1974,7 @@ function isImportStatement(stmt) {
|
|
|
1972
1974
|
return ts13.isImportDeclaration(stmt) || ts13.isImportEqualsDeclaration(stmt) || ts13.isNamespaceImport(stmt);
|
|
1973
1975
|
}
|
|
1974
1976
|
|
|
1975
|
-
// bazel-out/
|
|
1977
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_generated_imports.mjs
|
|
1976
1978
|
import ts14 from "typescript";
|
|
1977
1979
|
function attemptToReuseGeneratedImports(tracker, request) {
|
|
1978
1980
|
const requestHash = hashImportRequest(request);
|
|
@@ -1999,7 +2001,7 @@ function hashImportRequest(req) {
|
|
|
1999
2001
|
return `${req.requestedFile.fileName}:${req.exportModuleSpecifier}:${req.exportSymbolName}${req.unsafeAliasOverride ? ":" + req.unsafeAliasOverride : ""}`;
|
|
2000
2002
|
}
|
|
2001
2003
|
|
|
2002
|
-
// bazel-out/
|
|
2004
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_source_file_imports.mjs
|
|
2003
2005
|
import ts15 from "typescript";
|
|
2004
2006
|
function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
|
|
2005
2007
|
let candidateImportToBeUpdated = null;
|
|
@@ -2059,7 +2061,7 @@ function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
|
|
|
2059
2061
|
return fileUniqueAlias != null ? fileUniqueAlias : propertyName;
|
|
2060
2062
|
}
|
|
2061
2063
|
|
|
2062
|
-
// bazel-out/
|
|
2064
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
|
|
2063
2065
|
var presetImportManagerForceNamespaceImports = {
|
|
2064
2066
|
disableOriginalSourceFileReuse: true,
|
|
2065
2067
|
forceGenerateNamespacesForNewImports: true
|
|
@@ -2282,7 +2284,7 @@ function createImportReference(asTypeReference, ref) {
|
|
|
2282
2284
|
}
|
|
2283
2285
|
}
|
|
2284
2286
|
|
|
2285
|
-
// bazel-out/
|
|
2287
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
2286
2288
|
var Context = class {
|
|
2287
2289
|
isStatement;
|
|
2288
2290
|
constructor(isStatement) {
|
|
@@ -2296,7 +2298,7 @@ var Context = class {
|
|
|
2296
2298
|
}
|
|
2297
2299
|
};
|
|
2298
2300
|
|
|
2299
|
-
// bazel-out/
|
|
2301
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
2300
2302
|
import * as o from "@angular/compiler";
|
|
2301
2303
|
var UNARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
2302
2304
|
[o.UnaryOperator.Minus, "-"],
|
|
@@ -2552,7 +2554,7 @@ function createRange(span) {
|
|
|
2552
2554
|
};
|
|
2553
2555
|
}
|
|
2554
2556
|
|
|
2555
|
-
// bazel-out/
|
|
2557
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
|
|
2556
2558
|
import ts17 from "typescript";
|
|
2557
2559
|
var INELIGIBLE = {};
|
|
2558
2560
|
function canEmitType(type, canEmit) {
|
|
@@ -2628,11 +2630,11 @@ var TypeEmitter = class {
|
|
|
2628
2630
|
}
|
|
2629
2631
|
};
|
|
2630
2632
|
|
|
2631
|
-
// bazel-out/
|
|
2633
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
2632
2634
|
import * as o2 from "@angular/compiler";
|
|
2633
2635
|
import ts19 from "typescript";
|
|
2634
2636
|
|
|
2635
|
-
// bazel-out/
|
|
2637
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
|
|
2636
2638
|
import ts18 from "typescript";
|
|
2637
2639
|
function tsNumericExpression(value) {
|
|
2638
2640
|
if (value < 0) {
|
|
@@ -2642,7 +2644,7 @@ function tsNumericExpression(value) {
|
|
|
2642
2644
|
return ts18.factory.createNumericLiteral(value);
|
|
2643
2645
|
}
|
|
2644
2646
|
|
|
2645
|
-
// bazel-out/
|
|
2647
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
2646
2648
|
function translateType(type, contextFile, reflector, refEmitter, imports) {
|
|
2647
2649
|
return type.visitType(new TypeTranslatorVisitor(imports, contextFile, reflector, refEmitter), new Context(false));
|
|
2648
2650
|
}
|
|
@@ -2863,7 +2865,7 @@ var TypeTranslatorVisitor = class {
|
|
|
2863
2865
|
}
|
|
2864
2866
|
};
|
|
2865
2867
|
|
|
2866
|
-
// bazel-out/
|
|
2868
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
2867
2869
|
import ts20 from "typescript";
|
|
2868
2870
|
var PureAnnotation;
|
|
2869
2871
|
(function(PureAnnotation2) {
|
|
@@ -3067,7 +3069,7 @@ function attachComments(statement, leadingComments) {
|
|
|
3067
3069
|
}
|
|
3068
3070
|
}
|
|
3069
3071
|
|
|
3070
|
-
// bazel-out/
|
|
3072
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
3071
3073
|
function translateExpression(contextFile, expression, imports, options = {}) {
|
|
3072
3074
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, contextFile, options), new Context(false));
|
|
3073
3075
|
}
|
|
@@ -3132,6 +3134,7 @@ export {
|
|
|
3132
3134
|
isNamedClassDeclaration,
|
|
3133
3135
|
classMemberAccessLevelToString,
|
|
3134
3136
|
TypeScriptReflectionHost,
|
|
3137
|
+
TypeEntityToDeclarationError,
|
|
3135
3138
|
reflectTypeEntityToDeclaration,
|
|
3136
3139
|
filterToMembersWithDecorator,
|
|
3137
3140
|
reflectClassMember,
|
|
@@ -3165,4 +3168,4 @@ export {
|
|
|
3165
3168
|
* Use of this source code is governed by an MIT-style license that can be
|
|
3166
3169
|
* found in the LICENSE file at https://angular.dev/license
|
|
3167
3170
|
*/
|
|
3168
|
-
//# sourceMappingURL=chunk-
|
|
3171
|
+
//# sourceMappingURL=chunk-KFTXE4DT.js.map
|