@openrewrite/rewrite 0.22.0 → 0.22.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -91,6 +91,15 @@ class Visitor extends __1.JavaScriptVisitor {
91
91
  await = await.withType(ctx.receiveValue(await.type, 5));
92
92
  return await;
93
93
  }
94
+ visitConditionalType(conditionalType, ctx) {
95
+ conditionalType = conditionalType.withId(ctx.receiveValue(conditionalType.id, 0));
96
+ conditionalType = conditionalType.withPrefix(ctx.receiveNode(conditionalType.prefix, receiveSpace));
97
+ conditionalType = conditionalType.withMarkers(ctx.receiveNode(conditionalType.markers, ctx.receiveMarkers));
98
+ conditionalType = conditionalType.withCheckType(ctx.receiveNode(conditionalType.checkType, ctx.receiveTree));
99
+ conditionalType = conditionalType.padding.withCondition(ctx.receiveNode(conditionalType.padding.condition, receiveContainer));
100
+ conditionalType = conditionalType.withType(ctx.receiveValue(conditionalType.type, 5));
101
+ return conditionalType;
102
+ }
94
103
  visitDefaultType(defaultType, ctx) {
95
104
  defaultType = defaultType.withId(ctx.receiveValue(defaultType.id, 0));
96
105
  defaultType = defaultType.withPrefix(ctx.receiveNode(defaultType.prefix, receiveSpace));
@@ -124,10 +133,20 @@ class Visitor extends __1.JavaScriptVisitor {
124
133
  expressionStatement = expressionStatement.withExpression(ctx.receiveNode(expressionStatement.expression, ctx.receiveTree));
125
134
  return expressionStatement;
126
135
  }
136
+ visitExpressionWithTypeArguments(expressionWithTypeArguments, ctx) {
137
+ expressionWithTypeArguments = expressionWithTypeArguments.withId(ctx.receiveValue(expressionWithTypeArguments.id, 0));
138
+ expressionWithTypeArguments = expressionWithTypeArguments.withPrefix(ctx.receiveNode(expressionWithTypeArguments.prefix, receiveSpace));
139
+ expressionWithTypeArguments = expressionWithTypeArguments.withMarkers(ctx.receiveNode(expressionWithTypeArguments.markers, ctx.receiveMarkers));
140
+ expressionWithTypeArguments = expressionWithTypeArguments.withClazz(ctx.receiveNode(expressionWithTypeArguments.clazz, ctx.receiveTree));
141
+ expressionWithTypeArguments = expressionWithTypeArguments.padding.withTypeArguments(ctx.receiveNode(expressionWithTypeArguments.padding.typeArguments, receiveContainer));
142
+ expressionWithTypeArguments = expressionWithTypeArguments.withType(ctx.receiveValue(expressionWithTypeArguments.type, 5));
143
+ return expressionWithTypeArguments;
144
+ }
127
145
  visitFunctionType(functionType, ctx) {
128
146
  functionType = functionType.withId(ctx.receiveValue(functionType.id, 0));
129
147
  functionType = functionType.withPrefix(ctx.receiveNode(functionType.prefix, receiveSpace));
130
148
  functionType = functionType.withMarkers(ctx.receiveNode(functionType.markers, ctx.receiveMarkers));
149
+ functionType = functionType.padding.withConstructorType(ctx.receiveNode(functionType.padding.constructorType, rightPaddedValueReceiver(1)));
131
150
  functionType = functionType.padding.withParameters(ctx.receiveNode(functionType.padding.parameters, receiveContainer));
132
151
  functionType = functionType.withArrow(ctx.receiveNode(functionType.arrow, receiveSpace));
133
152
  functionType = functionType.withReturnType(ctx.receiveNode(functionType.returnType, ctx.receiveTree));
@@ -176,18 +195,6 @@ class Visitor extends __1.JavaScriptVisitor {
176
195
  objectBindingDeclarations = objectBindingDeclarations.padding.withInitializer(ctx.receiveNode(objectBindingDeclarations.padding.initializer, receiveLeftPaddedTree));
177
196
  return objectBindingDeclarations;
178
197
  }
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
198
  visitPropertyAssignment(propertyAssignment, ctx) {
192
199
  propertyAssignment = propertyAssignment.withId(ctx.receiveValue(propertyAssignment.id, 0));
193
200
  propertyAssignment = propertyAssignment.withPrefix(ctx.receiveNode(propertyAssignment.prefix, receiveSpace));
@@ -210,24 +217,32 @@ class Visitor extends __1.JavaScriptVisitor {
210
217
  statementExpression = statementExpression.withStatement(ctx.receiveNode(statementExpression.statement, ctx.receiveTree));
211
218
  return statementExpression;
212
219
  }
220
+ visitTaggedTemplateExpression(taggedTemplateExpression, ctx) {
221
+ taggedTemplateExpression = taggedTemplateExpression.withId(ctx.receiveValue(taggedTemplateExpression.id, 0));
222
+ taggedTemplateExpression = taggedTemplateExpression.withPrefix(ctx.receiveNode(taggedTemplateExpression.prefix, receiveSpace));
223
+ taggedTemplateExpression = taggedTemplateExpression.withMarkers(ctx.receiveNode(taggedTemplateExpression.markers, ctx.receiveMarkers));
224
+ taggedTemplateExpression = taggedTemplateExpression.padding.withTag(ctx.receiveNode(taggedTemplateExpression.padding.tag, receiveRightPaddedTree));
225
+ taggedTemplateExpression = taggedTemplateExpression.padding.withTypeArguments(ctx.receiveNode(taggedTemplateExpression.padding.typeArguments, receiveContainer));
226
+ taggedTemplateExpression = taggedTemplateExpression.withTemplateExpression(ctx.receiveNode(taggedTemplateExpression.templateExpression, ctx.receiveTree));
227
+ taggedTemplateExpression = taggedTemplateExpression.withType(ctx.receiveValue(taggedTemplateExpression.type, 5));
228
+ return taggedTemplateExpression;
229
+ }
213
230
  visitTemplateExpression(templateExpression, ctx) {
214
231
  templateExpression = templateExpression.withId(ctx.receiveValue(templateExpression.id, 0));
215
232
  templateExpression = templateExpression.withPrefix(ctx.receiveNode(templateExpression.prefix, receiveSpace));
216
233
  templateExpression = templateExpression.withMarkers(ctx.receiveNode(templateExpression.markers, ctx.receiveMarkers));
217
- templateExpression = templateExpression.withDelimiter(ctx.receiveValue(templateExpression.delimiter, 1));
218
- templateExpression = templateExpression.padding.withTag(ctx.receiveNode(templateExpression.padding.tag, receiveRightPaddedTree));
219
- templateExpression = templateExpression.withStrings(ctx.receiveNodes(templateExpression.strings, ctx.receiveTree));
234
+ templateExpression = templateExpression.withHead(ctx.receiveNode(templateExpression.head, ctx.receiveTree));
235
+ templateExpression = templateExpression.padding.withTemplateSpans(ctx.receiveNodes(templateExpression.padding.templateSpans, receiveRightPaddedTree));
220
236
  templateExpression = templateExpression.withType(ctx.receiveValue(templateExpression.type, 5));
221
237
  return templateExpression;
222
238
  }
223
- visitTemplateExpressionValue(value, ctx) {
224
- value = value.withId(ctx.receiveValue(value.id, 0));
225
- value = value.withPrefix(ctx.receiveNode(value.prefix, receiveSpace));
226
- value = value.withMarkers(ctx.receiveNode(value.markers, ctx.receiveMarkers));
227
- value = value.withTree(ctx.receiveNode(value.tree, ctx.receiveTree));
228
- value = value.withAfter(ctx.receiveNode(value.after, receiveSpace));
229
- value = value.withEnclosedInBraces(ctx.receiveValue(value.enclosedInBraces, 1));
230
- return value;
239
+ visitTemplateExpressionTemplateSpan(templateSpan, ctx) {
240
+ templateSpan = templateSpan.withId(ctx.receiveValue(templateSpan.id, 0));
241
+ templateSpan = templateSpan.withPrefix(ctx.receiveNode(templateSpan.prefix, receiveSpace));
242
+ templateSpan = templateSpan.withMarkers(ctx.receiveNode(templateSpan.markers, ctx.receiveMarkers));
243
+ templateSpan = templateSpan.withExpression(ctx.receiveNode(templateSpan.expression, ctx.receiveTree));
244
+ templateSpan = templateSpan.withTail(ctx.receiveNode(templateSpan.tail, ctx.receiveTree));
245
+ return templateSpan;
231
246
  }
232
247
  visitTuple(tuple, ctx) {
233
248
  tuple = tuple.withId(ctx.receiveValue(tuple.id, 0));
@@ -241,9 +256,8 @@ class Visitor extends __1.JavaScriptVisitor {
241
256
  typeDeclaration = typeDeclaration.withId(ctx.receiveValue(typeDeclaration.id, 0));
242
257
  typeDeclaration = typeDeclaration.withPrefix(ctx.receiveNode(typeDeclaration.prefix, receiveSpace));
243
258
  typeDeclaration = typeDeclaration.withMarkers(ctx.receiveNode(typeDeclaration.markers, ctx.receiveMarkers));
244
- typeDeclaration = typeDeclaration.withLeadingAnnotations(ctx.receiveNodes(typeDeclaration.leadingAnnotations, ctx.receiveTree));
245
259
  typeDeclaration = typeDeclaration.withModifiers(ctx.receiveNodes(typeDeclaration.modifiers, ctx.receiveTree));
246
- typeDeclaration = typeDeclaration.withName(ctx.receiveNode(typeDeclaration.name, ctx.receiveTree));
260
+ typeDeclaration = typeDeclaration.padding.withName(ctx.receiveNode(typeDeclaration.padding.name, receiveLeftPaddedTree));
247
261
  typeDeclaration = typeDeclaration.withTypeParameters(ctx.receiveNode(typeDeclaration.typeParameters, ctx.receiveTree));
248
262
  typeDeclaration = typeDeclaration.padding.withInitializer(ctx.receiveNode(typeDeclaration.padding.initializer, receiveLeftPaddedTree));
249
263
  typeDeclaration = typeDeclaration.withType(ctx.receiveValue(typeDeclaration.type, 5));
@@ -257,6 +271,14 @@ class Visitor extends __1.JavaScriptVisitor {
257
271
  typeOf = typeOf.withType(ctx.receiveValue(typeOf.type, 5));
258
272
  return typeOf;
259
273
  }
274
+ visitTypeQuery(typeQuery, ctx) {
275
+ typeQuery = typeQuery.withId(ctx.receiveValue(typeQuery.id, 0));
276
+ typeQuery = typeQuery.withPrefix(ctx.receiveNode(typeQuery.prefix, receiveSpace));
277
+ typeQuery = typeQuery.withMarkers(ctx.receiveNode(typeQuery.markers, ctx.receiveMarkers));
278
+ typeQuery = typeQuery.withTypeExpression(ctx.receiveNode(typeQuery.typeExpression, ctx.receiveTree));
279
+ typeQuery = typeQuery.withType(ctx.receiveValue(typeQuery.type, 5));
280
+ return typeQuery;
281
+ }
260
282
  visitTypeOperator(typeOperator, ctx) {
261
283
  typeOperator = typeOperator.withId(ctx.receiveValue(typeOperator.id, 0));
262
284
  typeOperator = typeOperator.withPrefix(ctx.receiveNode(typeOperator.prefix, receiveSpace));
@@ -282,6 +304,14 @@ class Visitor extends __1.JavaScriptVisitor {
282
304
  union = union.withType(ctx.receiveValue(union.type, 5));
283
305
  return union;
284
306
  }
307
+ visitIntersection(intersection, ctx) {
308
+ intersection = intersection.withId(ctx.receiveValue(intersection.id, 0));
309
+ intersection = intersection.withPrefix(ctx.receiveNode(intersection.prefix, receiveSpace));
310
+ intersection = intersection.withMarkers(ctx.receiveNode(intersection.markers, ctx.receiveMarkers));
311
+ intersection = intersection.padding.withTypes(ctx.receiveNodes(intersection.padding.types, receiveRightPaddedTree));
312
+ intersection = intersection.withType(ctx.receiveValue(intersection.type, 5));
313
+ return intersection;
314
+ }
285
315
  visitVoid(_void, ctx) {
286
316
  _void = _void.withId(ctx.receiveValue(_void.id, 0));
287
317
  _void = _void.withPrefix(ctx.receiveNode(_void.prefix, receiveSpace));
@@ -342,16 +372,30 @@ class Visitor extends __1.JavaScriptVisitor {
342
372
  jSMethodDeclaration = jSMethodDeclaration.withMethodType(ctx.receiveValue(jSMethodDeclaration.methodType, 5));
343
373
  return jSMethodDeclaration;
344
374
  }
345
- visitJSMethodInvocation(jSMethodInvocation, ctx) {
346
- jSMethodInvocation = jSMethodInvocation.withId(ctx.receiveValue(jSMethodInvocation.id, 0));
347
- jSMethodInvocation = jSMethodInvocation.withPrefix(ctx.receiveNode(jSMethodInvocation.prefix, receiveSpace));
348
- jSMethodInvocation = jSMethodInvocation.withMarkers(ctx.receiveNode(jSMethodInvocation.markers, ctx.receiveMarkers));
349
- jSMethodInvocation = jSMethodInvocation.padding.withSelect(ctx.receiveNode(jSMethodInvocation.padding.select, receiveRightPaddedTree));
350
- jSMethodInvocation = jSMethodInvocation.padding.withTypeParameters(ctx.receiveNode(jSMethodInvocation.padding.typeParameters, receiveContainer));
351
- jSMethodInvocation = jSMethodInvocation.withName(ctx.receiveNode(jSMethodInvocation.name, ctx.receiveTree));
352
- jSMethodInvocation = jSMethodInvocation.padding.withArguments(ctx.receiveNode(jSMethodInvocation.padding.arguments, receiveContainer));
353
- jSMethodInvocation = jSMethodInvocation.withMethodType(ctx.receiveValue(jSMethodInvocation.methodType, 5));
354
- return jSMethodInvocation;
375
+ visitJSForOfLoop(jSForOfLoop, ctx) {
376
+ jSForOfLoop = jSForOfLoop.withId(ctx.receiveValue(jSForOfLoop.id, 0));
377
+ jSForOfLoop = jSForOfLoop.withPrefix(ctx.receiveNode(jSForOfLoop.prefix, receiveSpace));
378
+ jSForOfLoop = jSForOfLoop.withMarkers(ctx.receiveNode(jSForOfLoop.markers, ctx.receiveMarkers));
379
+ jSForOfLoop = jSForOfLoop.padding.withAwait(ctx.receiveNode(jSForOfLoop.padding.await, leftPaddedValueReceiver(1)));
380
+ jSForOfLoop = jSForOfLoop.withControl(ctx.receiveNode(jSForOfLoop.control, ctx.receiveTree));
381
+ jSForOfLoop = jSForOfLoop.padding.withBody(ctx.receiveNode(jSForOfLoop.padding.body, receiveRightPaddedTree));
382
+ return jSForOfLoop;
383
+ }
384
+ visitJSForInLoop(jSForInLoop, ctx) {
385
+ jSForInLoop = jSForInLoop.withId(ctx.receiveValue(jSForInLoop.id, 0));
386
+ jSForInLoop = jSForInLoop.withPrefix(ctx.receiveNode(jSForInLoop.prefix, receiveSpace));
387
+ jSForInLoop = jSForInLoop.withMarkers(ctx.receiveNode(jSForInLoop.markers, ctx.receiveMarkers));
388
+ jSForInLoop = jSForInLoop.withControl(ctx.receiveNode(jSForInLoop.control, ctx.receiveTree));
389
+ jSForInLoop = jSForInLoop.padding.withBody(ctx.receiveNode(jSForInLoop.padding.body, receiveRightPaddedTree));
390
+ return jSForInLoop;
391
+ }
392
+ visitJSForInOfLoopControl(jSForInOfLoopControl, ctx) {
393
+ jSForInOfLoopControl = jSForInOfLoopControl.withId(ctx.receiveValue(jSForInOfLoopControl.id, 0));
394
+ jSForInOfLoopControl = jSForInOfLoopControl.withPrefix(ctx.receiveNode(jSForInOfLoopControl.prefix, receiveSpace));
395
+ jSForInOfLoopControl = jSForInOfLoopControl.withMarkers(ctx.receiveNode(jSForInOfLoopControl.markers, ctx.receiveMarkers));
396
+ jSForInOfLoopControl = jSForInOfLoopControl.padding.withVariable(ctx.receiveNode(jSForInOfLoopControl.padding.variable, receiveRightPaddedTree));
397
+ jSForInOfLoopControl = jSForInOfLoopControl.padding.withIterable(ctx.receiveNode(jSForInOfLoopControl.padding.iterable, receiveRightPaddedTree));
398
+ return jSForInOfLoopControl;
355
399
  }
356
400
  visitNamespaceDeclaration(namespaceDeclaration, ctx) {
357
401
  namespaceDeclaration = namespaceDeclaration.withId(ctx.receiveValue(namespaceDeclaration.id, 0));
@@ -376,6 +420,42 @@ class Visitor extends __1.JavaScriptVisitor {
376
420
  functionDeclaration = functionDeclaration.withType(ctx.receiveValue(functionDeclaration.type, 5));
377
421
  return functionDeclaration;
378
422
  }
423
+ visitTypeLiteral(typeLiteral, ctx) {
424
+ typeLiteral = typeLiteral.withId(ctx.receiveValue(typeLiteral.id, 0));
425
+ typeLiteral = typeLiteral.withPrefix(ctx.receiveNode(typeLiteral.prefix, receiveSpace));
426
+ typeLiteral = typeLiteral.withMarkers(ctx.receiveNode(typeLiteral.markers, ctx.receiveMarkers));
427
+ typeLiteral = typeLiteral.withMembers(ctx.receiveNode(typeLiteral.members, ctx.receiveTree));
428
+ typeLiteral = typeLiteral.withType(ctx.receiveValue(typeLiteral.type, 5));
429
+ return typeLiteral;
430
+ }
431
+ visitIndexSignatureDeclaration(indexSignatureDeclaration, ctx) {
432
+ indexSignatureDeclaration = indexSignatureDeclaration.withId(ctx.receiveValue(indexSignatureDeclaration.id, 0));
433
+ indexSignatureDeclaration = indexSignatureDeclaration.withPrefix(ctx.receiveNode(indexSignatureDeclaration.prefix, receiveSpace));
434
+ indexSignatureDeclaration = indexSignatureDeclaration.withMarkers(ctx.receiveNode(indexSignatureDeclaration.markers, ctx.receiveMarkers));
435
+ indexSignatureDeclaration = indexSignatureDeclaration.withModifiers(ctx.receiveNodes(indexSignatureDeclaration.modifiers, ctx.receiveTree));
436
+ indexSignatureDeclaration = indexSignatureDeclaration.padding.withParameters(ctx.receiveNode(indexSignatureDeclaration.padding.parameters, receiveContainer));
437
+ indexSignatureDeclaration = indexSignatureDeclaration.padding.withTypeExpression(ctx.receiveNode(indexSignatureDeclaration.padding.typeExpression, receiveLeftPaddedTree));
438
+ indexSignatureDeclaration = indexSignatureDeclaration.withType(ctx.receiveValue(indexSignatureDeclaration.type, 5));
439
+ return indexSignatureDeclaration;
440
+ }
441
+ visitArrayBindingPattern(arrayBindingPattern, ctx) {
442
+ arrayBindingPattern = arrayBindingPattern.withId(ctx.receiveValue(arrayBindingPattern.id, 0));
443
+ arrayBindingPattern = arrayBindingPattern.withPrefix(ctx.receiveNode(arrayBindingPattern.prefix, receiveSpace));
444
+ arrayBindingPattern = arrayBindingPattern.withMarkers(ctx.receiveNode(arrayBindingPattern.markers, ctx.receiveMarkers));
445
+ arrayBindingPattern = arrayBindingPattern.padding.withElements(ctx.receiveNode(arrayBindingPattern.padding.elements, receiveContainer));
446
+ arrayBindingPattern = arrayBindingPattern.withType(ctx.receiveValue(arrayBindingPattern.type, 5));
447
+ return arrayBindingPattern;
448
+ }
449
+ visitBindingElement(bindingElement, ctx) {
450
+ bindingElement = bindingElement.withId(ctx.receiveValue(bindingElement.id, 0));
451
+ bindingElement = bindingElement.withPrefix(ctx.receiveNode(bindingElement.prefix, receiveSpace));
452
+ bindingElement = bindingElement.withMarkers(ctx.receiveNode(bindingElement.markers, ctx.receiveMarkers));
453
+ bindingElement = bindingElement.padding.withPropertyName(ctx.receiveNode(bindingElement.padding.propertyName, receiveRightPaddedTree));
454
+ bindingElement = bindingElement.withName(ctx.receiveNode(bindingElement.name, ctx.receiveTree));
455
+ bindingElement = bindingElement.padding.withInitializer(ctx.receiveNode(bindingElement.padding.initializer, receiveLeftPaddedTree));
456
+ bindingElement = bindingElement.withVariableType(ctx.receiveValue(bindingElement.variableType, 5));
457
+ return bindingElement;
458
+ }
379
459
  visitAnnotatedType(annotatedType, ctx) {
380
460
  annotatedType = annotatedType.withId(ctx.receiveValue(annotatedType.id, 0));
381
461
  annotatedType = annotatedType.withPrefix(ctx.receiveNode(annotatedType.prefix, receiveSpace));
@@ -989,6 +1069,9 @@ class Factory {
989
1069
  if (type === "org.openrewrite.javascript.tree.JS$Await") {
990
1070
  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));
991
1071
  }
1072
+ if (type === "org.openrewrite.javascript.tree.JS$ConditionalType") {
1073
+ return new tree_1.ConditionalType(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));
1074
+ }
992
1075
  if (type === "org.openrewrite.javascript.tree.JS$DefaultType") {
993
1076
  return new tree_1.DefaultType(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
994
1077
  }
@@ -1001,8 +1084,11 @@ class Factory {
1001
1084
  if (type === "org.openrewrite.javascript.tree.JS$ExpressionStatement") {
1002
1085
  return new tree_1.ExpressionStatement(ctx.receiveValue(null, 0), ctx.receiveNode(null, ctx.receiveTree));
1003
1086
  }
1087
+ if (type === "org.openrewrite.javascript.tree.JS$ExpressionWithTypeArguments") {
1088
+ 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
+ }
1004
1090
  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));
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));
1006
1092
  }
1007
1093
  if (type === "org.openrewrite.javascript.tree.JS$JsImport") {
1008
1094
  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 +1102,6 @@ class Factory {
1016
1102
  if (type === "org.openrewrite.javascript.tree.JS$ObjectBindingDeclarations") {
1017
1103
  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
1104
  }
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
1105
  if (type === "org.openrewrite.javascript.tree.JS$PropertyAssignment") {
1023
1106
  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
1107
  }
@@ -1028,21 +1111,27 @@ class Factory {
1028
1111
  if (type === "org.openrewrite.javascript.tree.JS$StatementExpression") {
1029
1112
  return new tree_1.StatementExpression(ctx.receiveValue(null, 0), ctx.receiveNode(null, ctx.receiveTree));
1030
1113
  }
1114
+ if (type === "org.openrewrite.javascript.tree.JS$TaggedTemplateExpression") {
1115
+ return new tree_1.TaggedTemplateExpression(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.receiveValue(null, 5));
1116
+ }
1031
1117
  if (type === "org.openrewrite.javascript.tree.JS$TemplateExpression") {
1032
- return new tree_1.TemplateExpression(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveValue(null, 1), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveValue(null, 5));
1118
+ return new tree_1.TemplateExpression(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNodes(null, receiveRightPaddedTree), ctx.receiveValue(null, 5));
1033
1119
  }
1034
- if (type === "org.openrewrite.javascript.tree.JS$TemplateExpression$Value") {
1035
- return new tree_1.TemplateExpression.Value(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveSpace), ctx.receiveValue(null, 1));
1120
+ if (type === "org.openrewrite.javascript.tree.JS$TemplateExpression$TemplateSpan") {
1121
+ return new tree_1.TemplateExpression.TemplateSpan(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree));
1036
1122
  }
1037
1123
  if (type === "org.openrewrite.javascript.tree.JS$Tuple") {
1038
1124
  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
1125
  }
1040
1126
  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));
1127
+ 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, receiveLeftPaddedTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveLeftPaddedTree), ctx.receiveValue(null, 5));
1042
1128
  }
1043
1129
  if (type === "org.openrewrite.javascript.tree.JS$TypeOf") {
1044
1130
  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
1131
  }
1132
+ if (type === "org.openrewrite.javascript.tree.JS$TypeQuery") {
1133
+ 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));
1134
+ }
1046
1135
  if (type === "org.openrewrite.javascript.tree.JS$TypeOperator") {
1047
1136
  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
1137
  }
@@ -1052,6 +1141,9 @@ class Factory {
1052
1141
  if (type === "org.openrewrite.javascript.tree.JS$Union") {
1053
1142
  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
1143
  }
1144
+ if (type === "org.openrewrite.javascript.tree.JS$Intersection") {
1145
+ 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));
1146
+ }
1055
1147
  if (type === "org.openrewrite.javascript.tree.JS$Void") {
1056
1148
  return new tree_1.Void(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree));
