protected void type_definition(
TypeMemberCollection container
)
{
try { // for error handling
{
switch ( LA(1) )
{
case CLASS:
case STRUCT:
{
class_definition(container);
break;
}
case INTERFACE:
{
interface_definition(container);
break;
}
case ENUM:
{
enum_definition(container);
break;
}
case CALLABLE:
{
callable_definition(container);
break;
}
default:
{
throw new NoViableAltException(LT(1), getFilename());
}
}
}
}
catch (RecognitionException ex)
{
if (0 == inputState.guessing)
{
reportError(ex, "type_definition");
recover(ex,tokenSet_22_);
}
else
{
throw ex;
}
}
}