@angular/compiler-cli 19.0.0-next.7 → 19.0.0-next.9
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-FMA7PJT3.js → chunk-3Z25BX6N.js} +7 -7
- package/bundles/{chunk-24RAQD7D.js → chunk-5W3ITOS7.js} +6 -6
- package/bundles/chunk-5W3ITOS7.js.map +6 -0
- package/bundles/{chunk-6YYOILZF.js → chunk-GCXHOI3T.js} +185 -139
- package/bundles/chunk-GCXHOI3T.js.map +6 -0
- package/bundles/{chunk-AOL33GUJ.js → chunk-JF4LKQQP.js} +31 -31
- package/bundles/{chunk-IF37SPTA.js → chunk-OSPR7JSU.js} +46 -45
- package/bundles/chunk-OSPR7JSU.js.map +6 -0
- package/bundles/{chunk-EH5E5HQO.js → chunk-RT2QTF73.js} +3 -3
- package/bundles/{chunk-4SDD6AUK.js → chunk-U6J7NRJM.js} +115 -93
- package/bundles/chunk-U6J7NRJM.js.map +6 -0
- package/bundles/{chunk-MTBZ3GX2.js → chunk-UJ2J6WV4.js} +8 -8
- package/bundles/{chunk-EWRID7KM.js → chunk-XP6IMCQP.js} +12 -12
- package/bundles/{chunk-UQPYSPIX.js → chunk-XSNUHRLJ.js} +5 -5
- package/bundles/{chunk-XMNIXGGD.js → chunk-ZQ7CP635.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 +3 -3
- package/src/ngtsc/annotations/common/src/api.d.ts +14 -0
- package/src/ngtsc/annotations/component/src/handler.d.ts +3 -1
- package/src/ngtsc/annotations/directive/src/handler.d.ts +2 -1
- package/src/ngtsc/annotations/directive/src/shared.d.ts +1 -1
- package/src/ngtsc/annotations/src/pipe.d.ts +2 -1
- package/src/ngtsc/core/api/src/interfaces.d.ts +14 -0
- package/src/ngtsc/core/api/src/public_options.d.ts +4 -0
- package/src/ngtsc/diagnostics/src/error_code.d.ts +4 -0
- package/src/ngtsc/typecheck/api/checker.d.ts +1 -1
- package/src/ngtsc/typecheck/src/checker.d.ts +1 -1
- package/src/ngtsc/validation/src/rules/unused_standalone_imports_rule.d.ts +6 -0
- package/bundles/chunk-24RAQD7D.js.map +0 -6
- package/bundles/chunk-4SDD6AUK.js.map +0 -6
- package/bundles/chunk-6YYOILZF.js.map +0 -6
- package/bundles/chunk-IF37SPTA.js.map +0 -6
- /package/bundles/{chunk-FMA7PJT3.js.map → chunk-3Z25BX6N.js.map} +0 -0
- /package/bundles/{chunk-AOL33GUJ.js.map → chunk-JF4LKQQP.js.map} +0 -0
- /package/bundles/{chunk-EH5E5HQO.js.map → chunk-RT2QTF73.js.map} +0 -0
- /package/bundles/{chunk-MTBZ3GX2.js.map → chunk-UJ2J6WV4.js.map} +0 -0
- /package/bundles/{chunk-EWRID7KM.js.map → chunk-XP6IMCQP.js.map} +0 -0
- /package/bundles/{chunk-UQPYSPIX.js.map → chunk-XSNUHRLJ.js.map} +0 -0
- /package/bundles/{chunk-XMNIXGGD.js.map → chunk-ZQ7CP635.js.map} +0 -0
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
import {
|
|
6
6
|
Context,
|
|
7
7
|
ExpressionTranslatorVisitor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OSPR7JSU.js";
|
|
9
9
|
import {
|
|
10
10
|
SourceFileLoader
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3Z25BX6N.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
|
constructor(node, message) {
|
|
16
16
|
super(message);
|
|
@@ -22,14 +22,14 @@ function isFatalLinkerError(e) {
|
|
|
22
22
|
return e && e.type === "FatalLinkerError";
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
// bazel-out/
|
|
25
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/ast/utils.mjs
|
|
26
26
|
function assert(node, predicate, expected) {
|
|
27
27
|
if (!predicate(node)) {
|
|
28
28
|
throw new FatalLinkerError(node, `Unsupported syntax, expected ${expected}.`);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
// bazel-out/
|
|
32
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/ast/ast_value.mjs
|
|
33
33
|
import * as o from "@angular/compiler";
|
|
34
34
|
var AstObject = class {
|
|
35
35
|
static parse(expression, host) {
|
|
@@ -162,10 +162,10 @@ var AstValue = class {
|
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
164
|
|
|
165
|
-
// bazel-out/
|
|
165
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/emit_scopes/emit_scope.mjs
|
|
166
166
|
import { ConstantPool } from "@angular/compiler";
|
|
167
167
|
|
|
168
|
-
// bazel-out/
|
|
168
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/linker_import_generator.mjs
|
|
169
169
|
var LinkerImportGenerator = class {
|
|
170
170
|
constructor(factory, ngImport) {
|
|
171
171
|
this.factory = factory;
|
|
@@ -185,7 +185,7 @@ var LinkerImportGenerator = class {
|
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
187
|
|
|
188
|
-
// bazel-out/
|
|
188
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/emit_scopes/emit_scope.mjs
|
|
189
189
|
var EmitScope = class {
|
|
190
190
|
constructor(ngImport, translator, factory) {
|
|
191
191
|
this.ngImport = ngImport;
|
|
@@ -214,7 +214,7 @@ var EmitScope = class {
|
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
216
|
|
|
217
|
-
// bazel-out/
|
|
217
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/emit_scopes/local_emit_scope.mjs
|
|
218
218
|
var LocalEmitScope = class extends EmitScope {
|
|
219
219
|
translateDefinition(definition) {
|
|
220
220
|
return super.translateDefinition({
|
|
@@ -227,10 +227,10 @@ var LocalEmitScope = class extends EmitScope {
|
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
|
|
230
|
-
// bazel-out/
|
|
230
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_linker_selector.mjs
|
|
231
231
|
import semver2 from "semver";
|
|
232
232
|
|
|
233
|
-
// bazel-out/
|
|
233
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/get_source_file.mjs
|
|
234
234
|
function createGetSourceFile(sourceUrl, code, loader) {
|
|
235
235
|
if (loader === null) {
|
|
236
236
|
return () => null;
|
|
@@ -245,7 +245,7 @@ function createGetSourceFile(sourceUrl, code, loader) {
|
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
// bazel-out/
|
|
248
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_class_metadata_async_linker_1.mjs
|
|
249
249
|
import { compileOpaqueAsyncClassMetadata } from "@angular/compiler";
|
|
250
250
|
var PartialClassMetadataAsyncLinkerVersion1 = class {
|
|
251
251
|
linkPartialDeclaration(constantPool, metaObj) {
|
|
@@ -270,7 +270,7 @@ var PartialClassMetadataAsyncLinkerVersion1 = class {
|
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
272
|
|
|
273
|
-
// bazel-out/
|
|
273
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_class_metadata_linker_1.mjs
|
|
274
274
|
import { compileClassMetadata } from "@angular/compiler";
|
|
275
275
|
var PartialClassMetadataLinkerVersion1 = class {
|
|
276
276
|
linkPartialDeclaration(constantPool, metaObj) {
|
|
@@ -290,16 +290,16 @@ function toR3ClassMetadata(metaObj) {
|
|
|
290
290
|
};
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
// bazel-out/
|
|
293
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_component_linker_1.mjs
|
|
294
294
|
import { ChangeDetectionStrategy, compileComponentFromMetadata, DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, makeBindingParser as makeBindingParser2, parseTemplate, R3TargetBinder, R3TemplateDependencyKind, SelectorMatcher, ViewEncapsulation } from "@angular/compiler";
|
|
295
295
|
import semver from "semver";
|
|
296
296
|
|
|
297
|
-
// bazel-out/
|
|
297
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_directive_linker_1.mjs
|
|
298
298
|
import { compileDirectiveFromMetadata, makeBindingParser, ParseLocation, ParseSourceFile, ParseSourceSpan } from "@angular/compiler";
|
|
299
299
|
|
|
300
|
-
// bazel-out/
|
|
300
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/util.mjs
|
|
301
301
|
import { createMayBeForwardRefExpression, outputAst as o2 } from "@angular/compiler";
|
|
302
|
-
var PLACEHOLDER_VERSION = "19.0.0-next.
|
|
302
|
+
var PLACEHOLDER_VERSION = "19.0.0-next.9";
|
|
303
303
|
function wrapReference(wrapped) {
|
|
304
304
|
return { value: wrapped, type: wrapped };
|
|
305
305
|
}
|
|
@@ -346,7 +346,7 @@ function extractForwardRef(expr) {
|
|
|
346
346
|
return createMayBeForwardRefExpression(wrapperFn.getFunctionReturnValue().getOpaque(), 2);
|
|
347
347
|
}
|
|
348
348
|
|
|
349
|
-
// bazel-out/
|
|
349
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_directive_linker_1.mjs
|
|
350
350
|
var PartialDirectiveLinkerVersion1 = class {
|
|
351
351
|
constructor(sourceUrl, code) {
|
|
352
352
|
this.sourceUrl = sourceUrl;
|
|
@@ -493,7 +493,7 @@ function createSourceSpan(range, code, sourceUrl) {
|
|
|
493
493
|
return new ParseSourceSpan(startLocation, startLocation.moveBy(range.endPos - range.startPos));
|
|
494
494
|
}
|
|
495
495
|
|
|
496
|
-
// bazel-out/
|
|
496
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_component_linker_1.mjs
|
|
497
497
|
function makeDirectiveMetadata(directiveExpr, typeExpr, isComponentByDefault = null) {
|
|
498
498
|
return {
|
|
499
499
|
kind: R3TemplateDependencyKind.Directive,
|
|
@@ -708,7 +708,7 @@ function parseChangeDetectionStrategy(changeDetectionStrategy) {
|
|
|
708
708
|
return enumValue;
|
|
709
709
|
}
|
|
710
710
|
|
|
711
|
-
// bazel-out/
|
|
711
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_factory_linker_1.mjs
|
|
712
712
|
import { compileFactoryFunction, FactoryTarget } from "@angular/compiler";
|
|
713
713
|
var PartialFactoryLinkerVersion1 = class {
|
|
714
714
|
linkPartialDeclaration(constantPool, metaObj) {
|
|
@@ -744,7 +744,7 @@ function getDependencies(metaObj, propName) {
|
|
|
744
744
|
return null;
|
|
745
745
|
}
|
|
746
746
|
|
|
747
|
-
// bazel-out/
|
|
747
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_injectable_linker_1.mjs
|
|
748
748
|
import { compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression2, outputAst as o3 } from "@angular/compiler";
|
|
749
749
|
var PartialInjectableLinkerVersion1 = class {
|
|
750
750
|
linkPartialDeclaration(constantPool, metaObj) {
|
|
@@ -782,7 +782,7 @@ function toR3InjectableMeta(metaObj) {
|
|
|
782
782
|
return meta;
|
|
783
783
|
}
|
|
784
784
|
|
|
785
|
-
// bazel-out/
|
|
785
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_injector_linker_1.mjs
|
|
786
786
|
import { compileInjector } from "@angular/compiler";
|
|
787
787
|
var PartialInjectorLinkerVersion1 = class {
|
|
788
788
|
linkPartialDeclaration(constantPool, metaObj) {
|
|
@@ -804,7 +804,7 @@ function toR3InjectorMeta(metaObj) {
|
|
|
804
804
|
};
|
|
805
805
|
}
|
|
806
806
|
|
|
807
|
-
// bazel-out/
|
|
807
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_ng_module_linker_1.mjs
|
|
808
808
|
import { compileNgModule, R3NgModuleMetadataKind, R3SelectorScopeMode } from "@angular/compiler";
|
|
809
809
|
var PartialNgModuleLinkerVersion1 = class {
|
|
810
810
|
constructor(emitInline) {
|
|
@@ -876,7 +876,7 @@ function wrapReferences(values) {
|
|
|
876
876
|
return values.getArray().map((i) => wrapReference(i.getOpaque()));
|
|
877
877
|
}
|
|
878
878
|
|
|
879
|
-
// bazel-out/
|
|
879
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_pipe_linker_1.mjs
|
|
880
880
|
import { compilePipeFromMetadata } from "@angular/compiler";
|
|
881
881
|
var PartialPipeLinkerVersion1 = class {
|
|
882
882
|
constructor() {
|
|
@@ -905,7 +905,7 @@ function toR3PipeMeta(metaObj) {
|
|
|
905
905
|
};
|
|
906
906
|
}
|
|
907
907
|
|
|
908
|
-
// bazel-out/
|
|
908
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_linker_selector.mjs
|
|
909
909
|
var \u0275\u0275ngDeclareDirective = "\u0275\u0275ngDeclareDirective";
|
|
910
910
|
var \u0275\u0275ngDeclareClassMetadata = "\u0275\u0275ngDeclareClassMetadata";
|
|
911
911
|
var \u0275\u0275ngDeclareComponent = "\u0275\u0275ngDeclareComponent";
|
|
@@ -1007,7 +1007,7 @@ function getRange(comparator, versionStr) {
|
|
|
1007
1007
|
return new semver2.Range(`${comparator}${version.format()}`);
|
|
1008
1008
|
}
|
|
1009
1009
|
|
|
1010
|
-
// bazel-out/
|
|
1010
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/file_linker.mjs
|
|
1011
1011
|
var FileLinker = class {
|
|
1012
1012
|
constructor(linkerEnvironment, sourceUrl, code) {
|
|
1013
1013
|
this.linkerEnvironment = linkerEnvironment;
|
|
@@ -1050,14 +1050,14 @@ var FileLinker = class {
|
|
|
1050
1050
|
}
|
|
1051
1051
|
};
|
|
1052
1052
|
|
|
1053
|
-
// bazel-out/
|
|
1053
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/linker_options.mjs
|
|
1054
1054
|
var DEFAULT_LINKER_OPTIONS = {
|
|
1055
1055
|
sourceMapping: true,
|
|
1056
1056
|
linkerJitMode: false,
|
|
1057
1057
|
unknownDeclarationVersionHandling: "error"
|
|
1058
1058
|
};
|
|
1059
1059
|
|
|
1060
|
-
// bazel-out/
|
|
1060
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/translator.mjs
|
|
1061
1061
|
var Translator = class {
|
|
1062
1062
|
constructor(factory) {
|
|
1063
1063
|
this.factory = factory;
|
|
@@ -1070,7 +1070,7 @@ var Translator = class {
|
|
|
1070
1070
|
}
|
|
1071
1071
|
};
|
|
1072
1072
|
|
|
1073
|
-
// bazel-out/
|
|
1073
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/linker_environment.mjs
|
|
1074
1074
|
var LinkerEnvironment = class {
|
|
1075
1075
|
constructor(fileSystem, logger, host, factory, options) {
|
|
1076
1076
|
this.fileSystem = fileSystem;
|
|
@@ -1091,7 +1091,7 @@ var LinkerEnvironment = class {
|
|
|
1091
1091
|
}
|
|
1092
1092
|
};
|
|
1093
1093
|
|
|
1094
|
-
// bazel-out/
|
|
1094
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/needs_linking.mjs
|
|
1095
1095
|
function needsLinking(path, source) {
|
|
1096
1096
|
return declarationFunctions.some((fn) => source.includes(fn));
|
|
1097
1097
|
}
|
|
@@ -1112,4 +1112,4 @@ export {
|
|
|
1112
1112
|
* Use of this source code is governed by an MIT-style license that can be
|
|
1113
1113
|
* found in the LICENSE file at https://angular.dev/license
|
|
1114
1114
|
*/
|
|
1115
|
-
//# sourceMappingURL=chunk-
|
|
1115
|
+
//# sourceMappingURL=chunk-JF4LKQQP.js.map
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
resolve,
|
|
13
13
|
stripExtension,
|
|
14
14
|
toRelativeImport
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UJ2J6WV4.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";
|
|
@@ -54,6 +54,7 @@ var ErrorCode;
|
|
|
54
54
|
ErrorCode2[ErrorCode2["CONFLICTING_INPUT_TRANSFORM"] = 2020] = "CONFLICTING_INPUT_TRANSFORM";
|
|
55
55
|
ErrorCode2[ErrorCode2["COMPONENT_INVALID_STYLE_URLS"] = 2021] = "COMPONENT_INVALID_STYLE_URLS";
|
|
56
56
|
ErrorCode2[ErrorCode2["COMPONENT_UNKNOWN_DEFERRED_IMPORT"] = 2022] = "COMPONENT_UNKNOWN_DEFERRED_IMPORT";
|
|
57
|
+
ErrorCode2[ErrorCode2["NON_STANDALONE_NOT_ALLOWED"] = 2023] = "NON_STANDALONE_NOT_ALLOWED";
|
|
57
58
|
ErrorCode2[ErrorCode2["SYMBOL_NOT_EXPORTED"] = 3001] = "SYMBOL_NOT_EXPORTED";
|
|
58
59
|
ErrorCode2[ErrorCode2["IMPORT_CYCLE_DETECTED"] = 3003] = "IMPORT_CYCLE_DETECTED";
|
|
59
60
|
ErrorCode2[ErrorCode2["IMPORT_GENERATION_FAILURE"] = 3004] = "IMPORT_GENERATION_FAILURE";
|
|
@@ -113,7 +114,7 @@ var ErrorCode;
|
|
|
113
114
|
ErrorCode2[ErrorCode2["LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION"] = 11003] = "LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION";
|
|
114
115
|
})(ErrorCode || (ErrorCode = {}));
|
|
115
116
|
|
|
116
|
-
// bazel-out/
|
|
117
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
117
118
|
var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
|
|
118
119
|
function replaceTsWithNgInErrors(errors) {
|
|
119
120
|
return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
|
|
@@ -122,7 +123,7 @@ function ngErrorCode(code) {
|
|
|
122
123
|
return parseInt("-99" + code);
|
|
123
124
|
}
|
|
124
125
|
|
|
125
|
-
// bazel-out/
|
|
126
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
126
127
|
var FatalDiagnosticError = class extends Error {
|
|
127
128
|
constructor(code, node, diagnosticMessage, relatedInformation) {
|
|
128
129
|
super(`FatalDiagnosticError: Code: ${code}, Message: ${ts.flattenDiagnosticMessageText(diagnosticMessage, "\n")}`);
|
|
@@ -186,7 +187,7 @@ function isLocalCompilationDiagnostics(diagnostic) {
|
|
|
186
187
|
return diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNRESOLVED_CONST) || diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION);
|
|
187
188
|
}
|
|
188
189
|
|
|
189
|
-
// bazel-out/
|
|
190
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
190
191
|
var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
191
192
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
192
193
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -198,10 +199,10 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
|
198
199
|
ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
|
|
199
200
|
]);
|
|
200
201
|
|
|
201
|
-
// bazel-out/
|
|
202
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
|
|
202
203
|
var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.dev/errors";
|
|
203
204
|
|
|
204
|
-
// bazel-out/
|
|
205
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
|
|
205
206
|
var ExtendedTemplateDiagnosticName;
|
|
206
207
|
(function(ExtendedTemplateDiagnosticName2) {
|
|
207
208
|
ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
|
|
@@ -219,10 +220,10 @@ var ExtendedTemplateDiagnosticName;
|
|
|
219
220
|
ExtendedTemplateDiagnosticName2["UNUSED_STANDALONE_IMPORTS"] = "unusedStandaloneImports";
|
|
220
221
|
})(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
|
|
221
222
|
|
|
222
|
-
// bazel-out/
|
|
223
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
223
224
|
import ts5 from "typescript";
|
|
224
225
|
|
|
225
|
-
// bazel-out/
|
|
226
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
|
|
226
227
|
import ts2 from "typescript";
|
|
227
228
|
function isDecoratorIdentifier(exp) {
|
|
228
229
|
return ts2.isIdentifier(exp) || ts2.isPropertyAccessExpression(exp) && ts2.isIdentifier(exp.expression) && ts2.isIdentifier(exp.name);
|
|
@@ -245,7 +246,7 @@ var ClassMemberAccessLevel;
|
|
|
245
246
|
})(ClassMemberAccessLevel || (ClassMemberAccessLevel = {}));
|
|
246
247
|
var AmbientImport = {};
|
|
247
248
|
|
|
248
|
-
// bazel-out/
|
|
249
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
|
|
249
250
|
import ts3 from "typescript";
|
|
250
251
|
function typeToValue(typeNode, checker, isLocalCompilation) {
|
|
251
252
|
var _a, _b;
|
|
@@ -429,7 +430,7 @@ function extractModuleName(node) {
|
|
|
429
430
|
return node.moduleSpecifier.text;
|
|
430
431
|
}
|
|
431
432
|
|
|
432
|
-
// bazel-out/
|
|
433
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
|
|
433
434
|
import ts4 from "typescript";
|
|
434
435
|
function isNamedClassDeclaration(node) {
|
|
435
436
|
return ts4.isClassDeclaration(node) && isIdentifier(node.name);
|
|
@@ -453,7 +454,7 @@ function classMemberAccessLevelToString(level) {
|
|
|
453
454
|
}
|
|
454
455
|
}
|
|
455
456
|
|
|
456
|
-
// bazel-out/
|
|
457
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
457
458
|
var TypeScriptReflectionHost = class {
|
|
458
459
|
constructor(checker, isLocalCompilation = false) {
|
|
459
460
|
this.checker = checker;
|
|
@@ -941,7 +942,7 @@ function getExportedName(decl, originalId) {
|
|
|
941
942
|
}
|
|
942
943
|
var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
|
|
943
944
|
|
|
944
|
-
// bazel-out/
|
|
945
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
|
|
945
946
|
import ts6 from "typescript";
|
|
946
947
|
var TS = /\.tsx?$/i;
|
|
947
948
|
var D_TS = /\.d\.ts$/i;
|
|
@@ -1042,7 +1043,7 @@ function toUnredirectedSourceFile(sf) {
|
|
|
1042
1043
|
return redirectInfo.unredirected;
|
|
1043
1044
|
}
|
|
1044
1045
|
|
|
1045
|
-
// bazel-out/
|
|
1046
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
|
|
1046
1047
|
var Reference = class {
|
|
1047
1048
|
constructor(node, bestGuessOwningModule = null) {
|
|
1048
1049
|
this.node = node;
|
|
@@ -1111,14 +1112,14 @@ var Reference = class {
|
|
|
1111
1112
|
}
|
|
1112
1113
|
};
|
|
1113
1114
|
|
|
1114
|
-
// bazel-out/
|
|
1115
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
1115
1116
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
1116
1117
|
|
|
1117
|
-
// bazel-out/
|
|
1118
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
1118
1119
|
import { ExternalExpr, ExternalReference, WrappedNodeExpr } from "@angular/compiler";
|
|
1119
1120
|
import ts7 from "typescript";
|
|
1120
1121
|
|
|
1121
|
-
// bazel-out/
|
|
1122
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
|
|
1122
1123
|
function findExportedNameOfNode(target, file, reflector) {
|
|
1123
1124
|
const exports = reflector.getExportsOfModule(file);
|
|
1124
1125
|
if (exports === null) {
|
|
@@ -1138,7 +1139,7 @@ function findExportedNameOfNode(target, file, reflector) {
|
|
|
1138
1139
|
return foundExportName;
|
|
1139
1140
|
}
|
|
1140
1141
|
|
|
1141
|
-
// bazel-out/
|
|
1142
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
1142
1143
|
var ImportFlags;
|
|
1143
1144
|
(function(ImportFlags2) {
|
|
1144
1145
|
ImportFlags2[ImportFlags2["None"] = 0] = "None";
|
|
@@ -1369,7 +1370,7 @@ var UnifiedModulesStrategy = class {
|
|
|
1369
1370
|
}
|
|
1370
1371
|
};
|
|
1371
1372
|
|
|
1372
|
-
// bazel-out/
|
|
1373
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
1373
1374
|
var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
|
|
1374
1375
|
var UnifiedModulesAliasingHost = class {
|
|
1375
1376
|
constructor(unifiedModulesHost) {
|
|
@@ -1436,7 +1437,7 @@ var AliasStrategy = class {
|
|
|
1436
1437
|
}
|
|
1437
1438
|
};
|
|
1438
1439
|
|
|
1439
|
-
// bazel-out/
|
|
1440
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
|
|
1440
1441
|
function relativePathBetween(from, to) {
|
|
1441
1442
|
const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
|
|
1442
1443
|
return relativePath !== "" ? toRelativeImport(relativePath) : null;
|
|
@@ -1445,7 +1446,7 @@ function normalizeSeparators(path) {
|
|
|
1445
1446
|
return path.replace(/\\/g, "/");
|
|
1446
1447
|
}
|
|
1447
1448
|
|
|
1448
|
-
// bazel-out/
|
|
1449
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
|
|
1449
1450
|
var NoopImportRewriter = class {
|
|
1450
1451
|
rewriteSymbol(symbol, specifier) {
|
|
1451
1452
|
return symbol;
|
|
@@ -1498,7 +1499,7 @@ function validateAndRewriteCoreSymbol(name) {
|
|
|
1498
1499
|
return CORE_SUPPORTED_SYMBOLS.get(name);
|
|
1499
1500
|
}
|
|
1500
1501
|
|
|
1501
|
-
// bazel-out/
|
|
1502
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
|
|
1502
1503
|
import ts8 from "typescript";
|
|
1503
1504
|
var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
|
|
1504
1505
|
function loadIsReferencedAliasDeclarationPatch(context) {
|
|
@@ -1533,7 +1534,7 @@ function throwIncompatibleTransformationContextError() {
|
|
|
1533
1534
|
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.");
|
|
1534
1535
|
}
|
|
1535
1536
|
|
|
1536
|
-
// bazel-out/
|
|
1537
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
1537
1538
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
1538
1539
|
function attachDefaultImportDeclaration(expr, importDecl) {
|
|
1539
1540
|
expr[DefaultImportDeclaration] = importDecl;
|
|
@@ -1574,7 +1575,7 @@ var DefaultImportTracker = class {
|
|
|
1574
1575
|
}
|
|
1575
1576
|
};
|
|
1576
1577
|
|
|
1577
|
-
// bazel-out/
|
|
1578
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
|
|
1578
1579
|
import ts9 from "typescript";
|
|
1579
1580
|
var AssumeEager = "AssumeEager";
|
|
1580
1581
|
var DeferredSymbolTracker = class {
|
|
@@ -1651,7 +1652,7 @@ var DeferredSymbolTracker = class {
|
|
|
1651
1652
|
return false;
|
|
1652
1653
|
}
|
|
1653
1654
|
const symbolsMap = this.imports.get(importDecl);
|
|
1654
|
-
for (const
|
|
1655
|
+
for (const refs of symbolsMap.values()) {
|
|
1655
1656
|
if (refs === AssumeEager || refs.size > 0) {
|
|
1656
1657
|
return false;
|
|
1657
1658
|
}
|
|
@@ -1670,7 +1671,7 @@ var DeferredSymbolTracker = class {
|
|
|
1670
1671
|
lookupIdentifiersInSourceFile(name, importDecl) {
|
|
1671
1672
|
const results = /* @__PURE__ */ new Set();
|
|
1672
1673
|
const visit = (node) => {
|
|
1673
|
-
if (node === importDecl) {
|
|
1674
|
+
if (node === importDecl || ts9.isTypeNode(node)) {
|
|
1674
1675
|
return;
|
|
1675
1676
|
}
|
|
1676
1677
|
if (ts9.isIdentifier(node) && node.text === name) {
|
|
@@ -1695,7 +1696,7 @@ var DeferredSymbolTracker = class {
|
|
|
1695
1696
|
}
|
|
1696
1697
|
};
|
|
1697
1698
|
|
|
1698
|
-
// bazel-out/
|
|
1699
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/imported_symbols_tracker.mjs
|
|
1699
1700
|
import ts10 from "typescript";
|
|
1700
1701
|
var ImportedSymbolsTracker = class {
|
|
1701
1702
|
constructor() {
|
|
@@ -1765,7 +1766,7 @@ var ImportedSymbolsTracker = class {
|
|
|
1765
1766
|
}
|
|
1766
1767
|
};
|
|
1767
1768
|
|
|
1768
|
-
// bazel-out/
|
|
1769
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/local_compilation_extra_imports_tracker.mjs
|
|
1769
1770
|
import ts11 from "typescript";
|
|
1770
1771
|
var LocalCompilationExtraImportsTracker = class {
|
|
1771
1772
|
constructor(typeChecker) {
|
|
@@ -1816,7 +1817,7 @@ function removeQuotations(s) {
|
|
|
1816
1817
|
return s.substring(1, s.length - 1).trim();
|
|
1817
1818
|
}
|
|
1818
1819
|
|
|
1819
|
-
// bazel-out/
|
|
1820
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
|
|
1820
1821
|
var ModuleResolver = class {
|
|
1821
1822
|
constructor(program, compilerOptions, host, moduleResolutionCache) {
|
|
1822
1823
|
this.program = program;
|
|
@@ -1833,10 +1834,10 @@ var ModuleResolver = class {
|
|
|
1833
1834
|
}
|
|
1834
1835
|
};
|
|
1835
1836
|
|
|
1836
|
-
// bazel-out/
|
|
1837
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
|
|
1837
1838
|
import ts16 from "typescript";
|
|
1838
1839
|
|
|
1839
|
-
// bazel-out/
|
|
1840
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/check_unique_identifier_name.mjs
|
|
1840
1841
|
import ts12 from "typescript";
|
|
1841
1842
|
function createGenerateUniqueIdentifierHelper() {
|
|
1842
1843
|
const generatedIdentifiers = /* @__PURE__ */ new Set();
|
|
@@ -1862,7 +1863,7 @@ function createGenerateUniqueIdentifierHelper() {
|
|
|
1862
1863
|
};
|
|
1863
1864
|
}
|
|
1864
1865
|
|
|
1865
|
-
// bazel-out/
|
|
1866
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_typescript_transform.mjs
|
|
1866
1867
|
import ts13 from "typescript";
|
|
1867
1868
|
function createTsTransformForImportManager(manager, extraStatementsForFiles) {
|
|
1868
1869
|
return (ctx) => {
|
|
@@ -1929,7 +1930,7 @@ function isImportStatement(stmt) {
|
|
|
1929
1930
|
return ts13.isImportDeclaration(stmt) || ts13.isImportEqualsDeclaration(stmt) || ts13.isNamespaceImport(stmt);
|
|
1930
1931
|
}
|
|
1931
1932
|
|
|
1932
|
-
// bazel-out/
|
|
1933
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_generated_imports.mjs
|
|
1933
1934
|
import ts14 from "typescript";
|
|
1934
1935
|
function attemptToReuseGeneratedImports(tracker, request) {
|
|
1935
1936
|
const requestHash = hashImportRequest(request);
|
|
@@ -1956,7 +1957,7 @@ function hashImportRequest(req) {
|
|
|
1956
1957
|
return `${req.requestedFile.fileName}:${req.exportModuleSpecifier}:${req.exportSymbolName}${req.unsafeAliasOverride ? ":" + req.unsafeAliasOverride : ""}`;
|
|
1957
1958
|
}
|
|
1958
1959
|
|
|
1959
|
-
// bazel-out/
|
|
1960
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_source_file_imports.mjs
|
|
1960
1961
|
import ts15 from "typescript";
|
|
1961
1962
|
function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
|
|
1962
1963
|
let candidateImportToBeUpdated = null;
|
|
@@ -2016,7 +2017,7 @@ function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
|
|
|
2016
2017
|
return fileUniqueAlias != null ? fileUniqueAlias : propertyName;
|
|
2017
2018
|
}
|
|
2018
2019
|
|
|
2019
|
-
// bazel-out/
|
|
2020
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
|
|
2020
2021
|
var presetImportManagerForceNamespaceImports = {
|
|
2021
2022
|
disableOriginalSourceFileReuse: true,
|
|
2022
2023
|
forceGenerateNamespacesForNewImports: true
|
|
@@ -2234,7 +2235,7 @@ function createImportReference(asTypeReference, ref) {
|
|
|
2234
2235
|
}
|
|
2235
2236
|
}
|
|
2236
2237
|
|
|
2237
|
-
// bazel-out/
|
|
2238
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
2238
2239
|
var Context = class {
|
|
2239
2240
|
constructor(isStatement) {
|
|
2240
2241
|
this.isStatement = isStatement;
|
|
@@ -2247,7 +2248,7 @@ var Context = class {
|
|
|
2247
2248
|
}
|
|
2248
2249
|
};
|
|
2249
2250
|
|
|
2250
|
-
// bazel-out/
|
|
2251
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
2251
2252
|
import * as o from "@angular/compiler";
|
|
2252
2253
|
var UNARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
2253
2254
|
[o.UnaryOperator.Minus, "-"],
|
|
@@ -2493,7 +2494,7 @@ function createRange(span) {
|
|
|
2493
2494
|
};
|
|
2494
2495
|
}
|
|
2495
2496
|
|
|
2496
|
-
// bazel-out/
|
|
2497
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
|
|
2497
2498
|
import ts17 from "typescript";
|
|
2498
2499
|
var INELIGIBLE = {};
|
|
2499
2500
|
function canEmitType(type, canEmit) {
|
|
@@ -2568,11 +2569,11 @@ var TypeEmitter = class {
|
|
|
2568
2569
|
}
|
|
2569
2570
|
};
|
|
2570
2571
|
|
|
2571
|
-
// bazel-out/
|
|
2572
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
2572
2573
|
import * as o2 from "@angular/compiler";
|
|
2573
2574
|
import ts19 from "typescript";
|
|
2574
2575
|
|
|
2575
|
-
// bazel-out/
|
|
2576
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
|
|
2576
2577
|
import ts18 from "typescript";
|
|
2577
2578
|
function tsNumericExpression(value) {
|
|
2578
2579
|
if (value < 0) {
|
|
@@ -2582,7 +2583,7 @@ function tsNumericExpression(value) {
|
|
|
2582
2583
|
return ts18.factory.createNumericLiteral(value);
|
|
2583
2584
|
}
|
|
2584
2585
|
|
|
2585
|
-
// bazel-out/
|
|
2586
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
2586
2587
|
function translateType(type, contextFile, reflector, refEmitter, imports) {
|
|
2587
2588
|
return type.visitType(new TypeTranslatorVisitor(imports, contextFile, reflector, refEmitter), new Context(false));
|
|
2588
2589
|
}
|
|
@@ -2799,7 +2800,7 @@ var TypeTranslatorVisitor = class {
|
|
|
2799
2800
|
}
|
|
2800
2801
|
};
|
|
2801
2802
|
|
|
2802
|
-
// bazel-out/
|
|
2803
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
2803
2804
|
import ts20 from "typescript";
|
|
2804
2805
|
var PureAnnotation;
|
|
2805
2806
|
(function(PureAnnotation2) {
|
|
@@ -3002,7 +3003,7 @@ function attachComments(statement, leadingComments) {
|
|
|
3002
3003
|
}
|
|
3003
3004
|
}
|
|
3004
3005
|
|
|
3005
|
-
// bazel-out/
|
|
3006
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
3006
3007
|
function translateExpression(contextFile, expression, imports, options = {}) {
|
|
3007
3008
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, contextFile, options), new Context(false));
|
|
3008
3009
|
}
|
|
@@ -3099,4 +3100,4 @@ export {
|
|
|
3099
3100
|
* Use of this source code is governed by an MIT-style license that can be
|
|
3100
3101
|
* found in the LICENSE file at https://angular.dev/license
|
|
3101
3102
|
*/
|
|
3102
|
-
//# sourceMappingURL=chunk-
|
|
3103
|
+
//# sourceMappingURL=chunk-OSPR7JSU.js.map
|