@openrewrite/rewrite 0.30.1 → 0.31.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.
@@ -167,8 +167,7 @@ class Visitor extends __1.JavaScriptVisitor {
167
167
  functionType = functionType.padding.withConstructorType(ctx.receiveNode(functionType.padding.constructorType, leftPaddedValueReceiver(1)));
168
168
  functionType = functionType.withTypeParameters(ctx.receiveNode(functionType.typeParameters, ctx.receiveTree));
169
169
  functionType = functionType.padding.withParameters(ctx.receiveNode(functionType.padding.parameters, receiveContainer));
170
- functionType = functionType.withArrow(ctx.receiveNode(functionType.arrow, receiveSpace));
171
- functionType = functionType.withReturnType(ctx.receiveNode(functionType.returnType, ctx.receiveTree));
170
+ functionType = functionType.padding.withReturnType(ctx.receiveNode(functionType.padding.returnType, receiveLeftPaddedTree));
172
171
  functionType = functionType.withType(ctx.receiveValue(functionType.type, 5));
173
172
  return functionType;
174
173
  }
@@ -1342,7 +1341,7 @@ class Factory {
1342
1341
  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));
1343
1342
  }
1344
1343
  if (type === "org.openrewrite.javascript.tree.JS$FunctionType") {
1345
- return new tree_1.FunctionType(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, receiveContainer), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
1344
+ return new tree_1.FunctionType(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, receiveContainer), ctx.receiveNode(null, receiveLeftPaddedTree), ctx.receiveValue(null, 5));
1346
1345
  }
1347
1346
  if (type === "org.openrewrite.javascript.tree.JS$InferType") {
1348
1347
  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));