protected void callable_parameter_declaration_list(
ParameterDeclarationCollection c
)
{
bool varArgs = false;
try { // for error handling
{
switch ( LA(1) )
{
case CALLABLE:
case CHAR:
case REF:
case THEN:
case LPAREN:
case ID:
case MULTIPLY:
case SPLICE_BEGIN:
{
varArgs=callable_parameter_declaration(c);
{ // ( ... )*
for (;;)
{
if (((LA(1)==COMMA))&&(!varArgs))
{
{
match(COMMA);
varArgs=callable_parameter_declaration(c);
}
}
else
{
goto _loop222_breakloop;
}
}
_loop222_breakloop: ;
} // ( ... )*
if (0==inputState.guessing)
{
c.HasParamArray = varArgs;
}
break;
}
case RPAREN:
{
break;
}
default:
{
throw new NoViableAltException(LT(1), getFilename());
}
}
}
}
catch (RecognitionException ex)
{
if (0 == inputState.guessing)
{
reportError(ex, "callable_parameter_declaration_list");
recover(ex,tokenSet_50_);
}
else
{
throw ex;
}
}
}