@angular/compiler-cli 16.0.0-next.1 → 16.0.0-next.2
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-N6MSUQVH.js → chunk-54RHUHYB.js} +5 -5
- package/bundles/{chunk-JEQIMWEA.js → chunk-7Y2QVZL6.js} +31 -31
- package/bundles/{chunk-JKV3J53A.js → chunk-BVXD7IJL.js} +9 -38
- package/bundles/chunk-BVXD7IJL.js.map +6 -0
- package/bundles/{chunk-TBUSSXUA.js → chunk-EC5K6QPP.js} +7 -7
- package/bundles/{chunk-QQGJEWBQ.js → chunk-EDWIBG7R.js} +6 -6
- package/bundles/{chunk-EKTJ7622.js → chunk-GYHDNUIK.js} +7 -7
- package/bundles/{chunk-Q2TY6LB3.js → chunk-JCJ2GTDZ.js} +5 -5
- package/bundles/{chunk-TK3GHMT6.js → chunk-K2A5WD7L.js} +21 -21
- package/bundles/{chunk-IE2WWKOE.js → chunk-KA5NKHL6.js} +101 -100
- package/bundles/{chunk-IE2WWKOE.js.map → chunk-KA5NKHL6.js.map} +1 -1
- package/bundles/{chunk-6PDKXFWN.js → chunk-LLHKY5PL.js} +8 -8
- package/bundles/{chunk-LYJKWJUC.js → chunk-SBDNBITT.js} +3 -3
- package/bundles/{chunk-XS6XKZQP.js → chunk-W6DWPJBG.js} +77 -77
- package/bundles/index.js +13 -13
- package/bundles/linker/babel/index.js +13 -13
- package/bundles/linker/index.js +5 -5
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +6 -6
- package/bundles/private/tooling.js +4 -4
- package/bundles/src/bin/ng_xi18n.js +11 -11
- package/bundles/src/bin/ngc.js +9 -9
- package/bundles_metadata.json +1 -1
- package/package.json +2 -2
- package/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.d.ts +6 -8
- package/bundles/chunk-JKV3J53A.js.map +0 -6
- /package/bundles/{chunk-N6MSUQVH.js.map → chunk-54RHUHYB.js.map} +0 -0
- /package/bundles/{chunk-JEQIMWEA.js.map → chunk-7Y2QVZL6.js.map} +0 -0
- /package/bundles/{chunk-TBUSSXUA.js.map → chunk-EC5K6QPP.js.map} +0 -0
- /package/bundles/{chunk-QQGJEWBQ.js.map → chunk-EDWIBG7R.js.map} +0 -0
- /package/bundles/{chunk-EKTJ7622.js.map → chunk-GYHDNUIK.js.map} +0 -0
- /package/bundles/{chunk-Q2TY6LB3.js.map → chunk-JCJ2GTDZ.js.map} +0 -0
- /package/bundles/{chunk-TK3GHMT6.js.map → chunk-K2A5WD7L.js.map} +0 -0
- /package/bundles/{chunk-6PDKXFWN.js.map → chunk-LLHKY5PL.js.map} +0 -0
- /package/bundles/{chunk-LYJKWJUC.js.map → chunk-SBDNBITT.js.map} +0 -0
- /package/bundles/{chunk-XS6XKZQP.js.map → chunk-W6DWPJBG.js.map} +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const require = __cjsCompatRequire(import.meta.url);
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
// bazel-out/
|
|
6
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/api.mjs
|
|
7
7
|
var PerfPhase;
|
|
8
8
|
(function(PerfPhase2) {
|
|
9
9
|
PerfPhase2[PerfPhase2["Unaccounted"] = 0] = "Unaccounted";
|
|
@@ -70,7 +70,7 @@ var PerfCheckpoint;
|
|
|
70
70
|
PerfCheckpoint2[PerfCheckpoint2["LAST"] = 9] = "LAST";
|
|
71
71
|
})(PerfCheckpoint || (PerfCheckpoint = {}));
|
|
72
72
|
|
|
73
|
-
// bazel-out/
|
|
73
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
|
|
74
74
|
var NoopPerfRecorder = class {
|
|
75
75
|
eventCount() {
|
|
76
76
|
}
|
|
@@ -87,7 +87,7 @@ var NoopPerfRecorder = class {
|
|
|
87
87
|
};
|
|
88
88
|
var NOOP_PERF_RECORDER = new NoopPerfRecorder();
|
|
89
89
|
|
|
90
|
-
// bazel-out/
|
|
90
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/clock.mjs
|
|
91
91
|
function mark() {
|
|
92
92
|
return process.hrtime();
|
|
93
93
|
}
|
|
@@ -96,7 +96,7 @@ function timeSinceInMicros(mark2) {
|
|
|
96
96
|
return delta[0] * 1e6 + Math.floor(delta[1] / 1e3);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
// bazel-out/
|
|
99
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/recorder.mjs
|
|
100
100
|
var ActivePerfRecorder = class {
|
|
101
101
|
static zeroedToNow() {
|
|
102
102
|
return new ActivePerfRecorder(mark());
|
|
@@ -204,4 +204,4 @@ export {
|
|
|
204
204
|
* Use of this source code is governed by an MIT-style license that can be
|
|
205
205
|
* found in the LICENSE file at https://angular.io/license
|
|
206
206
|
*/
|
|
207
|
-
//# sourceMappingURL=chunk-
|
|
207
|
+
//# sourceMappingURL=chunk-54RHUHYB.js.map
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
SourceFileLoader
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GYHDNUIK.js";
|
|
8
8
|
import {
|
|
9
9
|
Context,
|
|
10
10
|
ExpressionTranslatorVisitor
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LLHKY5PL.js";
|
|
12
12
|
|
|
13
|
-
// bazel-out/
|
|
13
|
+
// bazel-out/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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) {
|
|
@@ -155,10 +155,10 @@ var AstValue = class {
|
|
|
155
155
|
}
|
|
156
156
|
};
|
|
157
157
|
|
|
158
|
-
// bazel-out/
|
|
158
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/emit_scopes/emit_scope.mjs
|
|
159
159
|
import { ConstantPool } from "@angular/compiler";
|
|
160
160
|
|
|
161
|
-
// bazel-out/
|
|
161
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/linker_import_generator.mjs
|
|
162
162
|
var LinkerImportGenerator = class {
|
|
163
163
|
constructor(ngImport) {
|
|
164
164
|
this.ngImport = ngImport;
|
|
@@ -178,7 +178,7 @@ var LinkerImportGenerator = class {
|
|
|
178
178
|
}
|
|
179
179
|
};
|
|
180
180
|
|
|
181
|
-
// bazel-out/
|
|
181
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/emit_scopes/emit_scope.mjs
|
|
182
182
|
var EmitScope = class {
|
|
183
183
|
constructor(ngImport, translator, factory) {
|
|
184
184
|
this.ngImport = ngImport;
|
|
@@ -207,7 +207,7 @@ var EmitScope = class {
|
|
|
207
207
|
}
|
|
208
208
|
};
|
|
209
209
|
|
|
210
|
-
// bazel-out/
|
|
210
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/emit_scopes/local_emit_scope.mjs
|
|
211
211
|
var LocalEmitScope = class extends EmitScope {
|
|
212
212
|
translateDefinition(definition) {
|
|
213
213
|
return super.translateDefinition({
|
|
@@ -220,10 +220,10 @@ var LocalEmitScope = class extends EmitScope {
|
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
222
|
|
|
223
|
-
// bazel-out/
|
|
223
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_linker_selector.mjs
|
|
224
224
|
import semver from "semver";
|
|
225
225
|
|
|
226
|
-
// bazel-out/
|
|
226
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/get_source_file.mjs
|
|
227
227
|
function createGetSourceFile(sourceUrl, code, loader) {
|
|
228
228
|
if (loader === null) {
|
|
229
229
|
return () => null;
|
|
@@ -238,7 +238,7 @@ function createGetSourceFile(sourceUrl, code, loader) {
|
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
// bazel-out/
|
|
241
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_class_metadata_linker_1.mjs
|
|
242
242
|
import { compileClassMetadata } from "@angular/compiler";
|
|
243
243
|
var PartialClassMetadataLinkerVersion1 = class {
|
|
244
244
|
linkPartialDeclaration(constantPool, metaObj) {
|
|
@@ -258,13 +258,13 @@ function toR3ClassMetadata(metaObj) {
|
|
|
258
258
|
};
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
// bazel-out/
|
|
261
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_component_linker_1.mjs
|
|
262
262
|
import { ChangeDetectionStrategy, compileComponentFromMetadata, DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, makeBindingParser as makeBindingParser2, parseTemplate, R3TemplateDependencyKind, ViewEncapsulation } from "@angular/compiler";
|
|
263
263
|
|
|
264
|
-
// bazel-out/
|
|
264
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_directive_linker_1.mjs
|
|
265
265
|
import { compileDirectiveFromMetadata, makeBindingParser, ParseLocation, ParseSourceFile, ParseSourceSpan } from "@angular/compiler";
|
|
266
266
|
|
|
267
|
-
// bazel-out/
|
|
267
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/util.mjs
|
|
268
268
|
import { createMayBeForwardRefExpression, outputAst as o2 } from "@angular/compiler";
|
|
269
269
|
function wrapReference(wrapped) {
|
|
270
270
|
return { value: wrapped, type: wrapped };
|
|
@@ -312,7 +312,7 @@ function extractForwardRef(expr) {
|
|
|
312
312
|
return createMayBeForwardRefExpression(wrapperFn.getFunctionReturnValue().getOpaque(), 2);
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
-
// bazel-out/
|
|
315
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_directive_linker_1.mjs
|
|
316
316
|
var PartialDirectiveLinkerVersion1 = class {
|
|
317
317
|
constructor(sourceUrl, code) {
|
|
318
318
|
this.sourceUrl = sourceUrl;
|
|
@@ -432,7 +432,7 @@ function createSourceSpan(range, code, sourceUrl) {
|
|
|
432
432
|
return new ParseSourceSpan(startLocation, startLocation.moveBy(range.endPos - range.startPos));
|
|
433
433
|
}
|
|
434
434
|
|
|
435
|
-
// bazel-out/
|
|
435
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_component_linker_1.mjs
|
|
436
436
|
function makeDirectiveMetadata(directiveExpr, typeExpr, isComponentByDefault = null) {
|
|
437
437
|
return {
|
|
438
438
|
kind: R3TemplateDependencyKind.Directive,
|
|
@@ -625,7 +625,7 @@ function parseChangeDetectionStrategy(changeDetectionStrategy) {
|
|
|
625
625
|
return enumValue;
|
|
626
626
|
}
|
|
627
627
|
|
|
628
|
-
// bazel-out/
|
|
628
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_factory_linker_1.mjs
|
|
629
629
|
import { compileFactoryFunction, FactoryTarget } from "@angular/compiler";
|
|
630
630
|
var PartialFactoryLinkerVersion1 = class {
|
|
631
631
|
linkPartialDeclaration(constantPool, metaObj) {
|
|
@@ -662,7 +662,7 @@ function getDependencies(metaObj, propName) {
|
|
|
662
662
|
return null;
|
|
663
663
|
}
|
|
664
664
|
|
|
665
|
-
// bazel-out/
|
|
665
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_injectable_linker_1.mjs
|
|
666
666
|
import { compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression2, outputAst as o3 } from "@angular/compiler";
|
|
667
667
|
var PartialInjectableLinkerVersion1 = class {
|
|
668
668
|
linkPartialDeclaration(constantPool, metaObj) {
|
|
@@ -701,7 +701,7 @@ function toR3InjectableMeta(metaObj) {
|
|
|
701
701
|
return meta;
|
|
702
702
|
}
|
|
703
703
|
|
|
704
|
-
// bazel-out/
|
|
704
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_injector_linker_1.mjs
|
|
705
705
|
import { compileInjector } from "@angular/compiler";
|
|
706
706
|
var PartialInjectorLinkerVersion1 = class {
|
|
707
707
|
linkPartialDeclaration(constantPool, metaObj) {
|
|
@@ -724,7 +724,7 @@ function toR3InjectorMeta(metaObj) {
|
|
|
724
724
|
};
|
|
725
725
|
}
|
|
726
726
|
|
|
727
|
-
// bazel-out/
|
|
727
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_ng_module_linker_1.mjs
|
|
728
728
|
import { compileNgModule, R3SelectorScopeMode } from "@angular/compiler";
|
|
729
729
|
var PartialNgModuleLinkerVersion1 = class {
|
|
730
730
|
constructor(emitInline) {
|
|
@@ -797,7 +797,7 @@ function wrapReferences(values) {
|
|
|
797
797
|
return values.getArray().map((i) => wrapReference(i.getOpaque()));
|
|
798
798
|
}
|
|
799
799
|
|
|
800
|
-
// bazel-out/
|
|
800
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_pipe_linker_1.mjs
|
|
801
801
|
import { compilePipeFromMetadata } from "@angular/compiler";
|
|
802
802
|
var PartialPipeLinkerVersion1 = class {
|
|
803
803
|
constructor() {
|
|
@@ -827,7 +827,7 @@ function toR3PipeMeta(metaObj) {
|
|
|
827
827
|
};
|
|
828
828
|
}
|
|
829
829
|
|
|
830
|
-
// bazel-out/
|
|
830
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_linker_selector.mjs
|
|
831
831
|
var \u0275\u0275ngDeclareDirective = "\u0275\u0275ngDeclareDirective";
|
|
832
832
|
var \u0275\u0275ngDeclareClassMetadata = "\u0275\u0275ngDeclareClassMetadata";
|
|
833
833
|
var \u0275\u0275ngDeclareComponent = "\u0275\u0275ngDeclareComponent";
|
|
@@ -848,7 +848,7 @@ var declarationFunctions = [
|
|
|
848
848
|
];
|
|
849
849
|
function createLinkerMap(environment, sourceUrl, code) {
|
|
850
850
|
const linkers = /* @__PURE__ */ new Map();
|
|
851
|
-
const LATEST_VERSION_RANGE = getRange("<=", "16.0.0-next.
|
|
851
|
+
const LATEST_VERSION_RANGE = getRange("<=", "16.0.0-next.2");
|
|
852
852
|
linkers.set(\u0275\u0275ngDeclareDirective, [
|
|
853
853
|
{ range: LATEST_VERSION_RANGE, linker: new PartialDirectiveLinkerVersion1(sourceUrl, code) }
|
|
854
854
|
]);
|
|
@@ -895,7 +895,7 @@ var PartialLinkerSelector = class {
|
|
|
895
895
|
throw new Error(`Unknown partial declaration function ${functionName}.`);
|
|
896
896
|
}
|
|
897
897
|
const linkerRanges = this.linkers.get(functionName);
|
|
898
|
-
if (version === "16.0.0-next.
|
|
898
|
+
if (version === "16.0.0-next.2") {
|
|
899
899
|
return linkerRanges[linkerRanges.length - 1].linker;
|
|
900
900
|
}
|
|
901
901
|
const declarationRange = getRange(">=", minVersion);
|
|
@@ -921,7 +921,7 @@ function getRange(comparator, versionStr) {
|
|
|
921
921
|
return new semver.Range(`${comparator}${version.format()}`);
|
|
922
922
|
}
|
|
923
923
|
|
|
924
|
-
// bazel-out/
|
|
924
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/file_linker.mjs
|
|
925
925
|
var FileLinker = class {
|
|
926
926
|
constructor(linkerEnvironment, sourceUrl, code) {
|
|
927
927
|
this.linkerEnvironment = linkerEnvironment;
|
|
@@ -964,14 +964,14 @@ var FileLinker = class {
|
|
|
964
964
|
}
|
|
965
965
|
};
|
|
966
966
|
|
|
967
|
-
// bazel-out/
|
|
967
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/linker_options.mjs
|
|
968
968
|
var DEFAULT_LINKER_OPTIONS = {
|
|
969
969
|
sourceMapping: true,
|
|
970
970
|
linkerJitMode: false,
|
|
971
971
|
unknownDeclarationVersionHandling: "error"
|
|
972
972
|
};
|
|
973
973
|
|
|
974
|
-
// bazel-out/
|
|
974
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/translator.mjs
|
|
975
975
|
var Translator = class {
|
|
976
976
|
constructor(factory) {
|
|
977
977
|
this.factory = factory;
|
|
@@ -984,7 +984,7 @@ var Translator = class {
|
|
|
984
984
|
}
|
|
985
985
|
};
|
|
986
986
|
|
|
987
|
-
// bazel-out/
|
|
987
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/linker_environment.mjs
|
|
988
988
|
var LinkerEnvironment = class {
|
|
989
989
|
constructor(fileSystem, logger, host, factory, options) {
|
|
990
990
|
this.fileSystem = fileSystem;
|
|
@@ -1005,7 +1005,7 @@ var LinkerEnvironment = class {
|
|
|
1005
1005
|
}
|
|
1006
1006
|
};
|
|
1007
1007
|
|
|
1008
|
-
// bazel-out/
|
|
1008
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/needs_linking.mjs
|
|
1009
1009
|
function needsLinking(path, source) {
|
|
1010
1010
|
return declarationFunctions.some((fn) => source.includes(fn));
|
|
1011
1011
|
}
|
|
@@ -1026,4 +1026,4 @@ export {
|
|
|
1026
1026
|
* Use of this source code is governed by an MIT-style license that can be
|
|
1027
1027
|
* found in the LICENSE file at https://angular.io/license
|
|
1028
1028
|
*/
|
|
1029
|
-
//# sourceMappingURL=chunk-
|
|
1029
|
+
//# sourceMappingURL=chunk-7Y2QVZL6.js.map
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
TypeScriptReflectionHost
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EDWIBG7R.js";
|
|
8
8
|
import {
|
|
9
9
|
isAliasImportDeclaration,
|
|
10
10
|
loadIsReferencedAliasDeclarationPatch
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-K2A5WD7L.js";
|
|
12
12
|
|
|
13
|
-
// bazel-out/
|
|
13
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
|
|
14
14
|
import ts from "typescript";
|
|
15
15
|
function isAngularDecorator(decorator, isCore) {
|
|
16
16
|
return isCore || decorator.import !== null && decorator.import.from === "@angular/core";
|
|
@@ -130,7 +130,7 @@ function symbolIsRuntimeValue(typeChecker, symbol) {
|
|
|
130
130
|
}
|
|
131
131
|
return (symbol.flags & ts.SymbolFlags.Value & ts.SymbolFlags.ConstEnumExcludes) !== 0;
|
|
132
132
|
}
|
|
133
|
-
function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore, isClosureCompilerEnabled
|
|
133
|
+
function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore, isClosureCompilerEnabled) {
|
|
134
134
|
function addJSDocTypeAnnotation(node, jsdocType) {
|
|
135
135
|
if (!isClosureCompilerEnabled) {
|
|
136
136
|
return;
|
|
@@ -145,13 +145,6 @@ function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore,
|
|
|
145
145
|
}
|
|
146
146
|
]);
|
|
147
147
|
}
|
|
148
|
-
function createDecoratorClassProperty(decoratorList) {
|
|
149
|
-
const modifier = ts.factory.createToken(ts.SyntaxKind.StaticKeyword);
|
|
150
|
-
const initializer = ts.factory.createArrayLiteralExpression(decoratorList, true);
|
|
151
|
-
const prop = ts.factory.createPropertyDeclaration([modifier], "decorators", void 0, void 0, initializer);
|
|
152
|
-
addJSDocTypeAnnotation(prop, DECORATOR_INVOCATION_JSDOC_TYPE);
|
|
153
|
-
return prop;
|
|
154
|
-
}
|
|
155
148
|
function createPropDecoratorsClassProperty(diagnostics2, properties) {
|
|
156
149
|
const entries = [];
|
|
157
150
|
for (const [name, decorators] of properties.entries()) {
|
|
@@ -280,24 +273,8 @@ function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore,
|
|
|
280
273
|
}
|
|
281
274
|
newMembers.push(ts.visitEachChild(member, decoratorDownlevelVisitor, context));
|
|
282
275
|
}
|
|
283
|
-
const decoratorsToKeep = new Set(ts.getDecorators(classDecl));
|
|
284
276
|
const possibleAngularDecorators = host.getDecoratorsOfDeclaration(classDecl) || [];
|
|
285
|
-
|
|
286
|
-
const decoratorsToLower = [];
|
|
287
|
-
for (const decorator of possibleAngularDecorators) {
|
|
288
|
-
const decoratorNode = decorator.node;
|
|
289
|
-
const isNgDecorator = isAngularDecorator(decorator, isCore);
|
|
290
|
-
if (isNgDecorator) {
|
|
291
|
-
hasAngularDecorator = true;
|
|
292
|
-
}
|
|
293
|
-
if (isNgDecorator && !skipClassDecorators) {
|
|
294
|
-
decoratorsToLower.push(extractMetadataFromSingleDecorator(decoratorNode, diagnostics));
|
|
295
|
-
decoratorsToKeep.delete(decoratorNode);
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
if (decoratorsToLower.length) {
|
|
299
|
-
newMembers.push(createDecoratorClassProperty(decoratorsToLower));
|
|
300
|
-
}
|
|
277
|
+
const hasAngularDecorator = possibleAngularDecorators.some((d) => isAngularDecorator(d, isCore));
|
|
301
278
|
if (classParameters) {
|
|
302
279
|
if (hasAngularDecorator || classParameters.some((p) => !!p.decorators.length)) {
|
|
303
280
|
newMembers.push(createCtorParametersClassProperty(diagnostics, entityNameToExpression, classParameters, isClosureCompilerEnabled));
|
|
@@ -307,12 +284,7 @@ function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore,
|
|
|
307
284
|
newMembers.push(createPropDecoratorsClassProperty(diagnostics, decoratedProperties));
|
|
308
285
|
}
|
|
309
286
|
const members = ts.setTextRange(ts.factory.createNodeArray(newMembers, classDecl.members.hasTrailingComma), classDecl.members);
|
|
310
|
-
|
|
311
|
-
let modifiers;
|
|
312
|
-
if (decoratorsToKeep.size || (classModifiers == null ? void 0 : classModifiers.length)) {
|
|
313
|
-
modifiers = [...decoratorsToKeep, ...classModifiers || []];
|
|
314
|
-
}
|
|
315
|
-
return ts.factory.updateClassDeclaration(classDecl, modifiers, classDecl.name, classDecl.typeParameters, classDecl.heritageClauses, members);
|
|
287
|
+
return ts.factory.updateClassDeclaration(classDecl, classDecl.modifiers, classDecl.name, classDecl.typeParameters, classDecl.heritageClauses, members);
|
|
316
288
|
}
|
|
317
289
|
function decoratorDownlevelVisitor(node) {
|
|
318
290
|
if (ts.isClassDeclaration(node)) {
|
|
@@ -341,7 +313,7 @@ function cloneClassElementWithModifiers(node, modifiers) {
|
|
|
341
313
|
return ts.setOriginalNode(clone, node);
|
|
342
314
|
}
|
|
343
315
|
|
|
344
|
-
// bazel-out/
|
|
316
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
|
|
345
317
|
var GLOBAL_DEFS_FOR_TERSER = {
|
|
346
318
|
ngDevMode: false,
|
|
347
319
|
ngI18nClosureMode: false
|
|
@@ -358,8 +330,7 @@ function constructorParametersDownlevelTransform(program) {
|
|
|
358
330
|
reflectionHost,
|
|
359
331
|
[],
|
|
360
332
|
false,
|
|
361
|
-
false
|
|
362
|
-
true
|
|
333
|
+
false
|
|
363
334
|
);
|
|
364
335
|
}
|
|
365
336
|
|
|
@@ -375,4 +346,4 @@ export {
|
|
|
375
346
|
* Use of this source code is governed by an MIT-style license that can be
|
|
376
347
|
* found in the LICENSE file at https://angular.io/license
|
|
377
348
|
*/
|
|
378
|
-
//# sourceMappingURL=chunk-
|
|
349
|
+
//# sourceMappingURL=chunk-BVXD7IJL.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.ts", "../../../../../../packages/compiler-cli/private/tooling.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;AAQA,OAAO,QAAQ;AASf,SAAS,mBAAmB,WAAsB,QAAe;AAC/D,SAAO,UAAW,UAAU,WAAW,QAAQ,UAAU,OAAO,SAAS;AAC3E;AAwBA,IAAM,kCAAkC;AASxC,SAAS,mCACL,WAAyB,aAA4B;AACvD,QAAM,qBAAoD,CAAA;AAC1D,QAAM,OAAO,UAAU;AACvB,UAAQ,KAAK,MAAM;IACjB,KAAK,GAAG,WAAW;AAEjB,yBAAmB,KAAK,GAAG,QAAQ,yBAAyB,QAAQ,IAAI,CAAC;AACzE;IACF,KAAK,GAAG,WAAW;AAEjB,YAAM,OAAO;AACb,yBAAmB,KAAK,GAAG,QAAQ,yBAAyB,QAAQ,KAAK,UAAU,CAAC;AACpF,UAAI,KAAK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ACvC;",
|
|
5
|
+
"names": ["diagnostics"]
|
|
6
|
+
}
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
__require
|
|
7
7
|
} from "./chunk-SRFZMXHZ.js";
|
|
8
8
|
|
|
9
|
-
// bazel-out/
|
|
9
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/util.mjs
|
|
10
10
|
var TS_DTS_JS_EXTENSION = /(?:\.d)?\.ts$|\.js$/;
|
|
11
11
|
function normalizeSeparators(path) {
|
|
12
12
|
return path.replace(/\\/g, "/");
|
|
@@ -22,7 +22,7 @@ function getSourceFileOrError(program, fileName) {
|
|
|
22
22
|
return sf;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
// bazel-out/
|
|
25
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.mjs
|
|
26
26
|
var InvalidFileSystem = class {
|
|
27
27
|
exists(path) {
|
|
28
28
|
throw makeError();
|
|
@@ -110,7 +110,7 @@ function makeError() {
|
|
|
110
110
|
return new Error("FileSystem has not been configured. Please call `setFileSystem()` before calling this method.");
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
// bazel-out/
|
|
113
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/helpers.mjs
|
|
114
114
|
var fs = new InvalidFileSystem();
|
|
115
115
|
function getFileSystem() {
|
|
116
116
|
return fs;
|
|
@@ -167,7 +167,7 @@ function toRelativeImport(relativePath) {
|
|
|
167
167
|
return isLocalRelativePath(relativePath) ? `./${relativePath}` : relativePath;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
// bazel-out/
|
|
170
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.mjs
|
|
171
171
|
import * as os from "os";
|
|
172
172
|
import ts from "typescript";
|
|
173
173
|
var NgtscCompilerHost = class {
|
|
@@ -225,7 +225,7 @@ var NgtscCompilerHost = class {
|
|
|
225
225
|
}
|
|
226
226
|
};
|
|
227
227
|
|
|
228
|
-
// bazel-out/
|
|
228
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/logical.mjs
|
|
229
229
|
var LogicalProjectPath = {
|
|
230
230
|
relativePathBetween: function(from, to) {
|
|
231
231
|
const relativePath = relative(dirname(resolve(from)), resolve(to));
|
|
@@ -271,7 +271,7 @@ function isWithinBasePath(base, path) {
|
|
|
271
271
|
return isLocalRelativePath(relative(base, path));
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
// bazel-out/
|
|
274
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.mjs
|
|
275
275
|
import fs2 from "fs";
|
|
276
276
|
import module from "module";
|
|
277
277
|
import * as p from "path";
|
|
@@ -407,4 +407,4 @@ export {
|
|
|
407
407
|
* Use of this source code is governed by an MIT-style license that can be
|
|
408
408
|
* found in the LICENSE file at https://angular.io/license
|
|
409
409
|
*/
|
|
410
|
-
//# sourceMappingURL=chunk-
|
|
410
|
+
//# sourceMappingURL=chunk-EC5K6QPP.js.map
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
const require = __cjsCompatRequire(import.meta.url);
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
// bazel-out/
|
|
6
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
7
7
|
import ts4 from "typescript";
|
|
8
8
|
|
|
9
|
-
// bazel-out/
|
|
9
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
|
|
10
10
|
import ts from "typescript";
|
|
11
11
|
var Decorator = {
|
|
12
12
|
nodeForError: (decorator) => {
|
|
@@ -41,7 +41,7 @@ function isConcreteDeclaration(decl) {
|
|
|
41
41
|
return decl.kind === 0;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
// bazel-out/
|
|
44
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
|
|
45
45
|
import ts2 from "typescript";
|
|
46
46
|
function typeToValue(typeNode, checker) {
|
|
47
47
|
if (typeNode === null) {
|
|
@@ -207,7 +207,7 @@ function extractModuleName(node) {
|
|
|
207
207
|
return node.moduleSpecifier.text;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
// bazel-out/
|
|
210
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
|
|
211
211
|
import ts3 from "typescript";
|
|
212
212
|
function isNamedClassDeclaration(node) {
|
|
213
213
|
return ts3.isClassDeclaration(node) && isIdentifier(node.name);
|
|
@@ -216,7 +216,7 @@ function isIdentifier(node) {
|
|
|
216
216
|
return node !== void 0 && ts3.isIdentifier(node);
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
-
// bazel-out/
|
|
219
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
220
220
|
var TypeScriptReflectionHost = class {
|
|
221
221
|
constructor(checker) {
|
|
222
222
|
this.checker = checker;
|
|
@@ -671,4 +671,4 @@ export {
|
|
|
671
671
|
* Use of this source code is governed by an MIT-style license that can be
|
|
672
672
|
* found in the LICENSE file at https://angular.io/license
|
|
673
673
|
*/
|
|
674
|
-
//# sourceMappingURL=chunk-
|
|
674
|
+
//# sourceMappingURL=chunk-EDWIBG7R.js.map
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
const require = __cjsCompatRequire(import.meta.url);
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
// bazel-out/
|
|
6
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file.mjs
|
|
7
7
|
import { decode, encode } from "@jridgewell/sourcemap-codec";
|
|
8
8
|
import mapHelpers from "convert-source-map";
|
|
9
9
|
|
|
10
|
-
// bazel-out/
|
|
10
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/segment_marker.mjs
|
|
11
11
|
function compareSegments(a, b) {
|
|
12
12
|
return a.position - b.position;
|
|
13
13
|
}
|
|
@@ -27,7 +27,7 @@ function offsetSegment(startOfLinePositions, marker, offset) {
|
|
|
27
27
|
return { line, column, position, next: void 0 };
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
// bazel-out/
|
|
30
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file.mjs
|
|
31
31
|
function removeSourceMapComments(contents) {
|
|
32
32
|
return mapHelpers.removeMapFileComments(mapHelpers.removeComments(contents)).replace(/\n\n$/, "\n");
|
|
33
33
|
}
|
|
@@ -278,10 +278,10 @@ var Cache = class {
|
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
280
|
|
|
281
|
-
// bazel-out/
|
|
281
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file_loader.mjs
|
|
282
282
|
import mapHelpers2 from "convert-source-map";
|
|
283
283
|
|
|
284
|
-
// bazel-out/
|
|
284
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/content_origin.mjs
|
|
285
285
|
var ContentOrigin;
|
|
286
286
|
(function(ContentOrigin2) {
|
|
287
287
|
ContentOrigin2[ContentOrigin2["Provided"] = 0] = "Provided";
|
|
@@ -289,7 +289,7 @@ var ContentOrigin;
|
|
|
289
289
|
ContentOrigin2[ContentOrigin2["FileSystem"] = 2] = "FileSystem";
|
|
290
290
|
})(ContentOrigin || (ContentOrigin = {}));
|
|
291
291
|
|
|
292
|
-
// bazel-out/
|
|
292
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file_loader.mjs
|
|
293
293
|
var SCHEME_MATCHER = /^([a-z][a-z0-9.-]*):\/\//i;
|
|
294
294
|
var SourceFileLoader = class {
|
|
295
295
|
constructor(fs, logger, schemeMap) {
|
|
@@ -416,4 +416,4 @@ export {
|
|
|
416
416
|
* Use of this source code is governed by an MIT-style license that can be
|
|
417
417
|
* found in the LICENSE file at https://angular.io/license
|
|
418
418
|
*/
|
|
419
|
-
//# sourceMappingURL=chunk-
|
|
419
|
+
//# sourceMappingURL=chunk-GYHDNUIK.js.map
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
formatDiagnostics,
|
|
13
13
|
performCompilation,
|
|
14
14
|
readConfiguration
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KA5NKHL6.js";
|
|
16
16
|
|
|
17
|
-
// bazel-out/
|
|
17
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/main.mjs
|
|
18
18
|
import ts2 from "typescript";
|
|
19
19
|
import yargs from "yargs";
|
|
20
20
|
|
|
21
|
-
// bazel-out/
|
|
21
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_watch.mjs
|
|
22
22
|
import * as chokidar from "chokidar";
|
|
23
23
|
import * as path from "path";
|
|
24
24
|
import ts from "typescript";
|
|
@@ -234,7 +234,7 @@ function performWatchCompilation(host) {
|
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
// bazel-out/
|
|
237
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/main.mjs
|
|
238
238
|
function main(args, consoleError = console.error, config, customTransformers, programReuse, modifiedResourceFiles, tsickle) {
|
|
239
239
|
let { project, rootNames, options, errors: configErrors, watch: watch2, emitFlags } = config || readNgcCommandLineAndConfiguration(args);
|
|
240
240
|
if (configErrors.length) {
|
|
@@ -375,4 +375,4 @@ export {
|
|
|
375
375
|
* Use of this source code is governed by an MIT-style license that can be
|
|
376
376
|
* found in the LICENSE file at https://angular.io/license
|
|
377
377
|
*/
|
|
378
|
-
//# sourceMappingURL=chunk-
|
|
378
|
+
//# sourceMappingURL=chunk-JCJ2GTDZ.js.map
|