From 73e2a31d36dca37137bb2ecdd813b2cd244d9f50 Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Mon, 24 Dec 2012 14:04:32 -0600 Subject: [PATCH] Call visitChildren by default --- .../resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg b/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg index 82b53d6e0..df48dc758 100644 --- a/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg +++ b/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg @@ -699,7 +699,7 @@ VisitorDispatchMethod(method) ::= << @Override public \ T accept(ParseTreeVisitor\ visitor) { if ( visitor instanceof Visitor ) return ((Visitor\)visitor).visit(this); - else return null; + else return visitor.visitChildren(this); } >>