Example #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;
 }
Example #2
0
 public void addTypes(TypeSet other)
 {
     for (int i = 0; i < other.numTypes; i++)
         addType(other[i]);
 }
Example #3
0
 public void addTypes(TypeSet ts)
 {
     ensureTypeSet().addTypes(ts);
 }
Example #4
0
 public void addTypes(TypeSet ts)
 {
     ensureTypeSet().addTypes(ts);
 }
Example #5
0
 private TypeSet ensureTypeSet()
 {
     if (typeSet_ == null)
         typeSet_ = new TypeSet();
     return typeSet_;
 }