@openrewrite/rewrite 0.22.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.
@@ -128,6 +128,7 @@ class Visitor extends __1.JavaScriptVisitor {
128
128
  functionType = functionType.withId(ctx.receiveValue(functionType.id, 0));
129
129
  functionType = functionType.withPrefix(ctx.receiveNode(functionType.prefix, receiveSpace));
130
130
  functionType = functionType.withMarkers(ctx.receiveNode(functionType.markers, ctx.receiveMarkers));
131
+ functionType = functionType.padding.withConstructorType(ctx.receiveNode(functionType.padding.constructorType, rightPaddedValueReceiver(1)));
131
132
  functionType = functionType.padding.withParameters(ctx.receiveNode(functionType.padding.parameters, receiveContainer));
132
133
  functionType = functionType.withArrow(ctx.receiveNode(functionType.arrow, receiveSpace));
133
134
  functionType = functionType.withReturnType(ctx.receiveNode(functionType.returnType, ctx.receiveTree));
@@ -176,18 +177,6 @@ class Visitor extends __1.JavaScriptVisitor {
176
177
  objectBindingDeclarations = objectBindingDeclarations.padding.withInitializer(ctx.receiveNode(objectBindingDeclarations.padding.initializer, receiveLeftPaddedTree));
177
178
  return objectBindingDeclarations;
178
179
  }
179
- visitBinding(binding, ctx) {
180
- binding = binding.withId(ctx.receiveValue(binding.id, 0));
181
- binding = binding.withPrefix(ctx.receiveNode(binding.prefix, receiveSpace));
182
- binding = binding.withMarkers(ctx.receiveNode(binding.markers, ctx.receiveMarkers));
183
- binding = binding.padding.withPropertyName(ctx.receiveNode(binding.padding.propertyName, receiveRightPaddedTree));
184
- binding = binding.withName(ctx.receiveNode(binding.name, ctx.receiveTree));
185
- binding = binding.withDimensionsAfterName(ctx.receiveNodes(binding.dimensionsAfterName, leftPaddedNodeReceiver(java_1.Space)));
186
- binding = binding.withAfterVararg(ctx.receiveNode(binding.afterVararg, receiveSpace));
187
- binding = binding.padding.withInitializer(ctx.receiveNode(binding.padding.initializer, receiveLeftPaddedTree));
188
- binding = binding.withVariableType(ctx.receiveValue(binding.variableType, 5));
189
- return binding;
190
- }
191
180
  visitPropertyAssignment(propertyAssignment, ctx) {
192
181
  propertyAssignment = propertyAssignment.withId(ctx.receiveValue(propertyAssignment.id, 0));
193
182
  propertyAssignment = propertyAssignment.withPrefix(ctx.receiveNode(propertyAssignment.prefix, receiveSpace));
@@ -241,7 +230,6 @@ class Visitor extends __1.JavaScriptVisitor {
241
230
  typeDeclaration = typeDeclaration.withId(ctx.receiveValue(typeDeclaration.id, 0));
242
231
  typeDeclaration = typeDeclaration.withPrefix(ctx.receiveNode(typeDeclaration.prefix, receiveSpace));
243
232
  typeDeclaration = typeDeclaration.withMarkers(ctx.receiveNode(typeDeclaration.markers, ctx.receiveMarkers));
244
- typeDeclaration = typeDeclaration.withLeadingAnnotations(ctx.receiveNodes(typeDeclaration.leadingAnnotations, ctx.receiveTree));
245
233
  typeDeclaration = typeDeclaration.withModifiers(ctx.receiveNodes(typeDeclaration.modifiers, ctx.receiveTree));
246
234
  typeDeclaration = typeDeclaration.withName(ctx.receiveNode(typeDeclaration.name, ctx.receiveTree));
247
235
  typeDeclaration = typeDeclaration.withTypeParameters(ctx.receiveNode(typeDeclaration.typeParameters, ctx.receiveTree));
@@ -257,6 +245,14 @@ class Visitor extends __1.JavaScriptVisitor {
257
245
  typeOf = typeOf.withType(ctx.receiveValue(typeOf.type, 5));
258
246
  return typeOf;
259
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
+ }
260
256
  visitTypeOperator(typeOperator, ctx) {
261
257
  typeOperator = typeOperator.withId(ctx.receiveValue(typeOperator.id, 0));
262
258
  typeOperator = typeOperator.withPrefix(ctx.receiveNode(typeOperator.prefix, receiveSpace));
@@ -282,6 +278,14 @@ class Visitor extends __1.JavaScriptVisitor {
282
278
  union = union.withType(ctx.receiveValue(union.type, 5));
283
279
  return union;
284
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
+ }
285
289
  visitVoid(_void, ctx) {
286
290
  _void = _void.withId(ctx.receiveValue(_void.id, 0));
287
291
  _void = _void.withPrefix(ctx.receiveNode(_void.prefix, receiveSpace));
@@ -353,6 +357,31 @@ class Visitor extends __1.JavaScriptVisitor {
353
357
  jSMethodInvocation = jSMethodInvocation.withMethodType(ctx.receiveValue(jSMethodInvocation.methodType, 5));
354
358
  return jSMethodInvocation;
355
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
+ }
356
385
  visitNamespaceDeclaration(namespaceDeclaration, ctx) {
357
386
  namespaceDeclaration = namespaceDeclaration.withId(ctx.receiveValue(namespaceDeclaration.id, 0));
358
387
  namespaceDeclaration = namespaceDeclaration.withPrefix(ctx.receiveNode(namespaceDeclaration.prefix, receiveSpace));
@@ -376,6 +405,42 @@ class Visitor extends __1.JavaScriptVisitor {
376
405
  functionDeclaration = functionDeclaration.withType(ctx.receiveValue(functionDeclaration.type, 5));
377
406
  return functionDeclaration;
378
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
+ }
379
444
  visitAnnotatedType(annotatedType, ctx) {
380
445
  annotatedType = annotatedType.withId(ctx.receiveValue(annotatedType.id, 0));
381
446
  annotatedType = annotatedType.withPrefix(ctx.receiveNode(annotatedType.prefix, receiveSpace));
@@ -1002,7 +1067,7 @@ class Factory {
1002
1067
  return new tree_1.ExpressionStatement(ctx.receiveValue(null, 0), ctx.receiveNode(null, ctx.receiveTree));
1003
1068
  }
1004
1069
  if (type === "org.openrewrite.javascript.tree.JS$FunctionType") {
1005
- 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));
1006
1071
  }
1007
1072
  if (type === "org.openrewrite.javascript.tree.JS$JsImport") {
1008
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));
@@ -1016,9 +1081,6 @@ class Factory {
1016
1081
  if (type === "org.openrewrite.javascript.tree.JS$ObjectBindingDeclarations") {
1017
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));
1018
1083
  }
1019
- if (type === "org.openrewrite.javascript.tree.JS$ObjectBindingDeclarations$Binding") {
1020
- 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));
1021
- }
1022
1084
  if (type === "org.openrewrite.javascript.tree.JS$PropertyAssignment") {
1023
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));
1024
1086
  }
