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

goto_stmt() protected method

protected goto_stmt ( ) : GotoStatement
return GotoStatement
        protected GotoStatement goto_stmt()
        {
            GotoStatement stmt;

            IToken  token = null;
            IToken  label = null;

                stmt = null;

            try {      // for error handling
            token = LT(1);
            match(GOTO);
            label = LT(1);
            match(ID);
            if (0==inputState.guessing)
            {

                        stmt = new GotoStatement(ToLexicalInfo(token),
                                    new ReferenceExpression(ToLexicalInfo(label), label.getText()));

            }
            }
            catch (RecognitionException ex)
            {
            if (0 == inputState.guessing)
            {
                reportError(ex, "goto_stmt");
                recover(ex,tokenSet_21_);
            }
            else
            {
                throw ex;
            }
            }
            return stmt;
        }
BooParserBase