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

throw_statement() public method

public throw_statement ( Block b ) : void
b Block
return void
        public void throw_statement(Block b)
        {
            IToken token = null;
            try
            {
                Expression expression;
                token = this.LT(1);
                this.match(0x29);
                if (tokenSet_16_.member(this.LA(1)) && tokenSet_49_.member(this.LA(2)))
                {
                    expression = this.expression();
                }
                else if (!tokenSet_15_.member(this.LA(1)) || !tokenSet_20_.member(this.LA(2)))
                {
                    throw new NoViableAltException(this.LT(1), this.getFilename());
                }
                if (base.inputState.guessing == 0)
                {
                    RaiseStatement statement;
                    RaiseStatement statement1 = statement = new RaiseStatement(ToLexicalInfo(token));
                    statement.set_Exception(expression);
                    b.Add(statement);
                }
            }
            catch (RecognitionException exception)
            {
                if (base.inputState.guessing != 0)
                {
                    throw;
                }
                this.reportError(exception);
                this.recover(exception, tokenSet_15_);
            }
        }
UnityScriptParser