public Ambito(Ambito anterior, String idAmbito) { this.Anterior = anterior; this.idAmbito = idAmbito; this.tablaVars = new TablaVariables(); this.tablaFuns = new TablaFunciones(); this.tablaConst = new TablaConstructores(); }
public void tomarConstructores(TablaConstructores tablaPadre) { Hashtable auxiliar = tablaPadre.constructores; foreach (DictionaryEntry data in auxiliar) { if (data.Value is Constructor) { Constructor cons = (Constructor)data.Value; ClaveFuncion c = (ClaveFuncion)data.Key; this.tablaConst.AgregaConstrucor(c, cons); } } }
public void heredaConstructores(TablaConstructores tabla) { Hashtable auxiliar = tabla.constructores; foreach (DictionaryEntry data in auxiliar) { if (data.Value is Constructor) { Constructor cons = (Constructor)data.Value; ClaveFuncion c = (ClaveFuncion)data.Key; c.idFuncion = "padre"; c.Tipo = "vacio"; this.tablaConst.AgregaConstrucor(c, cons); } } }