UnityScript.Parser.UnityScriptParser.typeof_expression_alt C# (CSharp) Méthode

typeof_expression_alt() protected méthode

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