Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 public MethodDeclaration(Scope scope, MethodInterface @interface) : base(scope.Parent, @interface.Name)
 {
     this.body       = null;
     this.scope      = scope;
     this.@interface = @interface;
 }