ParseTreeVisitor.visit takes a ParseTree... only visitChildren takes a RuleNode

This commit is contained in:
Sam Harwell 2012-03-04 12:52:43 -06:00
parent b570641e2b
commit 5deab167a1
1 changed files with 2 additions and 2 deletions

View File

@ -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