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