protected void closure_parameters_test()
{
try { // for error handling
{
switch ( LA(1) )
{
case REF:
{
parameter_modifier();
break;
}
case ID:
{
break;
}
default:
{
throw new NoViableAltException(LT(1), getFilename());
}
}
}
{
match(ID);
{
switch ( LA(1) )
{
case AS:
{
match(AS);
type_reference();
break;
}
case COMMA:
case BITWISE_OR:
{
break;
}
default:
{
throw new NoViableAltException(LT(1), getFilename());
}
}
}
}
{ // ( ... )*
for (;;)
{
if ((LA(1)==COMMA))
{
match(COMMA);
match(ID);
{
switch ( LA(1) )
{
case AS:
{
match(AS);
type_reference();
break;
}
case COMMA:
case BITWISE_OR:
{
break;
}
default:
{
throw new NoViableAltException(LT(1), getFilename());
}
}
}
}
else
{
goto _loop335_breakloop;
}
}
_loop335_breakloop: ;
} // ( ... )*
match(BITWISE_OR);
}
catch (RecognitionException ex)
{
if (0 == inputState.guessing)
{
reportError(ex, "closure_parameters_test");
recover(ex,tokenSet_0_);
}
else
{
throw ex;
}
}
}