static ImmutableSet<ObjectType> withoutProperty(Set<ObjectType> objs, QualifiedName qname) {
   ImmutableSet.Builder<ObjectType> newObjs = ImmutableSet.builder();
   for (ObjectType obj : objs) {
     newObjs.add(obj.withProperty(qname, null));
   }
   return newObjs.build();
 }
Beispiel #2
0
 public JSType withProperty(QualifiedName qname, JSType type) {
   Preconditions.checkArgument(type != null);
   if (isUnknown()) {
     return this;
   }
   Preconditions.checkState(this.objs != null);
   return new JSType(
       this.mask, this.location, ObjectType.withProperty(this.objs, qname, type), typeVar);
 }