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

typeof_expression() protected method

protected typeof_expression ( ) : Expression
return Expression
        protected Expression typeof_expression()
        {
            Expression e;

            IToken  t = null;

                e = null;
                TypeReference tr = null;

            try {      // for error handling
            t = LT(1);
            match(TYPEOF);
            match(LPAREN);
            tr=type_reference();
            match(RPAREN);
            if (0==inputState.guessing)
            {

                        e = new TypeofExpression(ToLexicalInfo(t), tr);

            }
            }
            catch (RecognitionException ex)
            {
            if (0 == inputState.guessing)
            {
                reportError(ex, "typeof_expression");
                recover(ex,tokenSet_41_);
            }
            else
            {
                throw ex;
            }
            }
            return e;
        }
BooParserBase