AjTalk.Compiler.Parser.CompileMethod C# (CSharp) Méthode

CompileMethod() private méthode

private CompileMethod ( IBehavior cls ) : void
cls IBehavior
Résultat 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();
        }