removing sync() in front of (...) and (...)?

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9460]
This commit is contained in:
parrt 2011-11-25 16:24:40 -08:00
parent d2b24da47f
commit 2c52166dd0
1 changed files with 5 additions and 5 deletions

View File

@ -220,7 +220,7 @@ CodeBlockForAlt(c, locals, preamble, ops) ::= <<
LL1AltBlock(choice, preamble, alts, error) ::= <<
setState(<choice.stateNumber>);
_errHandler.sync(this);
//_errHandler.sync(this);
<if(choice.label)><labelref(choice.label)> = _input.LT(1);<endif>
<preamble; separator="\n">
switch ( _input.LA(1) ) {
@ -234,7 +234,7 @@ switch ( _input.LA(1) ) {
LL1OptionalBlock(choice, alts, error) ::= <<
setState(<choice.stateNumber>);
_errHandler.sync(this);
//_errHandler.sync(this);
switch ( _input.LA(1) ) {
<choice.altLook,alts:{look,alt| <cases(ttypes=look)>
<alt>
@ -246,7 +246,7 @@ switch ( _input.LA(1) ) {
LL1OptionalBlockSingleAlt(choice, expr, alts, preamble, error, followExpr) ::= <<
setState(<choice.stateNumber>);
_errHandler.sync(this);
//_errHandler.sync(this);
<preamble; separator="\n">
if ( <expr> ) {
<alts; separator="\n">
@ -316,7 +316,7 @@ do {
AltBlock(choice, preamble, alts, error) ::= <<
setState(<choice.stateNumber>);
_errHandler.sync(this);
//_errHandler.sync(this);
<if(choice.label)><labelref(choice.label)> = _input.LT(1);<endif>
<preamble; separator="\n">
switch ( getInterpreter().adaptivePredict(_input,<choice.decision>,_ctx) ) {
@ -329,7 +329,7 @@ case <i>:
OptionalBlock(choice, alts, error) ::= <<
setState(<choice.stateNumber>);
_errHandler.sync(this);
//_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,<choice.decision>,_ctx) ) {
<alts:{alt |
case <i>: