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

end() protected method

protected end ( Node node ) : void
node Node
return void
        protected void end(
		Node node
	)
        {
            IToken  t = null;

            try {      // for error handling
            t = LT(1);
            match(DEDENT);
            if (0==inputState.guessing)
            {
                SetEndSourceLocation(node, t);
            }
            {
                if ((LA(1)==EOL||LA(1)==EOS) && (tokenSet_47_.member(LA(2))))
                {
                    eos();
                }
                else if ((tokenSet_47_.member(LA(1))) && (tokenSet_48_.member(LA(2)))) {
                }
                else
                {
                    throw new NoViableAltException(LT(1), getFilename());
                }

            }
            }
            catch (RecognitionException ex)
            {
            if (0 == inputState.guessing)
            {
                reportError(ex, "end");
                recover(ex,tokenSet_47_);
            }
            else
            {
                throw ex;
            }
            }
        }
BooParserBase