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