Qualify references to the ATN class to avoid symbol conflicts with tokens named ATN (fixes #561)

This commit is contained in:
Sam Harwell 2014-05-24 13:15:01 -05:00
parent e0937a6322
commit 938a39c057
1 changed files with 2 additions and 2 deletions

View File

@ -534,7 +534,7 @@ StarBlock(choice, alts, sync, iteration) ::= <<
setState(<choice.stateNumber>);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,<choice.decision>,_ctx);
while ( _alt!=<choice.exitAlt> && _alt!=ATN.INVALID_ALT_NUMBER ) {
while ( _alt!=<choice.exitAlt> && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1<if(!choice.ast.greedy)>+1<endif> ) {
<iteration>
<alts> <! should only be one !>
@ -561,7 +561,7 @@ case <i><if(!choice.ast.greedy)>+1<endif>:
setState(<choice.loopBackStateNumber>); <! loopback/exit decision !>
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,<choice.decision>,_ctx);
} while ( _alt!=<choice.exitAlt> && _alt!=ATN.INVALID_ALT_NUMBER );
} while ( _alt!=<choice.exitAlt> && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER );
>>
Sync(s) ::= "sync(<s.expecting.name>);"