forked from jasder/antlr
ParseTreeVisitor.visit takes a ParseTree... only visitChildren takes a RuleNode
This commit is contained in:
parent
b570641e2b
commit
5deab167a1
|
@ -6,8 +6,8 @@ import org.antlr.v4.runtime.Token;
|
|||
/** {@code T} is return type of {@code visit} methods. Use {@link Void} for no return type.
|
||||
*/
|
||||
public class ParseTreeVisitor<T> {
|
||||
public T visit(ParseTree.RuleNode node) {
|
||||
return node.accept(this);
|
||||
public T visit(ParseTree tree) {
|
||||
return tree.accept(this);
|
||||
}
|
||||
|
||||
/** Visit all rule, non-leaf children. This returns value returned from last
|
||||
|
|
Loading…
Reference in New Issue