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