Skip to content

Commit

Permalink
Transport isUsingAnonymousInnerClass property when transforming const…
Browse files Browse the repository at this point in the history
…ructor call expressions (spockframework#1078)
  • Loading branch information
Vampire authored and leonard84 committed Jan 15, 2020
1 parent d276e78 commit 0237b8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ public void visitConstructorCallExpression(ConstructorCallExpression expr) {
convert(expr.getArguments()));

conversion.setSourcePosition(expr);
conversion.setUsingAnonymousInnerClass(expr.isUsingAnonymousInnerClass());
result = record(conversion);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ public void visitConstructorCallExpression(ConstructorCallExpression expr) {
expr.getType(),
replaceExpr(expr.getArguments()));
result.setSourcePosition(expr);
result.setUsingAnonymousInnerClass(expr.isUsingAnonymousInnerClass());
replaceVisitedExpressionWith(result);
}

Expand Down

0 comments on commit 0237b8d

Please sign in to comment.