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; }
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; }
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 "; }
public New_type(Type_cool t) : base(new Node[] { t }) { this.type = t; }
public Formal(Id n, Type_cool t) : base(new Node[] { n, t }) { name = n; type = t; }
public Attr_Def(Id n, Type_cool type, Expr exp) : base(new Node[] { n, type, exp }) { name = n; this.type = type; this.exp = exp; }