AjTalk.Compiler.Parser.CompileMethod C# (CSharp) Method

CompileMethod() private method

private CompileMethod ( IBehavior cls ) : void
cls IBehavior
return void
        private void CompileMethod(IBehavior cls)
        {
            this.CompileArguments();
            this.CompileLocals();

            this.block = new Method(cls, this.methodname, this.source);

            foreach (string argname in this.arguments)
            {
                this.block.CompileArgument(argname);
            }

            foreach (string locname in this.locals)
            {
                this.block.CompileLocal(locname);
            }

            this.CompileBody();
        }