UnityScript.Parser.UnityScriptParser.typeof_expression C# (CSharp) Method

typeof_expression() public method

public typeof_expression ( ) : Expression
return Expression
        public Expression typeof_expression()
        {
            Expression expression = null;
            try
            {
                bool flag = false;
                if ((this.LA(1) == 0x2c) && tokenSet_16_.member(this.LA(2)))
                {
                    int num = this.mark();
                    flag = true;
                    base.inputState.guessing++;
                    try
                    {
                        this.match(0x2c);
                        this.match(0x3f);
                        this.expression();
                        this.match(0x40);
                    }
                    catch (RecognitionException)
                    {
                        flag = false;
                    }
                    this.rewind(num);
                    base.inputState.guessing--;
                }
                if (flag)
                {
                    return this.typeof_with_expression();
                }
                if ((this.LA(1) != 0x2c) || !tokenSet_16_.member(this.LA(2)))
                {
                    throw new NoViableAltException(this.LT(1), this.getFilename());
                }
                return this.typeof_expression_alt();
            }
            catch (RecognitionException exception2)
            {
                if (base.inputState.guessing != 0)
                {
                    throw;
                }
                this.reportError(exception2);
                this.recover(exception2, tokenSet_20_);
                return expression;
            }
            return expression;
        }
UnityScriptParser