Skip to content

Commit

Permalink
Some changes went missing?
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Oct 3, 2024
1 parent e6c99ba commit e136b29
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
33 changes: 19 additions & 14 deletions src/main/java/org/openrewrite/javascript/JavaScriptIsoVisitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public JS.ArrowFunction visitArrowFunction(JS.ArrowFunction arrowFunction, P p)
}

@Override
public J visitAwait(JS.Await await, P p) {
return super.visitAwait(await, p);
public JS.Await visitAwait(JS.Await await, P p) {
return (JS.Await) super.visitAwait(await, p);
}

@Override
Expand All @@ -64,8 +64,8 @@ public JS.Export visitExport(JS.Export export, P p) {
}

@Override
public J visitExpressionStatement(JS.ExpressionStatement statement, P p) {
return super.visitExpressionStatement(statement, p);
public JS.ExpressionStatement visitExpressionStatement(JS.ExpressionStatement statement, P p) {
return (JS.ExpressionStatement) super.visitExpressionStatement(statement, p);
}

@Override
Expand All @@ -89,13 +89,18 @@ public JS.ObjectBindingDeclarations visitObjectBindingDeclarations(JS.ObjectBind
}

@Override
public J visitPropertyAssignment(JS.PropertyAssignment propertyAssignment, P p) {
return super.visitPropertyAssignment(propertyAssignment, p);
public JS.PropertyAssignment visitPropertyAssignment(JS.PropertyAssignment propertyAssignment, P p) {
return (JS.PropertyAssignment) super.visitPropertyAssignment(propertyAssignment, p);
}

@Override
public J visitStatementExpression(JS.StatementExpression expression, P p) {
return super.visitStatementExpression(expression, p);
public JS.ScopedVariableDeclarations visitScopedVariableDeclarations(JS.ScopedVariableDeclarations scopedVariableDeclarations, P p) {
return (JS.ScopedVariableDeclarations) super.visitScopedVariableDeclarations(scopedVariableDeclarations, p);
}

@Override
public JS.StatementExpression visitStatementExpression(JS.StatementExpression expression, P p) {
return (JS.StatementExpression) super.visitStatementExpression(expression, p);
}

@Override
Expand All @@ -119,8 +124,8 @@ public JS.TypeDeclaration visitTypeDeclaration(JS.TypeDeclaration typeDeclaratio
}

@Override
public J visitTypeOf(JS.TypeOf typeOf, P p) {
return super.visitTypeOf(typeOf, p);
public JS.TypeOf visitTypeOf(JS.TypeOf typeOf, P p) {
return (JS.TypeOf) super.visitTypeOf(typeOf, p);
}

@Override
Expand All @@ -134,13 +139,13 @@ public JS.Union visitUnion(JS.Union union, P p) {
}

@Override
public J visitVoid(JS.Void aVoid, P p) {
return super.visitVoid(aVoid, p);
public JS.Void visitVoid(JS.Void aVoid, P p) {
return (JS.Void) super.visitVoid(aVoid, p);
}

@Override
public J visitYield(JS.Yield yield, P p) {
return super.visitYield(yield, p);
public JS.Yield visitYield(JS.Yield yield, P p) {
return (JS.Yield) super.visitYield(yield, p);
}

// J overrides.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public enum Location {
IMPORT_ELEMENT_SUFFIX(JsSpace.Location.IMPORT_ELEMENT_SUFFIX),
IMPORT_NAME_SUFFIX(JsSpace.Location.IMPORT_NAME_SUFFIX),
PROPERTY_ASSIGNMENT_NAME(JsSpace.Location.PROPERTY_ASSIGNMENT_NAME_SUFFIX),
SCOPED_VARIABLE_DECLARATIONS_VARIABLE(JsSpace.Location.SCOPED_VARIABLE_DECLARATIONS_VARIABLE_SUFFIX),
TAG(JsSpace.Location.TAG_SUFFIX),
TUPLE_ELEMENT_SUFFIX(JsSpace.Location.TUPLE_ELEMENT_SUFFIX),
UNION_TYPE(JsSpace.Location.UNION_TYPE_SUFFIX),
Expand Down

0 comments on commit e136b29

Please sign in to comment.