@openrewrite/rewrite 0.25.4 → 0.26.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.
@@ -1 +1 @@
1
- {"version":3,"file":"receiver.d.ts","sourceRoot":"","sources":["../../../../src/javascript/remote/receiver.ts"],"names":[],"mappings":"AACA,OAAO,EAA8C,IAAI,EAAC,MAAM,YAAY,CAAC;AAC7E,OAAO,EAAkB,QAAQ,EAAE,eAAe,EAA6B,MAAM,6BAA6B,CAAC;AAEnH,OAAO,EAAC,EAAE,EAA45B,MAAM,SAAS,CAAC;AAIt7B,qBAAa,kBAAmB,YAAW,QAAQ,CAAC,EAAE,CAAC;IAC5C,IAAI,CAAC,GAAG,EAAE,eAAe,GAAG,eAAe;IAI3C,OAAO,CAAC,MAAM,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,eAAe,GAAG,IAAI;CAIhE"}
1
+ {"version":3,"file":"receiver.d.ts","sourceRoot":"","sources":["../../../../src/javascript/remote/receiver.ts"],"names":[],"mappings":"AACA,OAAO,EAA8C,IAAI,EAAC,MAAM,YAAY,CAAC;AAC7E,OAAO,EAAkB,QAAQ,EAAE,eAAe,EAA6B,MAAM,6BAA6B,CAAC;AAEnH,OAAO,EAAC,EAAE,EAAo7B,MAAM,SAAS,CAAC;AAI98B,qBAAa,kBAAmB,YAAW,QAAQ,CAAC,EAAE,CAAC;IAC5C,IAAI,CAAC,GAAG,EAAE,eAAe,GAAG,eAAe;IAI3C,OAAO,CAAC,MAAM,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,eAAe,GAAG,IAAI;CAIhE"}
@@ -142,6 +142,14 @@ class Visitor extends __1.JavaScriptVisitor {
142
142
  expressionStatement = expressionStatement.withExpression(ctx.receiveNode(expressionStatement.expression, ctx.receiveTree));
143
143
  return expressionStatement;
144
144
  }
145
+ visitTrailingTokenStatement(trailingTokenStatement, ctx) {
146
+ trailingTokenStatement = trailingTokenStatement.withId(ctx.receiveValue(trailingTokenStatement.id, 0));
147
+ trailingTokenStatement = trailingTokenStatement.withPrefix(ctx.receiveNode(trailingTokenStatement.prefix, receiveSpace));
148
+ trailingTokenStatement = trailingTokenStatement.withMarkers(ctx.receiveNode(trailingTokenStatement.markers, ctx.receiveMarkers));
149
+ trailingTokenStatement = trailingTokenStatement.padding.withExpression(ctx.receiveNode(trailingTokenStatement.padding.expression, receiveRightPaddedTree));
150
+ trailingTokenStatement = trailingTokenStatement.withType(ctx.receiveValue(trailingTokenStatement.type, 5));
151
+ return trailingTokenStatement;
152
+ }
145
153
  visitExpressionWithTypeArguments(expressionWithTypeArguments, ctx) {
146
154
  expressionWithTypeArguments = expressionWithTypeArguments.withId(ctx.receiveValue(expressionWithTypeArguments.id, 0));
147
155
  expressionWithTypeArguments = expressionWithTypeArguments.withPrefix(ctx.receiveNode(expressionWithTypeArguments.prefix, receiveSpace));
@@ -1250,6 +1258,9 @@ class Factory {
1250
1258
  if (type === "org.openrewrite.javascript.tree.JS$ExpressionStatement") {
1251
1259
  return new tree_1.ExpressionStatement(ctx.receiveValue(null, 0), ctx.receiveNode(null, ctx.receiveTree));
1252
1260
  }
1261
+ if (type === "org.openrewrite.javascript.tree.JS$TrailingTokenStatement") {
1262
+ return new tree_1.TrailingTokenStatement(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveValue(null, 5));
1263
+ }
1253
1264
  if (type === "org.openrewrite.javascript.tree.JS$ExpressionWithTypeArguments") {
1254
1265
  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));
1255
1266
  }