Ejemplo n.º 1
0
 public JSType getDeclaredProp(QualifiedName qname) {
   if (isUnknown()) {
     return UNKNOWN;
   }
   Preconditions.checkState(objs != null, "Cannot get declared prop %s of type %s", qname, this);
   JSType ptype = BOTTOM;
   for (ObjectType o : objs) {
     JSType declType = o.getDeclaredProp(qname);
     if (declType != null) {
       ptype = join(ptype, declType);
     }
   }
   return ptype.isBottom() ? null : ptype;
 }