예제 #1
0
 public ClassType(string name, State parent, string path, ClassType superClass)
     : this(name, parent, path)
 {
     if (superClass != null)
     {
         addSuper(superClass);
     }
 }
예제 #2
0
파일: ModuleType.cs 프로젝트: yuhan0/pytocs
 public ModuleType(string name, string file, string qName, State parent)
 {
     this.name  = name;
     this.file  = file; // null for builtin modules
     this.qname = qName;
     this.Table = new State(parent, State.StateType.MODULE);
     Table.Path = qname;
     Table.Type = this;
 }
예제 #3
0
 public ClassType(string name, State parent, string path)
 {
     this.name       = name;
     this.Table      = new State(parent, State.StateType.CLASS);
     this.Table.Type = this;
     if (parent != null)
     {
         Table.Path = path;
     }
     else
     {
         Table.Path = name;
     }
 }