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

block() public method

public block ( Block b ) : void
b Block
return void
        public void block(Block b)
        {
            IToken token = null;
            try
            {
                this.match(0x3d);
                while (tokenSet_2_.member(this.LA(1)))
                {
                    this.compound_or_single_stmt(b);
                }
                token = this.LT(1);
                this.match(0x3e);
                if (base.inputState.guessing == 0)
                {
                    SetEndSourceLocation(b, token);
                }
            }
            catch (RecognitionException exception)
            {
                if (base.inputState.guessing != 0)
                {
                    throw;
                }
                this.reportError(exception);
                this.recover(exception, tokenSet_20_);
            }
        }
UnityScriptParser