Exemplo n.º 1
0
 public IEnumerable <ModuleDefn> GetImportedModuleDefns()
 {
     foreach (string s in GetImportedModuleNames())
     {
         yield return(program.GetModule(s));
     }
 }
Exemplo n.º 2
0
        public void ResolveTypes(ProgramDefn prog, ModuleDefn global)
        {
            if (HasBaseClass())
            {
                string     s          = GetInheritedClassName();
                ModuleDefn baseModule = prog.GetModule(s);
                SetBaseClass(new TypeRef(baseModule));
            }

            foreach (InterfaceDefn i in GetInterfaces())
            {
                i.ResolveTypes(global, this);
            }
            foreach (ClassDefn c in GetClasses())
            {
                c.ResolveTypes(global, this);
            }

            base.ResolveTypes(global, this);
        }
Exemplo n.º 3
0
        public void ResolveTypes(ProgramDefn prog, ModuleDefn global)
        {
            if (HasBaseClass())
            {
                string s = GetInheritedClassName();
                ModuleDefn baseModule = prog.GetModule(s);
                SetBaseClass(new TypeRef(baseModule));
            }

            foreach (InterfaceDefn i in GetInterfaces())
                i.ResolveTypes(global, this);
            foreach (ClassDefn c in GetClasses())
                c.ResolveTypes(global, this);

            base.ResolveTypes(global, this);
        }