Exemple #1
0
 public Method_Def(Id n, Type_cool t, Lista <Formal> a, Expr e) : base(new Node[] { n, t, a, e })
 {
     name = n;
     type = t;
     args = a;
     exp  = e;
 }
Exemple #2
0
 public Class_Def(Type_cool t, Type_cool t1, Lista <Method_Def> m, Lista <Attr_Def> a) : base(new Node[] { m, a })
 {
     type         = t;
     inherit_type = t1;
     method       = m;
     attr         = a;
 }
Exemple #3
0
 public Dispatch(Expr exp, Type_cool type, Call_Method call) : base(new Node[] { exp, type, call })
 {
     this.exp  = exp;
     this.type = type;
     this.call = call;
     s         = (this.type != null) ? this.type.s : "sin castear ";
 }
Exemple #4
0
 public New_type(Type_cool t) : base(new Node[] { t })
 {
     this.type = t;
 }
Exemple #5
0
 public Formal(Id n, Type_cool t) : base(new Node[] { n, t })
 {
     name = n;
     type = t;
 }
Exemple #6
0
 public Attr_Def(Id n, Type_cool type, Expr exp) : base(new Node[] { n, type, exp })
 {
     name      = n;
     this.type = type;
     this.exp  = exp;
 }