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();
}