|
|
@ -25,6 +25,11 @@ public class ABCVarNameChecker extends SubscriptionVisitor { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public List<Tree.Kind> nodesToVisit() { |
|
|
|
public List<Tree.Kind> nodesToVisit() { |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Tree.Kind.METHOD:方法节点 |
|
|
|
|
|
|
|
* Tree.Kind.BLOCK:方法的代码块节点 |
|
|
|
|
|
|
|
* Tree.Kind.METHOD_INVOCATION: 方法的调用节点 |
|
|
|
|
|
|
|
*/ |
|
|
|
return Collections.singletonList( |
|
|
|
return Collections.singletonList( |
|
|
|
Tree.Kind.VARIABLE |
|
|
|
Tree.Kind.VARIABLE |
|
|
|
); |
|
|
|
); |
|
|
|