Example #1
0
        public override void Reflect(bool full,
                                     Dictionary <string, DTypeDesc> /*!*/ types,
                                     Dictionary <string, DRoutineDesc> /*!*/ functions,
                                     DualDictionary <string, DConstantDesc> /*!*/ constants)
        {
            if (AutoPopulate())
            {
                return;
            }

            // types:
            ClrModule.ReflectTypes(this.Assembly.RealAssembly, types);

            // TODO:

            // functions and global constants:
            foreach (Module module in this.Assembly.RealAssembly.GetModules())
            {
                //ClrTypeDesc.ReflectMethods(module.GetMethods(), globalType.TypeDesc,
                //	delegate(Name name, ClrMethodDesc/*!*/ function) { functions.Add(name.Value, function); });
            }
        }
Example #2
0
 /// <summary>
 /// Called by the loader.
 /// </summary>
 internal ClrAssembly(ApplicationContext /*!*/ applicationContext, Assembly /*!*/ realAssembly,
                      LibraryConfigStore configStore)
     : base(applicationContext, realAssembly)
 {
     this.module = new ClrModule(this);
 }