public void SetMethodBody(string name, StatementBlock body) { if (this.Methods.ContainsKey(name)) { this.Methods[name].body = body; } else { throw new System.Exception("Cannot set body for unknown method: " + name); } }
public MethodDeclaration(Scope scope, MethodInterface @interface) : base(scope.Parent, @interface.Name) { this.body = null; this.scope = scope; this.@interface = @interface; }