@angular/compiler-cli 15.2.0-rc.0 → 15.2.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-6ZJFIQBG.js → chunk-2NLFVEGY.js} +7 -7
- package/bundles/{chunk-ZB4CDKOH.js → chunk-5WBIJMZH.js} +5 -5
- package/bundles/{chunk-64X67E3N.js → chunk-7GNUPQOI.js} +31 -31
- package/bundles/{chunk-7DUI3BSX.js → chunk-B57SP4JB.js} +2 -2
- package/bundles/chunk-IJECERTO.js +714 -0
- package/bundles/chunk-IJECERTO.js.map +6 -0
- package/bundles/chunk-IYYB2HTK.js +877 -0
- package/bundles/chunk-IYYB2HTK.js.map +6 -0
- package/bundles/{chunk-YRDMG3GM.js → chunk-K7P4IHT5.js} +4 -4
- package/bundles/{chunk-SBDNBITT.js → chunk-LYJKWJUC.js} +3 -3
- package/bundles/{chunk-JYL7IHZC.js → chunk-P5LISIUG.js} +97 -86
- package/bundles/chunk-P5LISIUG.js.map +6 -0
- package/bundles/{chunk-BEXFRTBC.js → chunk-PKXB2WOZ.js} +40 -40
- package/bundles/{chunk-HYFCMILZ.js → chunk-RMPM4VAI.js} +102 -100
- package/bundles/chunk-RMPM4VAI.js.map +6 -0
- package/bundles/{chunk-EC5K6QPP.js → chunk-TBUSSXUA.js} +7 -7
- package/bundles/{chunk-Q6W3UCXI.js → chunk-TGEKDMUX.js} +94 -127
- package/bundles/chunk-TGEKDMUX.js.map +6 -0
- package/bundles/{chunk-OAZD7RII.js → chunk-WN75SNW4.js} +75 -73
- package/bundles/chunk-WN75SNW4.js.map +6 -0
- package/bundles/{chunk-NJMZRTB6.js → chunk-YZWN2KWE.js} +5 -5
- package/bundles/{chunk-O4JLZZWJ.js → chunk-ZF3IVDQ2.js} +6 -6
- package/bundles/index.js +13 -12
- package/bundles/index.js.map +1 -1
- package/bundles/linker/babel/index.js +13 -12
- package/bundles/linker/babel/index.js.map +1 -1
- package/bundles/linker/index.js +5 -4
- package/bundles/ngcc/index.js +13 -12
- package/bundles/ngcc/index.js.map +1 -1
- package/bundles/ngcc/main-ngcc.js +14 -13
- package/bundles/ngcc/main-ngcc.js.map +1 -1
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +14 -13
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js.map +1 -1
- package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +4 -4
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +6 -5
- package/bundles/private/tooling.js +4 -2
- package/bundles/src/bin/ng_xi18n.js +11 -10
- package/bundles/src/bin/ng_xi18n.js.map +1 -1
- package/bundles/src/bin/ngc.js +9 -8
- package/bundles/src/bin/ngc.js.map +1 -1
- package/bundles_metadata.json +1 -1
- package/ngcc/src/packages/build_marker.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/annotations/component/src/resources.d.ts +1 -1
- package/src/ngtsc/imports/index.d.ts +1 -0
- package/src/ngtsc/imports/src/default.d.ts +6 -10
- package/src/ngtsc/imports/src/patch_alias_reference_resolution.d.ts +61 -0
- package/bundles/chunk-HYFCMILZ.js.map +0 -6
- package/bundles/chunk-JYL7IHZC.js.map +0 -6
- package/bundles/chunk-OAZD7RII.js.map +0 -6
- package/bundles/chunk-Q6W3UCXI.js.map +0 -6
- package/bundles/chunk-Z534TW2O.js +0 -1540
- package/bundles/chunk-Z534TW2O.js.map +0 -6
- package/src/transformers/downlevel_decorators_transform/patch_alias_reference_resolution.d.ts +0 -14
- /package/bundles/{chunk-6ZJFIQBG.js.map → chunk-2NLFVEGY.js.map} +0 -0
- /package/bundles/{chunk-ZB4CDKOH.js.map → chunk-5WBIJMZH.js.map} +0 -0
- /package/bundles/{chunk-64X67E3N.js.map → chunk-7GNUPQOI.js.map} +0 -0
- /package/bundles/{chunk-7DUI3BSX.js.map → chunk-B57SP4JB.js.map} +0 -0
- /package/bundles/{chunk-YRDMG3GM.js.map → chunk-K7P4IHT5.js.map} +0 -0
- /package/bundles/{chunk-SBDNBITT.js.map → chunk-LYJKWJUC.js.map} +0 -0
- /package/bundles/{chunk-BEXFRTBC.js.map → chunk-PKXB2WOZ.js.map} +0 -0
- /package/bundles/{chunk-EC5K6QPP.js.map → chunk-TBUSSXUA.js.map} +0 -0
- /package/bundles/{chunk-NJMZRTB6.js.map → chunk-YZWN2KWE.js.map} +0 -0
- /package/bundles/{chunk-O4JLZZWJ.js.map → chunk-ZF3IVDQ2.js.map} +0 -0
|
@@ -4,47 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
TypeScriptReflectionHost
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
} from "./chunk-ZF3IVDQ2.js";
|
|
8
|
+
import {
|
|
9
|
+
isAliasImportDeclaration,
|
|
10
|
+
loadIsReferencedAliasDeclarationPatch
|
|
11
|
+
} from "./chunk-IYYB2HTK.js";
|
|
11
12
|
|
|
12
|
-
// bazel-out/
|
|
13
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
|
|
13
14
|
import ts from "typescript";
|
|
14
|
-
var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
|
|
15
|
-
function loadIsReferencedAliasDeclarationPatch(context) {
|
|
16
|
-
if (!isTransformationContextWithEmitResolver(context)) {
|
|
17
|
-
throwIncompatibleTransformationContextError();
|
|
18
|
-
}
|
|
19
|
-
const emitResolver = context.getEmitResolver();
|
|
20
|
-
const existingReferencedAliases = emitResolver[patchedReferencedAliasesSymbol];
|
|
21
|
-
if (existingReferencedAliases !== void 0) {
|
|
22
|
-
return existingReferencedAliases;
|
|
23
|
-
}
|
|
24
|
-
const originalIsReferencedAliasDeclaration = emitResolver.isReferencedAliasDeclaration;
|
|
25
|
-
if (originalIsReferencedAliasDeclaration === void 0) {
|
|
26
|
-
throwIncompatibleTransformationContextError();
|
|
27
|
-
}
|
|
28
|
-
const referencedAliases = /* @__PURE__ */ new Set();
|
|
29
|
-
emitResolver.isReferencedAliasDeclaration = function(node, ...args) {
|
|
30
|
-
if (isAliasImportDeclaration(node) && referencedAliases.has(node)) {
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
return originalIsReferencedAliasDeclaration.call(emitResolver, node, ...args);
|
|
34
|
-
};
|
|
35
|
-
return emitResolver[patchedReferencedAliasesSymbol] = referencedAliases;
|
|
36
|
-
}
|
|
37
|
-
function isAliasImportDeclaration(node) {
|
|
38
|
-
return ts.isImportSpecifier(node) || ts.isNamespaceImport(node) || ts.isImportClause(node);
|
|
39
|
-
}
|
|
40
|
-
function isTransformationContextWithEmitResolver(context) {
|
|
41
|
-
return context.getEmitResolver !== void 0;
|
|
42
|
-
}
|
|
43
|
-
function throwIncompatibleTransformationContextError() {
|
|
44
|
-
throw Error("Unable to downlevel Angular decorators due to an incompatible TypeScript version.\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.");
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
|
|
48
15
|
function isAngularDecorator(decorator, isCore) {
|
|
49
16
|
return isCore || decorator.import !== null && decorator.import.from === "@angular/core";
|
|
50
17
|
}
|
|
@@ -53,19 +20,19 @@ function extractMetadataFromSingleDecorator(decorator, diagnostics) {
|
|
|
53
20
|
const metadataProperties = [];
|
|
54
21
|
const expr = decorator.expression;
|
|
55
22
|
switch (expr.kind) {
|
|
56
|
-
case
|
|
57
|
-
metadataProperties.push(
|
|
23
|
+
case ts.SyntaxKind.Identifier:
|
|
24
|
+
metadataProperties.push(ts.factory.createPropertyAssignment("type", expr));
|
|
58
25
|
break;
|
|
59
|
-
case
|
|
26
|
+
case ts.SyntaxKind.CallExpression:
|
|
60
27
|
const call = expr;
|
|
61
|
-
metadataProperties.push(
|
|
28
|
+
metadataProperties.push(ts.factory.createPropertyAssignment("type", call.expression));
|
|
62
29
|
if (call.arguments.length) {
|
|
63
30
|
const args = [];
|
|
64
31
|
for (const arg of call.arguments) {
|
|
65
32
|
args.push(arg);
|
|
66
33
|
}
|
|
67
|
-
const argsArrayLiteral =
|
|
68
|
-
metadataProperties.push(
|
|
34
|
+
const argsArrayLiteral = ts.factory.createArrayLiteralExpression(ts.factory.createNodeArray(args, true));
|
|
35
|
+
metadataProperties.push(ts.factory.createPropertyAssignment("args", argsArrayLiteral));
|
|
69
36
|
}
|
|
70
37
|
break;
|
|
71
38
|
default:
|
|
@@ -73,38 +40,38 @@ function extractMetadataFromSingleDecorator(decorator, diagnostics) {
|
|
|
73
40
|
file: decorator.getSourceFile(),
|
|
74
41
|
start: decorator.getStart(),
|
|
75
42
|
length: decorator.getEnd() - decorator.getStart(),
|
|
76
|
-
messageText: `${
|
|
77
|
-
category:
|
|
43
|
+
messageText: `${ts.SyntaxKind[decorator.kind]} not implemented in gathering decorator metadata.`,
|
|
44
|
+
category: ts.DiagnosticCategory.Error,
|
|
78
45
|
code: 0
|
|
79
46
|
});
|
|
80
47
|
break;
|
|
81
48
|
}
|
|
82
|
-
return
|
|
49
|
+
return ts.factory.createObjectLiteralExpression(metadataProperties);
|
|
83
50
|
}
|
|
84
51
|
function createCtorParametersClassProperty(diagnostics, entityNameToExpression, ctorParameters, isClosureCompilerEnabled) {
|
|
85
52
|
const params = [];
|
|
86
53
|
for (const ctorParam of ctorParameters) {
|
|
87
54
|
if (!ctorParam.type && ctorParam.decorators.length === 0) {
|
|
88
|
-
params.push(
|
|
55
|
+
params.push(ts.factory.createNull());
|
|
89
56
|
continue;
|
|
90
57
|
}
|
|
91
58
|
const paramType = ctorParam.type ? typeReferenceToExpression(entityNameToExpression, ctorParam.type) : void 0;
|
|
92
|
-
const members = [
|
|
59
|
+
const members = [ts.factory.createPropertyAssignment("type", paramType || ts.factory.createIdentifier("undefined"))];
|
|
93
60
|
const decorators = [];
|
|
94
61
|
for (const deco of ctorParam.decorators) {
|
|
95
62
|
decorators.push(extractMetadataFromSingleDecorator(deco, diagnostics));
|
|
96
63
|
}
|
|
97
64
|
if (decorators.length) {
|
|
98
|
-
members.push(
|
|
65
|
+
members.push(ts.factory.createPropertyAssignment("decorators", ts.factory.createArrayLiteralExpression(decorators)));
|
|
99
66
|
}
|
|
100
|
-
params.push(
|
|
67
|
+
params.push(ts.factory.createObjectLiteralExpression(members));
|
|
101
68
|
}
|
|
102
|
-
const initializer =
|
|
103
|
-
const ctorProp =
|
|
69
|
+
const initializer = ts.factory.createArrowFunction(void 0, void 0, [], void 0, ts.factory.createToken(ts.SyntaxKind.EqualsGreaterThanToken), ts.factory.createArrayLiteralExpression(params, true));
|
|
70
|
+
const ctorProp = ts.factory.createPropertyDeclaration([ts.factory.createToken(ts.SyntaxKind.StaticKeyword)], "ctorParameters", void 0, void 0, initializer);
|
|
104
71
|
if (isClosureCompilerEnabled) {
|
|
105
|
-
|
|
72
|
+
ts.setSyntheticLeadingComments(ctorProp, [
|
|
106
73
|
{
|
|
107
|
-
kind:
|
|
74
|
+
kind: ts.SyntaxKind.MultiLineCommentTrivia,
|
|
108
75
|
text: [
|
|
109
76
|
`*`,
|
|
110
77
|
` * @type {function(): !Array<(null|{`,
|
|
@@ -124,53 +91,53 @@ function createCtorParametersClassProperty(diagnostics, entityNameToExpression,
|
|
|
124
91
|
}
|
|
125
92
|
function typeReferenceToExpression(entityNameToExpression, node) {
|
|
126
93
|
let kind = node.kind;
|
|
127
|
-
if (
|
|
94
|
+
if (ts.isLiteralTypeNode(node)) {
|
|
128
95
|
kind = node.literal.kind;
|
|
129
96
|
}
|
|
130
97
|
switch (kind) {
|
|
131
|
-
case
|
|
132
|
-
case
|
|
133
|
-
return
|
|
134
|
-
case
|
|
135
|
-
case
|
|
136
|
-
return
|
|
137
|
-
case
|
|
138
|
-
case
|
|
139
|
-
case
|
|
140
|
-
case
|
|
141
|
-
return
|
|
142
|
-
case
|
|
143
|
-
case
|
|
144
|
-
return
|
|
145
|
-
case
|
|
146
|
-
return
|
|
147
|
-
case
|
|
148
|
-
case
|
|
149
|
-
return
|
|
150
|
-
case
|
|
98
|
+
case ts.SyntaxKind.FunctionType:
|
|
99
|
+
case ts.SyntaxKind.ConstructorType:
|
|
100
|
+
return ts.factory.createIdentifier("Function");
|
|
101
|
+
case ts.SyntaxKind.ArrayType:
|
|
102
|
+
case ts.SyntaxKind.TupleType:
|
|
103
|
+
return ts.factory.createIdentifier("Array");
|
|
104
|
+
case ts.SyntaxKind.TypePredicate:
|
|
105
|
+
case ts.SyntaxKind.TrueKeyword:
|
|
106
|
+
case ts.SyntaxKind.FalseKeyword:
|
|
107
|
+
case ts.SyntaxKind.BooleanKeyword:
|
|
108
|
+
return ts.factory.createIdentifier("Boolean");
|
|
109
|
+
case ts.SyntaxKind.StringLiteral:
|
|
110
|
+
case ts.SyntaxKind.StringKeyword:
|
|
111
|
+
return ts.factory.createIdentifier("String");
|
|
112
|
+
case ts.SyntaxKind.ObjectKeyword:
|
|
113
|
+
return ts.factory.createIdentifier("Object");
|
|
114
|
+
case ts.SyntaxKind.NumberKeyword:
|
|
115
|
+
case ts.SyntaxKind.NumericLiteral:
|
|
116
|
+
return ts.factory.createIdentifier("Number");
|
|
117
|
+
case ts.SyntaxKind.TypeReference:
|
|
151
118
|
const typeRef = node;
|
|
152
119
|
return entityNameToExpression(typeRef.typeName);
|
|
153
|
-
case
|
|
154
|
-
const childTypeNodes = node.types.filter((t) => !(
|
|
120
|
+
case ts.SyntaxKind.UnionType:
|
|
121
|
+
const childTypeNodes = node.types.filter((t) => !(ts.isLiteralTypeNode(t) && t.literal.kind === ts.SyntaxKind.NullKeyword));
|
|
155
122
|
return childTypeNodes.length === 1 ? typeReferenceToExpression(entityNameToExpression, childTypeNodes[0]) : void 0;
|
|
156
123
|
default:
|
|
157
124
|
return void 0;
|
|
158
125
|
}
|
|
159
126
|
}
|
|
160
127
|
function symbolIsRuntimeValue(typeChecker, symbol) {
|
|
161
|
-
if (symbol.flags &
|
|
128
|
+
if (symbol.flags & ts.SymbolFlags.Alias) {
|
|
162
129
|
symbol = typeChecker.getAliasedSymbol(symbol);
|
|
163
130
|
}
|
|
164
|
-
return (symbol.flags &
|
|
131
|
+
return (symbol.flags & ts.SymbolFlags.Value & ts.SymbolFlags.ConstEnumExcludes) !== 0;
|
|
165
132
|
}
|
|
166
133
|
function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore, isClosureCompilerEnabled, skipClassDecorators) {
|
|
167
134
|
function addJSDocTypeAnnotation(node, jsdocType) {
|
|
168
135
|
if (!isClosureCompilerEnabled) {
|
|
169
136
|
return;
|
|
170
137
|
}
|
|
171
|
-
|
|
138
|
+
ts.setSyntheticLeadingComments(node, [
|
|
172
139
|
{
|
|
173
|
-
kind:
|
|
140
|
+
kind: ts.SyntaxKind.MultiLineCommentTrivia,
|
|
174
141
|
text: `* @type {${jsdocType}} `,
|
|
175
142
|
pos: -1,
|
|
176
143
|
end: -1,
|
|
@@ -179,19 +146,19 @@ function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore,
|
|
|
179
146
|
]);
|
|
180
147
|
}
|
|
181
148
|
function createDecoratorClassProperty(decoratorList) {
|
|
182
|
-
const modifier =
|
|
183
|
-
const initializer =
|
|
184
|
-
const prop =
|
|
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);
|
|
185
152
|
addJSDocTypeAnnotation(prop, DECORATOR_INVOCATION_JSDOC_TYPE);
|
|
186
153
|
return prop;
|
|
187
154
|
}
|
|
188
155
|
function createPropDecoratorsClassProperty(diagnostics2, properties) {
|
|
189
156
|
const entries = [];
|
|
190
157
|
for (const [name, decorators] of properties.entries()) {
|
|
191
|
-
entries.push(
|
|
158
|
+
entries.push(ts.factory.createPropertyAssignment(name, ts.factory.createArrayLiteralExpression(decorators.map((deco) => extractMetadataFromSingleDecorator(deco, diagnostics2)))));
|
|
192
159
|
}
|
|
193
|
-
const initializer =
|
|
194
|
-
const prop =
|
|
160
|
+
const initializer = ts.factory.createObjectLiteralExpression(entries, true);
|
|
161
|
+
const prop = ts.factory.createPropertyDeclaration([ts.factory.createToken(ts.SyntaxKind.StaticKeyword)], "propDecorators", void 0, void 0, initializer);
|
|
195
162
|
addJSDocTypeAnnotation(prop, `!Object<string, ${DECORATOR_INVOCATION_JSDOC_TYPE}>`);
|
|
196
163
|
return prop;
|
|
197
164
|
}
|
|
@@ -202,24 +169,24 @@ function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore,
|
|
|
202
169
|
if (!symbol || !symbolIsRuntimeValue(typeChecker, symbol) || !symbol.declarations || symbol.declarations.length === 0) {
|
|
203
170
|
return void 0;
|
|
204
171
|
}
|
|
205
|
-
if (
|
|
172
|
+
if (ts.isQualifiedName(name)) {
|
|
206
173
|
const containerExpr = entityNameToExpression(name.left);
|
|
207
174
|
if (containerExpr === void 0) {
|
|
208
175
|
return void 0;
|
|
209
176
|
}
|
|
210
|
-
return
|
|
177
|
+
return ts.factory.createPropertyAccessExpression(containerExpr, name.right);
|
|
211
178
|
}
|
|
212
179
|
const decl = symbol.declarations[0];
|
|
213
180
|
if (isAliasImportDeclaration(decl)) {
|
|
214
181
|
referencedParameterTypes.add(decl);
|
|
215
182
|
if (decl.name !== void 0) {
|
|
216
|
-
return
|
|
183
|
+
return ts.setOriginalNode(ts.factory.createIdentifier(decl.name.text), decl.name);
|
|
217
184
|
}
|
|
218
185
|
}
|
|
219
|
-
return
|
|
186
|
+
return ts.setOriginalNode(ts.factory.createIdentifier(name.text), name);
|
|
220
187
|
}
|
|
221
188
|
function transformClassElement(element) {
|
|
222
|
-
element =
|
|
189
|
+
element = ts.visitEachChild(element, decoratorDownlevelVisitor, context);
|
|
223
190
|
const decoratorsToKeep = [];
|
|
224
191
|
const toLower = [];
|
|
225
192
|
const decorators = host.getDecoratorsOfDeclaration(element) || [];
|
|
@@ -233,26 +200,26 @@ function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore,
|
|
|
233
200
|
}
|
|
234
201
|
if (!toLower.length)
|
|
235
202
|
return [void 0, element, []];
|
|
236
|
-
if (!element.name || !
|
|
203
|
+
if (!element.name || !ts.isIdentifier(element.name)) {
|
|
237
204
|
diagnostics.push({
|
|
238
205
|
file: element.getSourceFile(),
|
|
239
206
|
start: element.getStart(),
|
|
240
207
|
length: element.getEnd() - element.getStart(),
|
|
241
208
|
messageText: `Cannot process decorators for class element with non-analyzable name.`,
|
|
242
|
-
category:
|
|
209
|
+
category: ts.DiagnosticCategory.Error,
|
|
243
210
|
code: 0
|
|
244
211
|
});
|
|
245
212
|
return [void 0, element, []];
|
|
246
213
|
}
|
|
247
|
-
const elementModifiers =
|
|
214
|
+
const elementModifiers = ts.canHaveModifiers(element) ? ts.getModifiers(element) : void 0;
|
|
248
215
|
let modifiers;
|
|
249
216
|
if (decoratorsToKeep.length || (elementModifiers == null ? void 0 : elementModifiers.length)) {
|
|
250
|
-
modifiers =
|
|
217
|
+
modifiers = ts.setTextRange(ts.factory.createNodeArray([...decoratorsToKeep, ...elementModifiers || []]), element.modifiers);
|
|
251
218
|
}
|
|
252
219
|
return [element.name.text, cloneClassElementWithModifiers(element, modifiers), toLower];
|
|
253
220
|
}
|
|
254
221
|
function transformConstructor(ctor) {
|
|
255
|
-
ctor =
|
|
222
|
+
ctor = ts.visitEachChild(ctor, decoratorDownlevelVisitor, context);
|
|
256
223
|
const newParameters = [];
|
|
257
224
|
const oldParameters = ctor.parameters;
|
|
258
225
|
const parametersInfo = [];
|
|
@@ -273,14 +240,14 @@ function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore,
|
|
|
273
240
|
}
|
|
274
241
|
parametersInfo.push(paramInfo);
|
|
275
242
|
let modifiers;
|
|
276
|
-
const paramModifiers =
|
|
243
|
+
const paramModifiers = ts.getModifiers(param);
|
|
277
244
|
if (decoratorsToKeep.length || (paramModifiers == null ? void 0 : paramModifiers.length)) {
|
|
278
245
|
modifiers = [...decoratorsToKeep, ...paramModifiers || []];
|
|
279
246
|
}
|
|
280
|
-
const newParam =
|
|
247
|
+
const newParam = ts.factory.updateParameterDeclaration(param, modifiers, param.dotDotDotToken, param.name, param.questionToken, param.type, param.initializer);
|
|
281
248
|
newParameters.push(newParam);
|
|
282
249
|
}
|
|
283
|
-
const updated =
|
|
250
|
+
const updated = ts.factory.updateConstructorDeclaration(ctor, ts.getModifiers(ctor), newParameters, ctor.body);
|
|
284
251
|
return [updated, parametersInfo];
|
|
285
252
|
}
|
|
286
253
|
function transformClassDeclaration(classDecl) {
|
|
@@ -289,17 +256,17 @@ function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore,
|
|
|
289
256
|
let classParameters = null;
|
|
290
257
|
for (const member of classDecl.members) {
|
|
291
258
|
switch (member.kind) {
|
|
292
|
-
case
|
|
293
|
-
case
|
|
294
|
-
case
|
|
295
|
-
case
|
|
259
|
+
case ts.SyntaxKind.PropertyDeclaration:
|
|
260
|
+
case ts.SyntaxKind.GetAccessor:
|
|
261
|
+
case ts.SyntaxKind.SetAccessor:
|
|
262
|
+
case ts.SyntaxKind.MethodDeclaration: {
|
|
296
263
|
const [name, newMember, decorators] = transformClassElement(member);
|
|
297
264
|
newMembers.push(newMember);
|
|
298
265
|
if (name)
|
|
299
266
|
decoratedProperties.set(name, decorators);
|
|
300
267
|
continue;
|
|
301
268
|
}
|
|
302
|
-
case
|
|
269
|
+
case ts.SyntaxKind.Constructor: {
|
|
303
270
|
const ctor = member;
|
|
304
271
|
if (!ctor.body)
|
|
305
272
|
break;
|
|
@@ -311,9 +278,9 @@ function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore,
|
|
|
311
278
|
default:
|
|
312
279
|
break;
|
|
313
280
|
}
|
|
314
|
-
newMembers.push(
|
|
281
|
+
newMembers.push(ts.visitEachChild(member, decoratorDownlevelVisitor, context));
|
|
315
282
|
}
|
|
316
|
-
const decoratorsToKeep = new Set(
|
|
283
|
+
const decoratorsToKeep = new Set(ts.getDecorators(classDecl));
|
|
317
284
|
const possibleAngularDecorators = host.getDecoratorsOfDeclaration(classDecl) || [];
|
|
318
285
|
let hasAngularDecorator = false;
|
|
319
286
|
const decoratorsToLower = [];
|
|
@@ -339,42 +306,42 @@ function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore,
|
|
|
339
306
|
if (decoratedProperties.size) {
|
|
340
307
|
newMembers.push(createPropDecoratorsClassProperty(diagnostics, decoratedProperties));
|
|
341
308
|
}
|
|
342
|
-
const members =
|
|
343
|
-
const classModifiers =
|
|
309
|
+
const members = ts.setTextRange(ts.factory.createNodeArray(newMembers, classDecl.members.hasTrailingComma), classDecl.members);
|
|
310
|
+
const classModifiers = ts.getModifiers(classDecl);
|
|
344
311
|
let modifiers;
|
|
345
312
|
if (decoratorsToKeep.size || (classModifiers == null ? void 0 : classModifiers.length)) {
|
|
346
313
|
modifiers = [...decoratorsToKeep, ...classModifiers || []];
|
|
347
314
|
}
|
|
348
|
-
return
|
|
315
|
+
return ts.factory.updateClassDeclaration(classDecl, modifiers, classDecl.name, classDecl.typeParameters, classDecl.heritageClauses, members);
|
|
349
316
|
}
|
|
350
317
|
function decoratorDownlevelVisitor(node) {
|
|
351
|
-
if (
|
|
318
|
+
if (ts.isClassDeclaration(node)) {
|
|
352
319
|
return transformClassDeclaration(node);
|
|
353
320
|
}
|
|
354
|
-
return
|
|
321
|
+
return ts.visitEachChild(node, decoratorDownlevelVisitor, context);
|
|
355
322
|
}
|
|
356
323
|
return (sf) => {
|
|
357
|
-
return
|
|
324
|
+
return ts.visitEachChild(sf, decoratorDownlevelVisitor, context);
|
|
358
325
|
};
|
|
359
326
|
};
|
|
360
327
|
}
|
|
361
328
|
function cloneClassElementWithModifiers(node, modifiers) {
|
|
362
329
|
let clone;
|
|
363
|
-
if (
|
|
364
|
-
clone =
|
|
365
|
-
} else if (
|
|
366
|
-
clone =
|
|
367
|
-
} else if (
|
|
368
|
-
clone =
|
|
369
|
-
} else if (
|
|
370
|
-
clone =
|
|
330
|
+
if (ts.isMethodDeclaration(node)) {
|
|
331
|
+
clone = ts.factory.createMethodDeclaration(modifiers, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body);
|
|
332
|
+
} else if (ts.isPropertyDeclaration(node)) {
|
|
333
|
+
clone = ts.factory.createPropertyDeclaration(modifiers, node.name, node.questionToken, node.type, node.initializer);
|
|
334
|
+
} else if (ts.isGetAccessor(node)) {
|
|
335
|
+
clone = ts.factory.createGetAccessorDeclaration(modifiers, node.name, node.parameters, node.type, node.body);
|
|
336
|
+
} else if (ts.isSetAccessor(node)) {
|
|
337
|
+
clone = ts.factory.createSetAccessorDeclaration(modifiers, node.name, node.parameters, node.body);
|
|
371
338
|
} else {
|
|
372
|
-
throw new Error(`Unsupported decorated member with kind ${
|
|
339
|
+
throw new Error(`Unsupported decorated member with kind ${ts.SyntaxKind[node.kind]}`);
|
|
373
340
|
}
|
|
374
|
-
return
|
|
341
|
+
return ts.setOriginalNode(clone, node);
|
|
375
342
|
}
|
|
376
343
|
|
|
377
|
-
// bazel-out/
|
|
344
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
|
|
378
345
|
var GLOBAL_DEFS_FOR_TERSER = {
|
|
379
346
|
ngDevMode: false,
|
|
380
347
|
ngI18nClosureMode: false
|
|
@@ -408,4 +375,4 @@ export {
|
|
|
408
375
|
* Use of this source code is governed by an MIT-style license that can be
|
|
409
376
|
* found in the LICENSE file at https://angular.io/license
|
|
410
377
|
*/
|
|
411
|
-
//# sourceMappingURL=chunk-
|
|
378
|
+
//# sourceMappingURL=chunk-TGEKDMUX.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,UAAU,QAAQ;AACzB,cAAM,OAAwB,CAAA;AAC9B,mBAAW,OAAO,KAAK,WAAW;AAChC,eAAK,KAAK,GAAG;;AAEf,cAAM,mBACF,GAAG,QAAQ,6BAA6B,GAAG,QAAQ,gBAAgB,MAAM,IAAI,CAAC;AAClF,2BAAmB,KAAK,GAAG,QAAQ,yBAAyB,QAAQ,gBAAgB,CAAC;;AAEvF;IACF;AACE,kBAAY,KAAK;QACf,MAAM,UAAU,cAAa;QAC7B,OAAO,UAAU,SAAQ;QACzB,QAAQ,UAAU,OAAM,IAAK,UAAU,SAAQ;QAC/C,aACI,GAAG,GAAG,WAAW,UAAU;QAC/B,UAAU,GAAG,mBAAmB;QAChC,MAAM;OACP;AACD;;AAEJ,SAAO,GAAG,QAAQ,8BAA8B,kBAAkB;AACpE;AAeA,SAAS,kCACL,aACA,wBACA,gBACA,0BAAiC;AACnC,QAA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