public override void GenCode(TypeBuilder tb, MethodBuilder mb, ILGenerator cg) { TypeStack typeStack = null; for (int i = Compiler.Types.Count - 1; i >= 0; i--) { if (Compiler.Types[i].name == baseType)//busco el tipo base para hacer el alias( esta en el scope { Type type = null; type = Compiler.Types[i].type; typeStack = new TypeStack(Id, type, Compiler.Types[i].typeArray); Compiler.Types.Add(typeStack); break; } } }