forked from jasder/antlr
Avoid unnecessary call to TokenStream.LT
This commit is contained in:
parent
61ed3bc019
commit
94c33074be
|
@ -468,7 +468,7 @@ MatchNotSet(m, expr, capture) ::= "<CommonSetStuff(m, expr, capture, true)>"
|
|||
|
||||
CommonSetStuff(m, expr, capture, invert) ::= <<
|
||||
setState(<m.stateNumber>);
|
||||
<if(m.labels)><m.labels:{l | <labelref(l)> = }><endif>_input.LT(1);
|
||||
<if(m.labels)><m.labels:{l | <labelref(l)> = }>_input.LT(1);<endif>
|
||||
<capture>
|
||||
if ( <if(invert)><m.varName> \<= 0 || <else>!<endif>(<expr>) ) {
|
||||
<if(m.labels)><m.labels:{l | <labelref(l)> = (Token)}><endif>_errHandler.recoverInline(this);
|
||||
|
|
Loading…
Reference in New Issue