Skip to content

Commit

Permalink
Fix gradle/groovy parser issue with gradle 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurens-W committed Dec 4, 2024
1 parent f9d71bc commit c6d1f60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ public void visitConstantExpression(ConstantExpression expression) {
public void visitConstructorCallExpression(ConstructorCallExpression ctor) {
queue.add(insideParentheses(ctor, fmt -> {
cursor += 3; // skip "new"
TypeTree clazz = visitTypeTree(ctor.getType(), ctor.getMetaDataMap().containsKey(StaticTypesMarker.INFERRED_TYPE));
TypeTree clazz = visitTypeTree(ctor.getType(), ctor.getNodeMetaData().containsKey(StaticTypesMarker.INFERRED_TYPE));
JContainer<Expression> args = visit(ctor.getArguments());
J.Block body = null;
if (ctor.isUsingAnonymousInnerClass() && ctor.getType() instanceof InnerClassNode) {
Expand Down

0 comments on commit c6d1f60

Please sign in to comment.