Boo.Lang.Parser.BooParserBase.begin_block_with_doc C# (CSharp) Method

begin_block_with_doc() protected method

protected begin_block_with_doc ( Node node, Block block ) : void
node Node
block Block
return void
        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;
            }
            }
        }
BooParserBase