protected void begin_block_with_doc(
Node node, Block block
)
{
IToken begin = null;
try { // for error handling
match(COLON);
{
switch ( LA(1) )
{
case EOL:
case EOS:
{
eos();
docstring(node);
break;
}
case INDENT:
{
break;
}
default:
{
throw new NoViableAltException(LT(1), getFilename());
}
}
}
begin = LT(1);
match(INDENT);
if (0==inputState.guessing)
{
block.LexicalInfo = ToLexicalInfo(begin);
}
}
catch (RecognitionException ex)
{
if (0 == inputState.guessing)
{
reportError(ex, "begin_block_with_doc");
recover(ex,tokenSet_64_);
}
else
{
throw ex;
}
}
}