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

expression_statement() public method

public expression_statement ( Block b ) : void
b Block
return void
        public void expression_statement(Block b)
        {
            try
            {
                Expression expression = this.assignment_expression();
                if (base.inputState.guessing == 0)
                {
                    b.Add(new ExpressionStatement(expression));
                }
            }
            catch (RecognitionException exception)
            {
                if (base.inputState.guessing != 0)
                {
                    throw;
                }
                this.reportError(exception);
                this.recover(exception, tokenSet_15_);
            }
        }
UnityScriptParser