示例#1
0
 private static bool IsArray(TypeSet ts)
 {
     if (ts == null)
         return false;
     if (ts.numTypes != 1)
         return false;
     TypeUnit tu = ts[0];
     if (tu.kind == TypeUnit.Kind.Array)
         return true;
     if (tu.kind == TypeUnit.Kind.Reference && tu.inner.kind == TypeUnit.Kind.Array)
         return true;
     return false;
 }
示例#2
0
 public void addTypes(TypeSet other)
 {
     for (int i = 0; i < other.numTypes; i++)
         addType(other[i]);
 }
示例#3
0
文件: Nodes.cs 项目: z4cH3r/Spedit
 public void addTypes(TypeSet ts)
 {
     ensureTypeSet().addTypes(ts);
 }
示例#4
0
文件: Nodes.cs 项目: not1ce111/Spedit
 public void addTypes(TypeSet ts)
 {
     ensureTypeSet().addTypes(ts);
 }
示例#5
0
文件: Nodes.cs 项目: not1ce111/Spedit
 private TypeSet ensureTypeSet()
 {
     if (typeSet_ == null)
         typeSet_ = new TypeSet();
     return typeSet_;
 }