Skip to content

Commit

Permalink
Ignore member refs and lambdas
Browse files Browse the repository at this point in the history
  • Loading branch information
tkindy committed Jun 14, 2024
1 parent d9daedd commit 48b95a7
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
import com.sun.source.tree.ClassTree;
import com.sun.source.tree.ExpressionTree;
import com.sun.source.tree.IdentifierTree;
import com.sun.source.tree.LambdaExpressionTree;
import com.sun.source.tree.MemberReferenceTree;
import com.sun.source.tree.MemberSelectTree;
import com.sun.source.tree.MethodTree;
import com.sun.source.tree.Tree;
Expand Down Expand Up @@ -112,6 +114,16 @@ public Void visitMethod(MethodTree node, Void unused) {
return null;
}

@Override
public Void visitMemberReference(MemberReferenceTree node, Void unused) {
return null;
}

@Override
public Void visitLambdaExpression(LambdaExpressionTree node, Void unused) {
return null;
}

@Override
public Void visitMemberSelect(MemberSelectTree tree, Void unused) {
if (ASTHelpers.constValue(tree) != null) {
Expand Down

0 comments on commit 48b95a7

Please sign in to comment.