@openrewrite/rewrite 0.23.1 → 0.24.0
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 +19 -17
- package/dist/src/javascript/parser.d.ts.map +1 -1
- package/dist/src/javascript/parser.js +84 -57
- 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 +150 -3
- 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 +112 -1
- package/dist/src/javascript/remote/sender.js.map +1 -1
- package/dist/src/javascript/tree/support_types.d.ts +36 -4
- package/dist/src/javascript/tree/support_types.d.ts.map +1 -1
- package/dist/src/javascript/tree/support_types.js +32 -0
- package/dist/src/javascript/tree/support_types.js.map +1 -1
- package/dist/src/javascript/tree/tree.d.ts +630 -14
- package/dist/src/javascript/tree/tree.d.ts.map +1 -1
- package/dist/src/javascript/tree/tree.js +861 -23
- package/dist/src/javascript/tree/tree.js.map +1 -1
- package/dist/src/javascript/visitor.d.ts +13 -1
- package/dist/src/javascript/visitor.d.ts.map +1 -1
- package/dist/src/javascript/visitor.js +155 -1
- package/dist/src/javascript/visitor.js.map +1 -1
- package/package.json +1 -1
|
@@ -147,12 +147,32 @@ class Visitor extends __1.JavaScriptVisitor {
|
|
|
147
147
|
functionType = functionType.withPrefix(ctx.receiveNode(functionType.prefix, receiveSpace));
|
|
148
148
|
functionType = functionType.withMarkers(ctx.receiveNode(functionType.markers, ctx.receiveMarkers));
|
|
149
149
|
functionType = functionType.padding.withConstructorType(ctx.receiveNode(functionType.padding.constructorType, rightPaddedValueReceiver(1)));
|
|
150
|
+
functionType = functionType.withTypeParameters(ctx.receiveNode(functionType.typeParameters, ctx.receiveTree));
|
|
150
151
|
functionType = functionType.padding.withParameters(ctx.receiveNode(functionType.padding.parameters, receiveContainer));
|
|
151
152
|
functionType = functionType.withArrow(ctx.receiveNode(functionType.arrow, receiveSpace));
|
|
152
153
|
functionType = functionType.withReturnType(ctx.receiveNode(functionType.returnType, ctx.receiveTree));
|
|
153
154
|
functionType = functionType.withType(ctx.receiveValue(functionType.type, 5));
|
|
154
155
|
return functionType;
|
|
155
156
|
}
|
|
157
|
+
visitInferType(inferType, ctx) {
|
|
158
|
+
inferType = inferType.withId(ctx.receiveValue(inferType.id, 0));
|
|
159
|
+
inferType = inferType.withPrefix(ctx.receiveNode(inferType.prefix, receiveSpace));
|
|
160
|
+
inferType = inferType.withMarkers(ctx.receiveNode(inferType.markers, ctx.receiveMarkers));
|
|
161
|
+
inferType = inferType.padding.withTypeParameter(ctx.receiveNode(inferType.padding.typeParameter, receiveLeftPaddedTree));
|
|
162
|
+
inferType = inferType.withType(ctx.receiveValue(inferType.type, 5));
|
|
163
|
+
return inferType;
|
|
164
|
+
}
|
|
165
|
+
visitImportType(importType, ctx) {
|
|
166
|
+
importType = importType.withId(ctx.receiveValue(importType.id, 0));
|
|
167
|
+
importType = importType.withPrefix(ctx.receiveNode(importType.prefix, receiveSpace));
|
|
168
|
+
importType = importType.withMarkers(ctx.receiveNode(importType.markers, ctx.receiveMarkers));
|
|
169
|
+
importType = importType.padding.withHasTypeof(ctx.receiveNode(importType.padding.hasTypeof, rightPaddedValueReceiver(1)));
|
|
170
|
+
importType = importType.withImportArgument(ctx.receiveNode(importType.importArgument, ctx.receiveTree));
|
|
171
|
+
importType = importType.padding.withQualifier(ctx.receiveNode(importType.padding.qualifier, receiveLeftPaddedTree));
|
|
172
|
+
importType = importType.padding.withTypeArguments(ctx.receiveNode(importType.padding.typeArguments, receiveContainer));
|
|
173
|
+
importType = importType.withType(ctx.receiveValue(importType.type, 5));
|
|
174
|
+
return importType;
|
|
175
|
+
}
|
|
156
176
|
visitJsImport(jsImport, ctx) {
|
|
157
177
|
jsImport = jsImport.withId(ctx.receiveValue(jsImport.id, 0));
|
|
158
178
|
jsImport = jsImport.withPrefix(ctx.receiveNode(jsImport.prefix, receiveSpace));
|
|
@@ -184,6 +204,14 @@ class Visitor extends __1.JavaScriptVisitor {
|
|
|
184
204
|
jsBinary = jsBinary.withType(ctx.receiveValue(jsBinary.type, 5));
|
|
185
205
|
return jsBinary;
|
|
186
206
|
}
|
|
207
|
+
visitLiteralType(literalType, ctx) {
|
|
208
|
+
literalType = literalType.withId(ctx.receiveValue(literalType.id, 0));
|
|
209
|
+
literalType = literalType.withPrefix(ctx.receiveNode(literalType.prefix, receiveSpace));
|
|
210
|
+
literalType = literalType.withMarkers(ctx.receiveNode(literalType.markers, ctx.receiveMarkers));
|
|
211
|
+
literalType = literalType.withLiteral(ctx.receiveNode(literalType.literal, ctx.receiveTree));
|
|
212
|
+
literalType = literalType.withType(ctx.receiveValue(literalType.type, 5));
|
|
213
|
+
return literalType;
|
|
214
|
+
}
|
|
187
215
|
visitObjectBindingDeclarations(objectBindingDeclarations, ctx) {
|
|
188
216
|
objectBindingDeclarations = objectBindingDeclarations.withId(ctx.receiveValue(objectBindingDeclarations.id, 0));
|
|
189
217
|
objectBindingDeclarations = objectBindingDeclarations.withPrefix(ctx.receiveNode(objectBindingDeclarations.prefix, receiveSpace));
|
|
@@ -203,6 +231,15 @@ class Visitor extends __1.JavaScriptVisitor {
|
|
|
203
231
|
propertyAssignment = propertyAssignment.withInitializer(ctx.receiveNode(propertyAssignment.initializer, ctx.receiveTree));
|
|
204
232
|
return propertyAssignment;
|
|
205
233
|
}
|
|
234
|
+
visitSatisfiesExpression(satisfiesExpression, ctx) {
|
|
235
|
+
satisfiesExpression = satisfiesExpression.withId(ctx.receiveValue(satisfiesExpression.id, 0));
|
|
236
|
+
satisfiesExpression = satisfiesExpression.withPrefix(ctx.receiveNode(satisfiesExpression.prefix, receiveSpace));
|
|
237
|
+
satisfiesExpression = satisfiesExpression.withMarkers(ctx.receiveNode(satisfiesExpression.markers, ctx.receiveMarkers));
|
|
238
|
+
satisfiesExpression = satisfiesExpression.withExpression(ctx.receiveNode(satisfiesExpression.expression, ctx.receiveTree));
|
|
239
|
+
satisfiesExpression = satisfiesExpression.padding.withSatisfiesType(ctx.receiveNode(satisfiesExpression.padding.satisfiesType, receiveLeftPaddedTree));
|
|
240
|
+
satisfiesExpression = satisfiesExpression.withType(ctx.receiveValue(satisfiesExpression.type, 5));
|
|
241
|
+
return satisfiesExpression;
|
|
242
|
+
}
|
|
206
243
|
visitScopedVariableDeclarations(scopedVariableDeclarations, ctx) {
|
|
207
244
|
scopedVariableDeclarations = scopedVariableDeclarations.withId(ctx.receiveValue(scopedVariableDeclarations.id, 0));
|
|
208
245
|
scopedVariableDeclarations = scopedVariableDeclarations.withPrefix(ctx.receiveNode(scopedVariableDeclarations.prefix, receiveSpace));
|
|
@@ -287,6 +324,16 @@ class Visitor extends __1.JavaScriptVisitor {
|
|
|
287
324
|
typeOperator = typeOperator.padding.withExpression(ctx.receiveNode(typeOperator.padding.expression, receiveLeftPaddedTree));
|
|
288
325
|
return typeOperator;
|
|
289
326
|
}
|
|
327
|
+
visitTypePredicate(typePredicate, ctx) {
|
|
328
|
+
typePredicate = typePredicate.withId(ctx.receiveValue(typePredicate.id, 0));
|
|
329
|
+
typePredicate = typePredicate.withPrefix(ctx.receiveNode(typePredicate.prefix, receiveSpace));
|
|
330
|
+
typePredicate = typePredicate.withMarkers(ctx.receiveNode(typePredicate.markers, ctx.receiveMarkers));
|
|
331
|
+
typePredicate = typePredicate.padding.withAsserts(ctx.receiveNode(typePredicate.padding.asserts, leftPaddedValueReceiver(1)));
|
|
332
|
+
typePredicate = typePredicate.withParameterName(ctx.receiveNode(typePredicate.parameterName, ctx.receiveTree));
|
|
333
|
+
typePredicate = typePredicate.padding.withExpression(ctx.receiveNode(typePredicate.padding.expression, receiveLeftPaddedTree));
|
|
334
|
+
typePredicate = typePredicate.withType(ctx.receiveValue(typePredicate.type, 5));
|
|
335
|
+
return typePredicate;
|
|
336
|
+
}
|
|
290
337
|
visitJsUnary(unary, ctx) {
|
|
291
338
|
unary = unary.withId(ctx.receiveValue(unary.id, 0));
|
|
292
339
|
unary = unary.withPrefix(ctx.receiveNode(unary.prefix, receiveSpace));
|
|
@@ -412,7 +459,8 @@ class Visitor extends __1.JavaScriptVisitor {
|
|
|
412
459
|
functionDeclaration = functionDeclaration.withPrefix(ctx.receiveNode(functionDeclaration.prefix, receiveSpace));
|
|
413
460
|
functionDeclaration = functionDeclaration.withMarkers(ctx.receiveNode(functionDeclaration.markers, ctx.receiveMarkers));
|
|
414
461
|
functionDeclaration = functionDeclaration.withModifiers(ctx.receiveNodes(functionDeclaration.modifiers, ctx.receiveTree));
|
|
415
|
-
functionDeclaration = functionDeclaration.
|
|
462
|
+
functionDeclaration = functionDeclaration.padding.withAsteriskToken(ctx.receiveNode(functionDeclaration.padding.asteriskToken, leftPaddedValueReceiver(1)));
|
|
463
|
+
functionDeclaration = functionDeclaration.padding.withName(ctx.receiveNode(functionDeclaration.padding.name, receiveLeftPaddedTree));
|
|
416
464
|
functionDeclaration = functionDeclaration.withTypeParameters(ctx.receiveNode(functionDeclaration.typeParameters, ctx.receiveTree));
|
|
417
465
|
functionDeclaration = functionDeclaration.padding.withParameters(ctx.receiveNode(functionDeclaration.padding.parameters, receiveContainer));
|
|
418
466
|
functionDeclaration = functionDeclaration.withReturnTypeExpression(ctx.receiveNode(functionDeclaration.returnTypeExpression, ctx.receiveTree));
|
|
@@ -456,6 +504,69 @@ class Visitor extends __1.JavaScriptVisitor {
|
|
|
456
504
|
bindingElement = bindingElement.withVariableType(ctx.receiveValue(bindingElement.variableType, 5));
|
|
457
505
|
return bindingElement;
|
|
458
506
|
}
|
|
507
|
+
visitExportDeclaration(exportDeclaration, ctx) {
|
|
508
|
+
exportDeclaration = exportDeclaration.withId(ctx.receiveValue(exportDeclaration.id, 0));
|
|
509
|
+
exportDeclaration = exportDeclaration.withPrefix(ctx.receiveNode(exportDeclaration.prefix, receiveSpace));
|
|
510
|
+
exportDeclaration = exportDeclaration.withMarkers(ctx.receiveNode(exportDeclaration.markers, ctx.receiveMarkers));
|
|
511
|
+
exportDeclaration = exportDeclaration.withModifiers(ctx.receiveNodes(exportDeclaration.modifiers, ctx.receiveTree));
|
|
512
|
+
exportDeclaration = exportDeclaration.padding.withTypeOnly(ctx.receiveNode(exportDeclaration.padding.typeOnly, leftPaddedValueReceiver(1)));
|
|
513
|
+
exportDeclaration = exportDeclaration.withExportClause(ctx.receiveNode(exportDeclaration.exportClause, ctx.receiveTree));
|
|
514
|
+
exportDeclaration = exportDeclaration.padding.withModuleSpecifier(ctx.receiveNode(exportDeclaration.padding.moduleSpecifier, receiveLeftPaddedTree));
|
|
515
|
+
return exportDeclaration;
|
|
516
|
+
}
|
|
517
|
+
visitExportAssignment(exportAssignment, ctx) {
|
|
518
|
+
exportAssignment = exportAssignment.withId(ctx.receiveValue(exportAssignment.id, 0));
|
|
519
|
+
exportAssignment = exportAssignment.withPrefix(ctx.receiveNode(exportAssignment.prefix, receiveSpace));
|
|
520
|
+
exportAssignment = exportAssignment.withMarkers(ctx.receiveNode(exportAssignment.markers, ctx.receiveMarkers));
|
|
521
|
+
exportAssignment = exportAssignment.withModifiers(ctx.receiveNodes(exportAssignment.modifiers, ctx.receiveTree));
|
|
522
|
+
exportAssignment = exportAssignment.padding.withExportEquals(ctx.receiveNode(exportAssignment.padding.exportEquals, leftPaddedValueReceiver(1)));
|
|
523
|
+
exportAssignment = exportAssignment.withExpression(ctx.receiveNode(exportAssignment.expression, ctx.receiveTree));
|
|
524
|
+
return exportAssignment;
|
|
525
|
+
}
|
|
526
|
+
visitNamedExports(namedExports, ctx) {
|
|
527
|
+
namedExports = namedExports.withId(ctx.receiveValue(namedExports.id, 0));
|
|
528
|
+
namedExports = namedExports.withPrefix(ctx.receiveNode(namedExports.prefix, receiveSpace));
|
|
529
|
+
namedExports = namedExports.withMarkers(ctx.receiveNode(namedExports.markers, ctx.receiveMarkers));
|
|
530
|
+
namedExports = namedExports.padding.withElements(ctx.receiveNode(namedExports.padding.elements, receiveContainer));
|
|
531
|
+
namedExports = namedExports.withType(ctx.receiveValue(namedExports.type, 5));
|
|
532
|
+
return namedExports;
|
|
533
|
+
}
|
|
534
|
+
visitExportSpecifier(exportSpecifier, ctx) {
|
|
535
|
+
exportSpecifier = exportSpecifier.withId(ctx.receiveValue(exportSpecifier.id, 0));
|
|
536
|
+
exportSpecifier = exportSpecifier.withPrefix(ctx.receiveNode(exportSpecifier.prefix, receiveSpace));
|
|
537
|
+
exportSpecifier = exportSpecifier.withMarkers(ctx.receiveNode(exportSpecifier.markers, ctx.receiveMarkers));
|
|
538
|
+
exportSpecifier = exportSpecifier.padding.withTypeOnly(ctx.receiveNode(exportSpecifier.padding.typeOnly, leftPaddedValueReceiver(1)));
|
|
539
|
+
exportSpecifier = exportSpecifier.withSpecifier(ctx.receiveNode(exportSpecifier.specifier, ctx.receiveTree));
|
|
540
|
+
exportSpecifier = exportSpecifier.withType(ctx.receiveValue(exportSpecifier.type, 5));
|
|
541
|
+
return exportSpecifier;
|
|
542
|
+
}
|
|
543
|
+
visitIndexedAccessType(indexedAccessType, ctx) {
|
|
544
|
+
indexedAccessType = indexedAccessType.withId(ctx.receiveValue(indexedAccessType.id, 0));
|
|
545
|
+
indexedAccessType = indexedAccessType.withPrefix(ctx.receiveNode(indexedAccessType.prefix, receiveSpace));
|
|
546
|
+
indexedAccessType = indexedAccessType.withMarkers(ctx.receiveNode(indexedAccessType.markers, ctx.receiveMarkers));
|
|
547
|
+
indexedAccessType = indexedAccessType.withObjectType(ctx.receiveNode(indexedAccessType.objectType, ctx.receiveTree));
|
|
548
|
+
indexedAccessType = indexedAccessType.padding.withIndexType(ctx.receiveNode(indexedAccessType.padding.indexType, receiveRightPaddedTree));
|
|
549
|
+
indexedAccessType = indexedAccessType.withType(ctx.receiveValue(indexedAccessType.type, 5));
|
|
550
|
+
return indexedAccessType;
|
|
551
|
+
}
|
|
552
|
+
visitIndexedAccessTypeIndexType(indexType, ctx) {
|
|
553
|
+
indexType = indexType.withId(ctx.receiveValue(indexType.id, 0));
|
|
554
|
+
indexType = indexType.withPrefix(ctx.receiveNode(indexType.prefix, receiveSpace));
|
|
555
|
+
indexType = indexType.withMarkers(ctx.receiveNode(indexType.markers, ctx.receiveMarkers));
|
|
556
|
+
indexType = indexType.padding.withElement(ctx.receiveNode(indexType.padding.element, receiveRightPaddedTree));
|
|
557
|
+
indexType = indexType.withType(ctx.receiveValue(indexType.type, 5));
|
|
558
|
+
return indexType;
|
|
559
|
+
}
|
|
560
|
+
visitJsAssignmentOperation(jsAssignmentOperation, ctx) {
|
|
561
|
+
jsAssignmentOperation = jsAssignmentOperation.withId(ctx.receiveValue(jsAssignmentOperation.id, 0));
|
|
562
|
+
jsAssignmentOperation = jsAssignmentOperation.withPrefix(ctx.receiveNode(jsAssignmentOperation.prefix, receiveSpace));
|
|
563
|
+
jsAssignmentOperation = jsAssignmentOperation.withMarkers(ctx.receiveNode(jsAssignmentOperation.markers, ctx.receiveMarkers));
|
|
564
|
+
jsAssignmentOperation = jsAssignmentOperation.withVariable(ctx.receiveNode(jsAssignmentOperation.variable, ctx.receiveTree));
|
|
565
|
+
jsAssignmentOperation = jsAssignmentOperation.padding.withOperator(ctx.receiveNode(jsAssignmentOperation.padding.operator, leftPaddedValueReceiver(3)));
|
|
566
|
+
jsAssignmentOperation = jsAssignmentOperation.withAssignment(ctx.receiveNode(jsAssignmentOperation.assignment, ctx.receiveTree));
|
|
567
|
+
jsAssignmentOperation = jsAssignmentOperation.withType(ctx.receiveValue(jsAssignmentOperation.type, 5));
|
|
568
|
+
return jsAssignmentOperation;
|
|
569
|
+
}
|
|
459
570
|
visitAnnotatedType(annotatedType, ctx) {
|
|
460
571
|
annotatedType = annotatedType.withId(ctx.receiveValue(annotatedType.id, 0));
|
|
461
572
|
annotatedType = annotatedType.withPrefix(ctx.receiveNode(annotatedType.prefix, receiveSpace));
|
|
@@ -1088,7 +1199,13 @@ class Factory {
|
|
|
1088
1199
|
return new tree_1.ExpressionWithTypeArguments(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveContainer), ctx.receiveValue(null, 5));
|
|
1089
1200
|
}
|
|
1090
1201
|
if (type === "org.openrewrite.javascript.tree.JS$FunctionType") {
|
|
1091
|
-
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));
|
|
1202
|
+
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, ctx.receiveTree), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
|
|
1203
|
+
}
|
|
1204
|
+
if (type === "org.openrewrite.javascript.tree.JS$InferType") {
|
|
1205
|
+
return new tree_1.InferType(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveLeftPaddedTree), ctx.receiveValue(null, 5));
|
|
1206
|
+
}
|
|
1207
|
+
if (type === "org.openrewrite.javascript.tree.JS$ImportType") {
|
|
1208
|
+
return new tree_1.ImportType(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, rightPaddedValueReceiver(1)), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveLeftPaddedTree), ctx.receiveNode(null, receiveContainer), ctx.receiveValue(null, 5));
|
|
1092
1209
|
}
|
|
1093
1210
|
if (type === "org.openrewrite.javascript.tree.JS$JsImport") {
|
|
1094
1211
|
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));
|
|
@@ -1099,12 +1216,18 @@ class Factory {
|
|
|
1099
1216
|
if (type === "org.openrewrite.javascript.tree.JS$JsBinary") {
|
|
1100
1217
|
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));
|
|
1101
1218
|
}
|
|
1219
|
+
if (type === "org.openrewrite.javascript.tree.JS$LiteralType") {
|
|
1220
|
+
return new tree_1.LiteralType(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
|
|
1221
|
+
}
|
|
1102
1222
|
if (type === "org.openrewrite.javascript.tree.JS$ObjectBindingDeclarations") {
|
|
1103
1223
|
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));
|
|
1104
1224
|
}
|
|
1105
1225
|
if (type === "org.openrewrite.javascript.tree.JS$PropertyAssignment") {
|
|
1106
1226
|
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));
|
|
1107
1227
|
}
|
|
1228
|
+
if (type === "org.openrewrite.javascript.tree.JS$SatisfiesExpression") {
|
|
1229
|
+
return new tree_1.SatisfiesExpression(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveLeftPaddedTree), ctx.receiveValue(null, 5));
|
|
1230
|
+
}
|
|
1108
1231
|
if (type === "org.openrewrite.javascript.tree.JS$ScopedVariableDeclarations") {
|
|
1109
1232
|
return new tree_1.ScopedVariableDeclarations(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, leftPaddedValueReceiver(3)), ctx.receiveNodes(null, receiveRightPaddedTree));
|
|
1110
1233
|
}
|
|
@@ -1135,6 +1258,9 @@ class Factory {
|
|
|
1135
1258
|
if (type === "org.openrewrite.javascript.tree.JS$TypeOperator") {
|
|
1136
1259
|
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));
|
|
1137
1260
|
}
|
|
1261
|
+
if (type === "org.openrewrite.javascript.tree.JS$TypePredicate") {
|
|
1262
|
+
return new tree_1.TypePredicate(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, receiveLeftPaddedTree), ctx.receiveValue(null, 5));
|
|
1263
|
+
}
|
|
1138
1264
|
if (type === "org.openrewrite.javascript.tree.JS$Unary") {
|
|
1139
1265
|
return new tree_1.Unary(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, leftPaddedValueReceiver(3)), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
|
|
1140
1266
|
}
|
|
@@ -1175,7 +1301,7 @@ class Factory {
|
|
|
1175
1301
|
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));
|
|
1176
1302
|
}
|
|
1177
1303
|
if (type === "org.openrewrite.javascript.tree.JS$FunctionDeclaration") {
|
|
1178
|
-
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.
|
|
1304
|
+
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, leftPaddedValueReceiver(1)), ctx.receiveNode(null, receiveLeftPaddedTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
|
|
1179
1305
|
}
|
|
1180
1306
|
if (type === "org.openrewrite.javascript.tree.JS$TypeLiteral") {
|
|
1181
1307
|
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));
|
|
@@ -1189,6 +1315,27 @@ class Factory {
|
|
|
1189
1315
|
if (type === "org.openrewrite.javascript.tree.JS$BindingElement") {
|
|
1190
1316
|
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));
|
|
1191
1317
|
}
|
|
1318
|
+
if (type === "org.openrewrite.javascript.tree.JS$ExportDeclaration") {
|
|
1319
|
+
return new tree_1.ExportDeclaration(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, leftPaddedValueReceiver(1)), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveLeftPaddedTree));
|
|
1320
|
+
}
|
|
1321
|
+
if (type === "org.openrewrite.javascript.tree.JS$ExportAssignment") {
|
|
1322
|
+
return new tree_1.ExportAssignment(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, leftPaddedValueReceiver(1)), ctx.receiveNode(null, ctx.receiveTree));
|
|
1323
|
+
}
|
|
1324
|
+
if (type === "org.openrewrite.javascript.tree.JS$NamedExports") {
|
|
1325
|
+
return new tree_1.NamedExports(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveContainer), ctx.receiveValue(null, 5));
|
|
1326
|
+
}
|
|
1327
|
+
if (type === "org.openrewrite.javascript.tree.JS$ExportSpecifier") {
|
|
1328
|
+
return new tree_1.ExportSpecifier(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));
|
|
1329
|
+
}
|
|
1330
|
+
if (type === "org.openrewrite.javascript.tree.JS$IndexedAccessType") {
|
|
1331
|
+
return new tree_1.IndexedAccessType(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveValue(null, 5));
|
|
1332
|
+
}
|
|
1333
|
+
if (type === "org.openrewrite.javascript.tree.JS$IndexedAccessType$IndexType") {
|
|
1334
|
+
return new tree_1.IndexedAccessType.IndexType(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveValue(null, 5));
|
|
1335
|
+
}
|
|
1336
|
+
if (type === "org.openrewrite.javascript.tree.JS$JsAssignmentOperation") {
|
|
1337
|
+
return new tree_1.JsAssignmentOperation(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));
|
|
1338
|
+
}
|
|
1192
1339
|
if (type === "org.openrewrite.java.tree.J$AnnotatedType") {
|
|
1193
1340
|
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));
|
|
1194
1341
|
}
|