/** * Is the most-refined member with the given name, searching this type first, taking aliases into * account, followed by supertypes, ambiguous, because we could not construct a principal * instantiation for an intersection? TODO: this information should really be encoded into the * return value of getMember() but I'm leaving it like this for now to avoid breaking the backends */ public boolean isMemberAmbiguous( String name, Unit unit, List<ProducedType> signature, boolean variadic) { // TODO: does not handle aliased members of supertypes Declaration d = unit.getImportedDeclaration(this, name, signature, variadic); if (d == null) { return getMemberInternal(name, signature, variadic).isAmbiguous(); } else { return false; } }