@openrewrite/rewrite 8.117.0 → 8.118.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.
@@ -107,7 +107,8 @@ export class JavaScriptVisitor<P> extends JavaVisitor<P> {
107
107
  modifiers: await mapAsync(arrowFunction.modifiers, item => this.visitDefined<J.Modifier>(item, p)),
108
108
  typeParameters: arrowFunction.typeParameters && await this.visitDefined<J.TypeParameters>(arrowFunction.typeParameters, p),
109
109
  lambda: await this.visitDefined<J.Lambda>(arrowFunction.lambda, p),
110
- returnTypeExpression: arrowFunction.returnTypeExpression && await this.visitDefined<TypedTree>(arrowFunction.returnTypeExpression, p)
110
+ returnTypeExpression: arrowFunction.returnTypeExpression && await this.visitDefined<TypedTree>(arrowFunction.returnTypeExpression, p),
111
+ methodType: await this.visitType(arrowFunction.methodType, p) as Type.Method | undefined
111
112
  }));
112
113
  return updateIfChanged(arrowFunction, updates);
113
114
  }
@@ -162,7 +163,8 @@ export class JavaScriptVisitor<P> extends JavaVisitor<P> {
162
163
  selfClosing: element.selfClosing && await this.visitSpace(element.selfClosing, p),
163
164
  children: element.children && await mapAsync(element.children, child => this.visit(child, p)),
164
165
  closingName: element.closingName && await this.visitLeftPadded(element.closingName, p),
165
- afterClosingName: element.afterClosingName && await this.visitSpace(element.afterClosingName, p)
166
+ afterClosingName: element.afterClosingName && await this.visitSpace(element.afterClosingName, p),
167
+ methodType: await this.visitType(element.methodType, p) as Type.Method | undefined
166
168
  }));
167
169
  return updateIfChanged(element, updates);
168
170
  }
@@ -395,7 +395,8 @@ class YamlCstReader {
395
395
  value = this.prependWhitespaceToValue(value, afterColonWhitespace);
396
396
  }
397
397
  } else {
398
- value = this.createEmptyScalar(afterColonWhitespace);
398
+ value = this.createEmptyScalar();
399
+ valueTrailing = afterColonWhitespace;
399
400
  }
400
401
 
401
402
  return {
@@ -514,7 +515,8 @@ class YamlCstReader {
514
515
  block = this.prependWhitespaceToValue(block, afterDashSpace);
515
516
  }
516
517
  } else {
517
- block = this.createEmptyScalar(afterDashSpace);
518
+ block = this.createEmptyScalar();
519
+ trailing = afterDashSpace;
518
520
  }
519
521
 
520
522
  return {