1057
1149
  }
@@ -1070,8 +1162,14 @@ class Factory {
1070
1162
  if (type === "org.openrewrite.javascript.tree.JS$JSMethodDeclaration") {
1071
1163
  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));
1072
1164
  }
1073
- if (type === "org.openrewrite.javascript.tree.JS$JSMethodInvocation") {
1074
- 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));
1165
+ if (type === "org.openrewrite.javascript.tree.JS$JSForOfLoop") {
1166
+ 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));
1167
+ }
1168
+ if (type === "org.openrewrite.javascript.tree.JS$JSForInLoop") {
1169
+ 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));
1170
+ }
1171
+ if (type === "org.openrewrite.javascript.tree.JS$JSForInOfLoopControl") {
1172
+ 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));
1075
1173
  }
1076
1174
  if (type === "org.openrewrite.javascript.tree.JS$NamespaceDeclaration") {
1077
1175
  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));
@@ -1079,6 +1177,18 @@ class Factory {
1079
1177
  if (type === "org.openrewrite.javascript.tree.JS$FunctionDeclaration") {
1080
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.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
1179
  }
1180
+ if (type === "org.openrewrite.javascript.tree.JS$TypeLiteral") {
1181
+ 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));
1182
+ }
1183
+ if (type === "org.openrewrite.javascript.tree.JS$IndexSignatureDeclaration") {
1184
+ 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));
1185
+ }
1186
+ if (type === "org.openrewrite.javascript.tree.JS$ArrayBindingPattern") {
1187
+ 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));
1188
+ }
1189
+ if (type === "org.openrewrite.javascript.tree.JS$BindingElement") {
1190
+ 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
+ }
1082
1192
  if (type === "org.openrewrite.java.tree.J$AnnotatedType") {
1083
1193
  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
1194
  }