protected void base_types(
TypeReferenceCollection container
)
{
TypeReference tr = null;
try { // for error handling
match(LPAREN);
{
switch ( LA(1) )
{
case CALLABLE:
case CHAR:
case THEN:
case LPAREN:
case ID:
case SPLICE_BEGIN:
{
tr=type_reference();
if (0==inputState.guessing)
{
container.Add(tr);
}
{ // ( ... )*
for (;;)
{
if ((LA(1)==COMMA))
{
match(COMMA);
tr=type_reference();
if (0==inputState.guessing)
{
container.Add(tr);
}
}
else
{
goto _loop94_breakloop;
}
}
_loop94_breakloop: ;
} // ( ... )*
break;
}
case RPAREN:
{
break;
}
default:
{
throw new NoViableAltException(LT(1), getFilename());
}
}
}
match(RPAREN);
}
catch (RecognitionException ex)
{
if (0 == inputState.guessing)
{
reportError(ex, "base_types");
recover(ex,tokenSet_51_);
}
else
{
throw ex;
}
}
}