@openrewrite/rewrite 0.29.0 → 0.30.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.
@@ -946,6 +946,15 @@ class Visitor extends __1.JavaScriptVisitor {
946
946
  instanceOf = instanceOf.withType(ctx.receiveValue(instanceOf.type, 5));
947
947
  return instanceOf;
948
948
  }
949
+ visitDeconstructionPattern(deconstructionPattern, ctx) {
950
+ deconstructionPattern = deconstructionPattern.withId(ctx.receiveValue(deconstructionPattern.id, 0));
951
+ deconstructionPattern = deconstructionPattern.withPrefix(ctx.receiveNode(deconstructionPattern.prefix, receiveSpace));
952
+ deconstructionPattern = deconstructionPattern.withMarkers(ctx.receiveNode(deconstructionPattern.markers, ctx.receiveMarkers));
953
+ deconstructionPattern = deconstructionPattern.withDeconstructor(ctx.receiveNode(deconstructionPattern.deconstructor, ctx.receiveTree));
954
+ deconstructionPattern = deconstructionPattern.padding.withNested(ctx.receiveNode(deconstructionPattern.padding.nested, receiveContainer));
955
+ deconstructionPattern = deconstructionPattern.withType(ctx.receiveValue(deconstructionPattern.type, 5));
956
+ return deconstructionPattern;
957
+ }
949
958
  visitIntersectionType(intersectionType, ctx) {
950
959
  intersectionType = intersectionType.withId(ctx.receiveValue(intersectionType.id, 0));
951
960
  intersectionType = intersectionType.withPrefix(ctx.receiveNode(intersectionType.prefix, receiveSpace));
@@ -1140,6 +1149,7 @@ class Visitor extends __1.JavaScriptVisitor {
1140
1149
  switchExpression = switchExpression.withMarkers(ctx.receiveNode(switchExpression.markers, ctx.receiveMarkers));
1141
1150
  switchExpression = switchExpression.withSelector(ctx.receiveNode(switchExpression.selector, ctx.receiveTree));
1142
1151
  switchExpression = switchExpression.withCases(ctx.receiveNode(switchExpression.cases, ctx.receiveTree));
1152
+ switchExpression = switchExpression.withType(ctx.receiveValue(switchExpression.type, 5));
1143
1153
  return switchExpression;
1144
1154
  }
1145
1155
  visitSynchronized(synchronized, ctx) {
@@ -1592,6 +1602,9 @@ class Factory {
1592
1602
  if (type === "org.openrewrite.java.tree.J$InstanceOf") {
1593
1603
  return new Java.InstanceOf(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, ctx.receiveTree), ctx.receiveValue(null, 5));
1594
1604
  }
1605
+ if (type === "org.openrewrite.java.tree.J$DeconstructionPattern") {
1606
+ return new Java.DeconstructionPattern(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));
1607
+ }
1595
1608
  if (type === "org.openrewrite.java.tree.J$IntersectionType") {
1596
1609
  return new Java.IntersectionType(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveContainer));
1597
1610
  }
@@ -1656,7 +1669,7 @@ class Factory {
1656
1669
  return new Java.Switch(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree));
1657
1670
  }
1658
1671
  if (type === "org.openrewrite.java.tree.J$SwitchExpression") {
1659
- return new Java.SwitchExpression(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree));
1672
+ return new Java.SwitchExpression(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
1660
1673
  }
1661
1674
  if (type === "org.openrewrite.java.tree.J$Synchronized") {
1662
1675
  return new Java.Synchronized(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree));