Call visitChildren by default

This commit is contained in:
Sam Harwell 2012-12-24 14:04:32 -06:00
parent 36c3b2341c
commit 73e2a31d36
1 changed files with 1 additions and 1 deletions

View File

@ -699,7 +699,7 @@ VisitorDispatchMethod(method) ::= <<
@Override
public \<T> T accept(ParseTreeVisitor\<? extends T> visitor) {
if ( visitor instanceof <parser.grammarName>Visitor ) return ((<parser.grammarName>Visitor\<? extends T>)visitor).visit<struct.derivedFromName; format="cap">(this);
else return null;
else return visitor.visitChildren(this);
}
>>