protected void parameter_declaration_list(
ParameterDeclarationCollection c
)
{
bool variableArguments = false;
try { // for error handling
{
switch ( LA(1) )
{
case REF:
case ID:
case MULTIPLY:
case LBRACK:
case SPLICE_BEGIN:
{
variableArguments=parameter_declaration(c);
{ // ( ... )*
for (;;)
{
if (((LA(1)==COMMA))&&(!variableArguments))
{
{
match(COMMA);
variableArguments=parameter_declaration(c);
}
}
else
{
goto _loop208_breakloop;
}
}
_loop208_breakloop: ;
} // ( ... )*
break;
}
case RPAREN:
case RBRACK:
case BITWISE_OR:
{
break;
}
default:
{
throw new NoViableAltException(LT(1), getFilename());
}
}
}
if (0==inputState.guessing)
{
c.HasParamArray = variableArguments;
}
}
catch (RecognitionException ex)
{
if (0 == inputState.guessing)
{
reportError(ex, "parameter_declaration_list");
recover(ex,tokenSet_39_);
}
else
{
throw ex;
}
}
}