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

function_body() public method

public function_body ( Method method ) : void
method Method
return void
        public void function_body(Method method)
        {
            try
            {
                this.match(0x3f);
                switch (this.LA(1))
                {
                    case 12:
                    case 0x10:
                    case 0x21:
                    case 0x3b:
                    case 0x63:
                        this.parameter_declaration_list(method);
                        break;

                    case 0x40:
                        break;

                    default:
                        throw new NoViableAltException(this.LT(1), this.getFilename());
                }
                this.match(0x40);
                switch (this.LA(1))
                {
                    case 0x42:
                    {
                        this.match(0x42);
                        TypeReference reference = this.type_reference();
                        if (base.inputState.guessing == 0)
                        {
                            method.set_ReturnType(reference);
                        }
                        break;
                    }
                    case 0x3d:
                        break;

                    default:
                        throw new NoViableAltException(this.LT(1), this.getFilename());
                }
                this.compound_statement(method.get_Body());
                if (base.inputState.guessing == 0)
                {
                    method.set_EndSourceLocation(method.get_Body().get_EndSourceLocation());
                }
            }
            catch (RecognitionException exception)
            {
                if (base.inputState.guessing != 0)
                {
                    throw;
                }
                this.reportError(exception);
                this.recover(exception, tokenSet_33_);
            }
        }
UnityScriptParser