コード例 #1
0
 public RegisteredTypeList Clone()
 {
     RegisteredTypeList list = new RegisteredTypeList();
     for (int i = 0; i < this.Count; i++)
     {
         list.RegisterType(this[i].T, this[i].Id);
     }
     return list;
 }
コード例 #2
0
 internal BaseScripter(CSLite_Scripter owner)
 {
     this.Owner = owner;
     this.symbol_table = new SymbolTable(this);
     this.code = new Code(this);
     this.module_list = new ModuleList(this);
     this.parser_list = new ParserList();
     this.Error_List = new ErrorList(this);
     this.Warning_List = new ErrorList(this);
     this.PPDirectiveList = new StringList(false);
     this.RegisteredTypes = new RegisteredTypeList();
     this.RegisteredNamespaces = new StringList(false);
     this.UserTypes = new Hashtable();
     this.UserNamespaces = new StringList(false);
     this.ForbiddenNamespaces = new StringList(false);
     this.UserInstances = new Hashtable();
     this.UserVariables = new Hashtable();
     this.OperatorHelpers = new Hashtable();
     this.available_types = new StringList(false);
     this.ForbiddenTypes = new StringList(false);
     this.EntryId = 0;
     this.event_dispatcher = new EventDispatcher(this, "CSLiteEventDispatcher");
     if (CSLite_Scripter.AUTO_IMPORTING_SWITCH)
     {
         this.RegisterAvailableNamespaces();
     }
 }