@@ -1038,11 +1100,14 @@ class Factory {
1038
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));
1039
1101
  }
1040
1102
  if (type === "org.openrewrite.javascript.tree.JS$TypeDeclaration") {
1041
- return new tree_1.TypeDeclaration(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, receiveLeftPaddedTree), ctx.receiveValue(null, 5));
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));
1042
1104
  }
1043
1105
  if (type === "org.openrewrite.javascript.tree.JS$TypeOf") {
1044
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));
1045
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
+ }
1046
1111
  if (type === "org.openrewrite.javascript.tree.JS$TypeOperator") {
1047
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));
1048
1113
  }
@@ -1052,6 +1117,9 @@ class Factory {
1052
1117
  if (type === "org.openrewrite.javascript.tree.JS$Union") {
1053
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));
1054
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
+ }
1055
1123
  if (type === "org.openrewrite.javascript.tree.JS$Void") {
1056
1124
  return new tree_1.Void(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree));
1057
1125
  }
@@ -1073,12 +1141,33 @@ class Factory {
1073
1141
  if (type === "org.openrewrite.javascript.tree.JS$JSMethodInvocation") {
1074
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));
1075
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
+ }
1076
1153
  if (type === "org.openrewrite.javascript.tree.JS$NamespaceDeclaration") {
1077
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));
1078
1155
  }
1079
1156
  if (type === "org.openrewrite.javascript.tree.JS$FunctionDeclaration") {
1080
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));
1081
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
+ }
1082
1171
  if (type === "org.openrewrite.java.tree.J$AnnotatedType") {
1083
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));
1084
1173
  }