@openrewrite/rewrite 0.21.0 → 0.22.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/dist/src/javascript/parser.d.ts +45 -43
- package/dist/src/javascript/parser.d.ts.map +1 -1
- package/dist/src/javascript/parser.js +193 -107
- package/dist/src/javascript/parser.js.map +1 -1
- package/dist/src/javascript/remote/receiver.d.ts.map +1 -1
- package/dist/src/javascript/remote/receiver.js +153 -20
- package/dist/src/javascript/remote/receiver.js.map +1 -1
- package/dist/src/javascript/remote/sender.d.ts.map +1 -1
- package/dist/src/javascript/remote/sender.js +113 -13
- package/dist/src/javascript/remote/sender.js.map +1 -1
- package/dist/src/javascript/tree/extensions.js +2 -2
- package/dist/src/javascript/tree/extensions.js.map +1 -1
- package/dist/src/javascript/tree/support_types.d.ts +77 -40
- package/dist/src/javascript/tree/support_types.d.ts.map +1 -1
- package/dist/src/javascript/tree/support_types.js +75 -38
- package/dist/src/javascript/tree/support_types.js.map +1 -1
- package/dist/src/javascript/tree/tree.d.ts +636 -88
- package/dist/src/javascript/tree/tree.d.ts.map +1 -1
- package/dist/src/javascript/tree/tree.js +922 -175
- package/dist/src/javascript/tree/tree.js.map +1 -1
- package/dist/src/javascript/visitor.d.ts +13 -2
- package/dist/src/javascript/visitor.d.ts.map +1 -1
- package/dist/src/javascript/visitor.js +166 -15
- package/dist/src/javascript/visitor.js.map +1 -1
- package/package.json +1 -1
|
@@ -75,6 +75,7 @@ class Visitor extends __1.JavaScriptVisitor {
|
|
|
75
75
|
arrowFunction = arrowFunction.withMarkers(ctx.receiveNode(arrowFunction.markers, ctx.receiveMarkers));
|
|
76
76
|
arrowFunction = arrowFunction.withLeadingAnnotations(ctx.receiveNodes(arrowFunction.leadingAnnotations, ctx.receiveTree));
|
|
77
77
|
arrowFunction = arrowFunction.withModifiers(ctx.receiveNodes(arrowFunction.modifiers, ctx.receiveTree));
|
|
78
|
+
arrowFunction = arrowFunction.withTypeParameters(ctx.receiveNode(arrowFunction.typeParameters, ctx.receiveTree));
|
|
78
79
|
arrowFunction = arrowFunction.withParameters(ctx.receiveNode(arrowFunction.parameters, ctx.receiveTree));
|
|
79
80
|
arrowFunction = arrowFunction.withReturnTypeExpression(ctx.receiveNode(arrowFunction.returnTypeExpression, ctx.receiveTree));
|
|
80
81
|
arrowFunction = arrowFunction.withArrow(ctx.receiveNode(arrowFunction.arrow, receiveSpace));
|
|
@@ -127,6 +128,7 @@ class Visitor extends __1.JavaScriptVisitor {
|
|
|
127
128
|
functionType = functionType.withId(ctx.receiveValue(functionType.id, 0));
|
|
128
129
|
functionType = functionType.withPrefix(ctx.receiveNode(functionType.prefix, receiveSpace));
|
|
129
130
|
functionType = functionType.withMarkers(ctx.receiveNode(functionType.markers, ctx.receiveMarkers));
|
|
131
|
+
functionType = functionType.padding.withConstructorType(ctx.receiveNode(functionType.padding.constructorType, rightPaddedValueReceiver(1)));
|
|
130
132
|
functionType = functionType.padding.withParameters(ctx.receiveNode(functionType.padding.parameters, receiveContainer));
|
|
131
133
|
functionType = functionType.withArrow(ctx.receiveNode(functionType.arrow, receiveSpace));
|
|
132
134
|
functionType = functionType.withReturnType(ctx.receiveNode(functionType.returnType, ctx.receiveTree));
|
|
@@ -138,12 +140,22 @@ class Visitor extends __1.JavaScriptVisitor {
|
|
|
138
140
|
jsImport = jsImport.withPrefix(ctx.receiveNode(jsImport.prefix, receiveSpace));
|
|
139
141
|
jsImport = jsImport.withMarkers(ctx.receiveNode(jsImport.markers, ctx.receiveMarkers));
|
|
140
142
|
jsImport = jsImport.padding.withName(ctx.receiveNode(jsImport.padding.name, receiveRightPaddedTree));
|
|
143
|
+
jsImport = jsImport.padding.withImportType(ctx.receiveNode(jsImport.padding.importType, leftPaddedValueReceiver(1)));
|
|
141
144
|
jsImport = jsImport.padding.withImports(ctx.receiveNode(jsImport.padding.imports, receiveContainer));
|
|
142
145
|
jsImport = jsImport.withFrom(ctx.receiveNode(jsImport.from, receiveSpace));
|
|
143
146
|
jsImport = jsImport.withTarget(ctx.receiveNode(jsImport.target, ctx.receiveTree));
|
|
144
147
|
jsImport = jsImport.padding.withInitializer(ctx.receiveNode(jsImport.padding.initializer, receiveLeftPaddedTree));
|
|
145
148
|
return jsImport;
|
|
146
149
|
}
|
|
150
|
+
visitJsImportSpecifier(jsImportSpecifier, ctx) {
|
|
151
|
+
jsImportSpecifier = jsImportSpecifier.withId(ctx.receiveValue(jsImportSpecifier.id, 0));
|
|
152
|
+
jsImportSpecifier = jsImportSpecifier.withPrefix(ctx.receiveNode(jsImportSpecifier.prefix, receiveSpace));
|
|
153
|
+
jsImportSpecifier = jsImportSpecifier.withMarkers(ctx.receiveNode(jsImportSpecifier.markers, ctx.receiveMarkers));
|
|
154
|
+
jsImportSpecifier = jsImportSpecifier.padding.withImportType(ctx.receiveNode(jsImportSpecifier.padding.importType, leftPaddedValueReceiver(1)));
|
|
155
|
+
jsImportSpecifier = jsImportSpecifier.withSpecifier(ctx.receiveNode(jsImportSpecifier.specifier, ctx.receiveTree));
|
|
156
|
+
jsImportSpecifier = jsImportSpecifier.withType(ctx.receiveValue(jsImportSpecifier.type, 5));
|
|
157
|
+
return jsImportSpecifier;
|
|
158
|
+
}
|
|
147
159
|
visitJsBinary(jsBinary, ctx) {
|
|
148
160
|
jsBinary = jsBinary.withId(ctx.receiveValue(jsBinary.id, 0));
|
|
149
161
|
jsBinary = jsBinary.withPrefix(ctx.receiveNode(jsBinary.prefix, receiveSpace));
|
|
@@ -165,18 +177,6 @@ class Visitor extends __1.JavaScriptVisitor {
|
|
|
165
177
|
objectBindingDeclarations = objectBindingDeclarations.padding.withInitializer(ctx.receiveNode(objectBindingDeclarations.padding.initializer, receiveLeftPaddedTree));
|
|
166
178
|
return objectBindingDeclarations;
|
|
167
179
|
}
|
|
168
|
-
visitBinding(binding, ctx) {
|
|
169
|
-
binding = binding.withId(ctx.receiveValue(binding.id, 0));
|
|
170
|
-
binding = binding.withPrefix(ctx.receiveNode(binding.prefix, receiveSpace));
|
|
171
|
-
binding = binding.withMarkers(ctx.receiveNode(binding.markers, ctx.receiveMarkers));
|
|
172
|
-
binding = binding.padding.withPropertyName(ctx.receiveNode(binding.padding.propertyName, receiveRightPaddedTree));
|
|
173
|
-
binding = binding.withName(ctx.receiveNode(binding.name, ctx.receiveTree));
|
|
174
|
-
binding = binding.withDimensionsAfterName(ctx.receiveNodes(binding.dimensionsAfterName, leftPaddedNodeReceiver(java_1.Space)));
|
|
175
|
-
binding = binding.withAfterVararg(ctx.receiveNode(binding.afterVararg, receiveSpace));
|
|
176
|
-
binding = binding.padding.withInitializer(ctx.receiveNode(binding.padding.initializer, receiveLeftPaddedTree));
|
|
177
|
-
binding = binding.withVariableType(ctx.receiveValue(binding.variableType, 5));
|
|
178
|
-
return binding;
|
|
179
|
-
}
|
|
180
180
|
visitPropertyAssignment(propertyAssignment, ctx) {
|
|
181
181
|
propertyAssignment = propertyAssignment.withId(ctx.receiveValue(propertyAssignment.id, 0));
|
|
182
182
|
propertyAssignment = propertyAssignment.withPrefix(ctx.receiveNode(propertyAssignment.prefix, receiveSpace));
|
|
@@ -230,7 +230,6 @@ class Visitor extends __1.JavaScriptVisitor {
|
|
|
230
230
|
typeDeclaration = typeDeclaration.withId(ctx.receiveValue(typeDeclaration.id, 0));
|
|
231
231
|
typeDeclaration = typeDeclaration.withPrefix(ctx.receiveNode(typeDeclaration.prefix, receiveSpace));
|
|
232
232
|
typeDeclaration = typeDeclaration.withMarkers(ctx.receiveNode(typeDeclaration.markers, ctx.receiveMarkers));
|
|
233
|
-
typeDeclaration = typeDeclaration.withLeadingAnnotations(ctx.receiveNodes(typeDeclaration.leadingAnnotations, ctx.receiveTree));
|
|
234
233
|
typeDeclaration = typeDeclaration.withModifiers(ctx.receiveNodes(typeDeclaration.modifiers, ctx.receiveTree));
|
|
235
234
|
typeDeclaration = typeDeclaration.withName(ctx.receiveNode(typeDeclaration.name, ctx.receiveTree));
|
|
236
235
|
typeDeclaration = typeDeclaration.withTypeParameters(ctx.receiveNode(typeDeclaration.typeParameters, ctx.receiveTree));
|
|
@@ -246,6 +245,14 @@ class Visitor extends __1.JavaScriptVisitor {
|
|
|
246
245
|
typeOf = typeOf.withType(ctx.receiveValue(typeOf.type, 5));
|
|
247
246
|
return typeOf;
|
|
248
247
|
}
|
|
248
|
+
visitTypeQuery(typeQuery, ctx) {
|
|
249
|
+
typeQuery = typeQuery.withId(ctx.receiveValue(typeQuery.id, 0));
|
|
250
|
+
typeQuery = typeQuery.withPrefix(ctx.receiveNode(typeQuery.prefix, receiveSpace));
|
|
251
|
+
typeQuery = typeQuery.withMarkers(ctx.receiveNode(typeQuery.markers, ctx.receiveMarkers));
|
|
252
|
+
typeQuery = typeQuery.withTypeExpression(ctx.receiveNode(typeQuery.typeExpression, ctx.receiveTree));
|
|
253
|
+
typeQuery = typeQuery.withType(ctx.receiveValue(typeQuery.type, 5));
|
|
254
|
+
return typeQuery;
|
|
255
|
+
}
|
|
249
256
|
visitTypeOperator(typeOperator, ctx) {
|
|
250
257
|
typeOperator = typeOperator.withId(ctx.receiveValue(typeOperator.id, 0));
|
|
251
258
|
typeOperator = typeOperator.withPrefix(ctx.receiveNode(typeOperator.prefix, receiveSpace));
|
|
@@ -271,6 +278,14 @@ class Visitor extends __1.JavaScriptVisitor {
|
|
|
271
278
|
union = union.withType(ctx.receiveValue(union.type, 5));
|
|
272
279
|
return union;
|
|
273
280
|
}
|
|
281
|
+
visitIntersection(intersection, ctx) {
|
|
282
|
+
intersection = intersection.withId(ctx.receiveValue(intersection.id, 0));
|
|
283
|
+
intersection = intersection.withPrefix(ctx.receiveNode(intersection.prefix, receiveSpace));
|
|
284
|
+
intersection = intersection.withMarkers(ctx.receiveNode(intersection.markers, ctx.receiveMarkers));
|
|
285
|
+
intersection = intersection.padding.withTypes(ctx.receiveNodes(intersection.padding.types, receiveRightPaddedTree));
|
|
286
|
+
intersection = intersection.withType(ctx.receiveValue(intersection.type, 5));
|
|
287
|
+
return intersection;
|
|
288
|
+
}
|
|
274
289
|
visitVoid(_void, ctx) {
|
|
275
290
|
_void = _void.withId(ctx.receiveValue(_void.id, 0));
|
|
276
291
|
_void = _void.withPrefix(ctx.receiveNode(_void.prefix, receiveSpace));
|
|
@@ -331,6 +346,42 @@ class Visitor extends __1.JavaScriptVisitor {
|
|
|
331
346
|
jSMethodDeclaration = jSMethodDeclaration.withMethodType(ctx.receiveValue(jSMethodDeclaration.methodType, 5));
|
|
332
347
|
return jSMethodDeclaration;
|
|
333
348
|
}
|
|
349
|
+
visitJSMethodInvocation(jSMethodInvocation, ctx) {
|
|
350
|
+
jSMethodInvocation = jSMethodInvocation.withId(ctx.receiveValue(jSMethodInvocation.id, 0));
|
|
351
|
+
jSMethodInvocation = jSMethodInvocation.withPrefix(ctx.receiveNode(jSMethodInvocation.prefix, receiveSpace));
|
|
352
|
+
jSMethodInvocation = jSMethodInvocation.withMarkers(ctx.receiveNode(jSMethodInvocation.markers, ctx.receiveMarkers));
|
|
353
|
+
jSMethodInvocation = jSMethodInvocation.padding.withSelect(ctx.receiveNode(jSMethodInvocation.padding.select, receiveRightPaddedTree));
|
|
354
|
+
jSMethodInvocation = jSMethodInvocation.padding.withTypeParameters(ctx.receiveNode(jSMethodInvocation.padding.typeParameters, receiveContainer));
|
|
355
|
+
jSMethodInvocation = jSMethodInvocation.withName(ctx.receiveNode(jSMethodInvocation.name, ctx.receiveTree));
|
|
356
|
+
jSMethodInvocation = jSMethodInvocation.padding.withArguments(ctx.receiveNode(jSMethodInvocation.padding.arguments, receiveContainer));
|
|
357
|
+
jSMethodInvocation = jSMethodInvocation.withMethodType(ctx.receiveValue(jSMethodInvocation.methodType, 5));
|
|
358
|
+
return jSMethodInvocation;
|
|
359
|
+
}
|
|
360
|
+
visitJSForOfLoop(jSForOfLoop, ctx) {
|
|
361
|
+
jSForOfLoop = jSForOfLoop.withId(ctx.receiveValue(jSForOfLoop.id, 0));
|
|
362
|
+
jSForOfLoop = jSForOfLoop.withPrefix(ctx.receiveNode(jSForOfLoop.prefix, receiveSpace));
|
|
363
|
+
jSForOfLoop = jSForOfLoop.withMarkers(ctx.receiveNode(jSForOfLoop.markers, ctx.receiveMarkers));
|
|
364
|
+
jSForOfLoop = jSForOfLoop.padding.withAwait(ctx.receiveNode(jSForOfLoop.padding.await, leftPaddedValueReceiver(1)));
|
|
365
|
+
jSForOfLoop = jSForOfLoop.withControl(ctx.receiveNode(jSForOfLoop.control, ctx.receiveTree));
|
|
366
|
+
jSForOfLoop = jSForOfLoop.padding.withBody(ctx.receiveNode(jSForOfLoop.padding.body, receiveRightPaddedTree));
|
|
367
|
+
return jSForOfLoop;
|
|
368
|
+
}
|
|
369
|
+
visitJSForInLoop(jSForInLoop, ctx) {
|
|
370
|
+
jSForInLoop = jSForInLoop.withId(ctx.receiveValue(jSForInLoop.id, 0));
|
|
371
|
+
jSForInLoop = jSForInLoop.withPrefix(ctx.receiveNode(jSForInLoop.prefix, receiveSpace));
|
|
372
|
+
jSForInLoop = jSForInLoop.withMarkers(ctx.receiveNode(jSForInLoop.markers, ctx.receiveMarkers));
|
|
373
|
+
jSForInLoop = jSForInLoop.withControl(ctx.receiveNode(jSForInLoop.control, ctx.receiveTree));
|
|
374
|
+
jSForInLoop = jSForInLoop.padding.withBody(ctx.receiveNode(jSForInLoop.padding.body, receiveRightPaddedTree));
|
|
375
|
+
return jSForInLoop;
|
|
376
|
+
}
|
|
377
|
+
visitJSForInOfLoopControl(jSForInOfLoopControl, ctx) {
|
|
378
|
+
jSForInOfLoopControl = jSForInOfLoopControl.withId(ctx.receiveValue(jSForInOfLoopControl.id, 0));
|
|
379
|
+
jSForInOfLoopControl = jSForInOfLoopControl.withPrefix(ctx.receiveNode(jSForInOfLoopControl.prefix, receiveSpace));
|
|
380
|
+
jSForInOfLoopControl = jSForInOfLoopControl.withMarkers(ctx.receiveNode(jSForInOfLoopControl.markers, ctx.receiveMarkers));
|
|
381
|
+
jSForInOfLoopControl = jSForInOfLoopControl.padding.withVariable(ctx.receiveNode(jSForInOfLoopControl.padding.variable, receiveRightPaddedTree));
|
|
382
|
+
jSForInOfLoopControl = jSForInOfLoopControl.padding.withIterable(ctx.receiveNode(jSForInOfLoopControl.padding.iterable, receiveRightPaddedTree));
|
|
383
|
+
return jSForInOfLoopControl;
|
|
384
|
+
}
|
|
334
385
|
visitNamespaceDeclaration(namespaceDeclaration, ctx) {
|
|
335
386
|
namespaceDeclaration = namespaceDeclaration.withId(ctx.receiveValue(namespaceDeclaration.id, 0));
|
|
336
387
|
namespaceDeclaration = namespaceDeclaration.withPrefix(ctx.receiveNode(namespaceDeclaration.prefix, receiveSpace));
|
|
@@ -341,6 +392,55 @@ class Visitor extends __1.JavaScriptVisitor {
|
|
|
341
392
|
namespaceDeclaration = namespaceDeclaration.withBody(ctx.receiveNode(namespaceDeclaration.body, ctx.receiveTree));
|
|
342
393
|
return namespaceDeclaration;
|
|
343
394
|
}
|
|
395
|
+
visitFunctionDeclaration(functionDeclaration, ctx) {
|
|
396
|
+
functionDeclaration = functionDeclaration.withId(ctx.receiveValue(functionDeclaration.id, 0));
|
|
397
|
+
functionDeclaration = functionDeclaration.withPrefix(ctx.receiveNode(functionDeclaration.prefix, receiveSpace));
|
|
398
|
+
functionDeclaration = functionDeclaration.withMarkers(ctx.receiveNode(functionDeclaration.markers, ctx.receiveMarkers));
|
|
399
|
+
functionDeclaration = functionDeclaration.withModifiers(ctx.receiveNodes(functionDeclaration.modifiers, ctx.receiveTree));
|
|
400
|
+
functionDeclaration = functionDeclaration.withName(ctx.receiveNode(functionDeclaration.name, ctx.receiveTree));
|
|
401
|
+
functionDeclaration = functionDeclaration.withTypeParameters(ctx.receiveNode(functionDeclaration.typeParameters, ctx.receiveTree));
|
|
402
|
+
functionDeclaration = functionDeclaration.padding.withParameters(ctx.receiveNode(functionDeclaration.padding.parameters, receiveContainer));
|
|
403
|
+
functionDeclaration = functionDeclaration.withReturnTypeExpression(ctx.receiveNode(functionDeclaration.returnTypeExpression, ctx.receiveTree));
|
|
404
|
+
functionDeclaration = functionDeclaration.withBody(ctx.receiveNode(functionDeclaration.body, ctx.receiveTree));
|
|
405
|
+
functionDeclaration = functionDeclaration.withType(ctx.receiveValue(functionDeclaration.type, 5));
|
|
406
|
+
return functionDeclaration;
|
|
407
|
+
}
|
|
408
|
+
visitTypeLiteral(typeLiteral, ctx) {
|
|
409
|
+
typeLiteral = typeLiteral.withId(ctx.receiveValue(typeLiteral.id, 0));
|
|
410
|
+
typeLiteral = typeLiteral.withPrefix(ctx.receiveNode(typeLiteral.prefix, receiveSpace));
|
|
411
|
+
typeLiteral = typeLiteral.withMarkers(ctx.receiveNode(typeLiteral.markers, ctx.receiveMarkers));
|
|
412
|
+
typeLiteral = typeLiteral.withMembers(ctx.receiveNode(typeLiteral.members, ctx.receiveTree));
|
|
413
|
+
typeLiteral = typeLiteral.withType(ctx.receiveValue(typeLiteral.type, 5));
|
|
414
|
+
return typeLiteral;
|
|
415
|
+
}
|
|
416
|
+
visitIndexSignatureDeclaration(indexSignatureDeclaration, ctx) {
|
|
417
|
+
indexSignatureDeclaration = indexSignatureDeclaration.withId(ctx.receiveValue(indexSignatureDeclaration.id, 0));
|
|
418
|
+
indexSignatureDeclaration = indexSignatureDeclaration.withPrefix(ctx.receiveNode(indexSignatureDeclaration.prefix, receiveSpace));
|
|
419
|
+
indexSignatureDeclaration = indexSignatureDeclaration.withMarkers(ctx.receiveNode(indexSignatureDeclaration.markers, ctx.receiveMarkers));
|
|
420
|
+
indexSignatureDeclaration = indexSignatureDeclaration.withModifiers(ctx.receiveNodes(indexSignatureDeclaration.modifiers, ctx.receiveTree));
|
|
421
|
+
indexSignatureDeclaration = indexSignatureDeclaration.padding.withParameters(ctx.receiveNode(indexSignatureDeclaration.padding.parameters, receiveContainer));
|
|
422
|
+
indexSignatureDeclaration = indexSignatureDeclaration.padding.withTypeExpression(ctx.receiveNode(indexSignatureDeclaration.padding.typeExpression, receiveLeftPaddedTree));
|
|
423
|
+
indexSignatureDeclaration = indexSignatureDeclaration.withType(ctx.receiveValue(indexSignatureDeclaration.type, 5));
|
|
424
|
+
return indexSignatureDeclaration;
|
|
425
|
+
}
|
|
426
|
+
visitArrayBindingPattern(arrayBindingPattern, ctx) {
|
|
427
|
+
arrayBindingPattern = arrayBindingPattern.withId(ctx.receiveValue(arrayBindingPattern.id, 0));
|
|
428
|
+
arrayBindingPattern = arrayBindingPattern.withPrefix(ctx.receiveNode(arrayBindingPattern.prefix, receiveSpace));
|
|
429
|
+
arrayBindingPattern = arrayBindingPattern.withMarkers(ctx.receiveNode(arrayBindingPattern.markers, ctx.receiveMarkers));
|
|
430
|
+
arrayBindingPattern = arrayBindingPattern.padding.withElements(ctx.receiveNode(arrayBindingPattern.padding.elements, receiveContainer));
|
|
431
|
+
arrayBindingPattern = arrayBindingPattern.withType(ctx.receiveValue(arrayBindingPattern.type, 5));
|
|
432
|
+
return arrayBindingPattern;
|
|
433
|
+
}
|
|
434
|
+
visitBindingElement(bindingElement, ctx) {
|
|
435
|
+
bindingElement = bindingElement.withId(ctx.receiveValue(bindingElement.id, 0));
|
|
436
|
+
bindingElement = bindingElement.withPrefix(ctx.receiveNode(bindingElement.prefix, receiveSpace));
|
|
437
|
+
bindingElement = bindingElement.withMarkers(ctx.receiveNode(bindingElement.markers, ctx.receiveMarkers));
|
|
438
|
+
bindingElement = bindingElement.padding.withPropertyName(ctx.receiveNode(bindingElement.padding.propertyName, receiveRightPaddedTree));
|
|
439
|
+
bindingElement = bindingElement.withName(ctx.receiveNode(bindingElement.name, ctx.receiveTree));
|
|
440
|
+
bindingElement = bindingElement.padding.withInitializer(ctx.receiveNode(bindingElement.padding.initializer, receiveLeftPaddedTree));
|
|
441
|
+
bindingElement = bindingElement.withVariableType(ctx.receiveValue(bindingElement.variableType, 5));
|
|
442
|
+
return bindingElement;
|
|
443
|
+
}
|
|
344
444
|
visitAnnotatedType(annotatedType, ctx) {
|
|
345
445
|
annotatedType = annotatedType.withId(ctx.receiveValue(annotatedType.id, 0));
|
|
346
446
|
annotatedType = annotatedType.withPrefix(ctx.receiveNode(annotatedType.prefix, receiveSpace));
|
|
@@ -949,7 +1049,7 @@ class Factory {
|
|
|
949
1049
|
return new tree_1.Alias(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, ctx.receiveTree));
|
|
950
1050
|
}
|
|
951
1051
|
if (type === "org.openrewrite.javascript.tree.JS$ArrowFunction") {
|
|
952
|
-
return new tree_1.ArrowFunction(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
|
|
1052
|
+
return new tree_1.ArrowFunction(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
|
|
953
1053
|
}
|
|
954
1054
|
if (type === "org.openrewrite.javascript.tree.JS$Await") {
|
|
955
1055
|
return new tree_1.Await(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
|
|
@@ -967,10 +1067,13 @@ class Factory {
|
|
|
967
1067
|
return new tree_1.ExpressionStatement(ctx.receiveValue(null, 0), ctx.receiveNode(null, ctx.receiveTree));
|
|
968
1068
|
}
|
|
969
1069
|
if (type === "org.openrewrite.javascript.tree.JS$FunctionType") {
|
|
970
|
-
return new tree_1.FunctionType(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
|
|
1070
|
+
return new tree_1.FunctionType(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, rightPaddedValueReceiver(1)), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
|
|
971
1071
|
}
|
|
972
1072
|
if (type === "org.openrewrite.javascript.tree.JS$JsImport") {
|
|
973
|
-
return new tree_1.JsImport(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveLeftPaddedTree));
|
|
1073
|
+
return new tree_1.JsImport(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, leftPaddedValueReceiver(1)), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveLeftPaddedTree));
|
|
1074
|
+
}
|
|
1075
|
+
if (type === "org.openrewrite.javascript.tree.JS$JsImportSpecifier") {
|
|
1076
|
+
return new tree_1.JsImportSpecifier(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, leftPaddedValueReceiver(1)), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
|
|
974
1077
|
}
|
|
975
1078
|
if (type === "org.openrewrite.javascript.tree.JS$JsBinary") {
|
|
976
1079
|
return new tree_1.JsBinary(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, leftPaddedValueReceiver(3)), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
|
|
@@ -978,9 +1081,6 @@ class Factory {
|
|
|
978
1081
|
if (type === "org.openrewrite.javascript.tree.JS$ObjectBindingDeclarations") {
|
|
979
1082
|
return new tree_1.ObjectBindingDeclarations(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, receiveLeftPaddedTree));
|
|
980
1083
|
}
|
|
981
|
-
if (type === "org.openrewrite.javascript.tree.JS$ObjectBindingDeclarations$Binding") {
|
|
982
|
-
return new tree_1.ObjectBindingDeclarations.Binding(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNodes(null, leftPaddedNodeReceiver(java_1.Space)), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, receiveLeftPaddedTree), ctx.receiveValue(null, 5));
|
|
983
|
-
}
|
|
984
1084
|
if (type === "org.openrewrite.javascript.tree.JS$PropertyAssignment") {
|
|
985
1085
|
return new tree_1.PropertyAssignment(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, ctx.receiveTree));
|
|
986
1086
|
}
|
|
@@ -1000,11 +1100,14 @@ class Factory {
|
|
|
1000
1100
|
return new tree_1.Tuple(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveContainer), ctx.receiveValue(null, 5));
|
|
1001
1101
|
}
|
|
1002
1102
|
if (type === "org.openrewrite.javascript.tree.JS$TypeDeclaration") {
|
|
1003
|
-
return new tree_1.TypeDeclaration(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.
|
|
1103
|
+
return new tree_1.TypeDeclaration(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveLeftPaddedTree), ctx.receiveValue(null, 5));
|
|
1004
1104
|
}
|
|
1005
1105
|
if (type === "org.openrewrite.javascript.tree.JS$TypeOf") {
|
|
1006
1106
|
return new tree_1.TypeOf(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
|
|
1007
1107
|
}
|
|
1108
|
+
if (type === "org.openrewrite.javascript.tree.JS$TypeQuery") {
|
|
1109
|
+
return new tree_1.TypeQuery(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
|
|
1110
|
+
}
|
|
1008
1111
|
if (type === "org.openrewrite.javascript.tree.JS$TypeOperator") {
|
|
1009
1112
|
return new tree_1.TypeOperator(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveValue(null, 3), ctx.receiveNode(null, receiveLeftPaddedTree));
|
|
1010
1113
|
}
|
|
@@ -1014,6 +1117,9 @@ class Factory {
|
|
|
1014
1117
|
if (type === "org.openrewrite.javascript.tree.JS$Union") {
|
|
1015
1118
|
return new tree_1.Union(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, receiveRightPaddedTree), ctx.receiveValue(null, 5));
|
|
1016
1119
|
}
|
|
1120
|
+
if (type === "org.openrewrite.javascript.tree.JS$Intersection") {
|
|
1121
|
+
return new tree_1.Intersection(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, receiveRightPaddedTree), ctx.receiveValue(null, 5));
|
|
1122
|
+
}
|
|
1017
1123
|
if (type === "org.openrewrite.javascript.tree.JS$Void") {
|
|
1018
1124
|
return new tree_1.Void(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree));
|
|
1019
1125
|
}
|
|
@@ -1032,9 +1138,36 @@ class Factory {
|
|
|
1032
1138
|
if (type === "org.openrewrite.javascript.tree.JS$JSMethodDeclaration") {
|
|
1033
1139
|
return new tree_1.JSMethodDeclaration(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveLeftPaddedTree), ctx.receiveValue(null, 5));
|
|
1034
1140
|
}
|
|
1141
|
+
if (type === "org.openrewrite.javascript.tree.JS$JSMethodInvocation") {
|
|
1142
|
+
return new tree_1.JSMethodInvocation(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveContainer), ctx.receiveValue(null, 5));
|
|
1143
|
+
}
|
|
1144
|
+
if (type === "org.openrewrite.javascript.tree.JS$JSForOfLoop") {
|
|
1145
|
+
return new tree_1.JSForOfLoop(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, leftPaddedValueReceiver(1)), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveRightPaddedTree));
|
|
1146
|
+
}
|
|
1147
|
+
if (type === "org.openrewrite.javascript.tree.JS$JSForInLoop") {
|
|
1148
|
+
return new tree_1.JSForInLoop(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveRightPaddedTree));
|
|
1149
|
+
}
|
|
1150
|
+
if (type === "org.openrewrite.javascript.tree.JS$JSForInOfLoopControl") {
|
|
1151
|
+
return new tree_1.JSForInOfLoopControl(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, receiveRightPaddedTree));
|
|
1152
|
+
}
|
|
1035
1153
|
if (type === "org.openrewrite.javascript.tree.JS$NamespaceDeclaration") {
|
|
1036
1154
|
return new tree_1.NamespaceDeclaration(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, leftPaddedValueReceiver(3)), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, ctx.receiveTree));
|
|
1037
1155
|
}
|
|
1156
|
+
if (type === "org.openrewrite.javascript.tree.JS$FunctionDeclaration") {
|
|
1157
|
+
return new tree_1.FunctionDeclaration(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
|
|
1158
|
+
}
|
|
1159
|
+
if (type === "org.openrewrite.javascript.tree.JS$TypeLiteral") {
|
|
1160
|
+
return new tree_1.TypeLiteral(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
|
|
1161
|
+
}
|
|
1162
|
+
if (type === "org.openrewrite.javascript.tree.JS$IndexSignatureDeclaration") {
|
|
1163
|
+
return new tree_1.IndexSignatureDeclaration(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, receiveLeftPaddedTree), ctx.receiveValue(null, 5));
|
|
1164
|
+
}
|
|
1165
|
+
if (type === "org.openrewrite.javascript.tree.JS$ArrayBindingPattern") {
|
|
1166
|
+
return new tree_1.ArrayBindingPattern(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveContainer), ctx.receiveValue(null, 5));
|
|
1167
|
+
}
|
|
1168
|
+
if (type === "org.openrewrite.javascript.tree.JS$BindingElement") {
|
|
1169
|
+
return new tree_1.BindingElement(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveLeftPaddedTree), ctx.receiveValue(null, 5));
|
|
1170
|
+
}
|
|
1038
1171
|
if (type === "org.openrewrite.java.tree.J$AnnotatedType") {
|
|
1039
1172
|
return new Java.AnnotatedType(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree));
|
|
1040
1173
|
}
|