bridgedProvides method
ghissues77: whether a bridged superclass or bridged mixin on this
class's chain provides the member name (with the bridge's registered
supertypes): package collection's
EmptyUnmodifiableSet extends IterableBase<E> ... implements UnmodifiableSetView<E>
gets map and the rest of the interface from IterableBase.
Implementation
bool bridgedProvides(String name, InterpreterVisitor? visitor) {
for (InterpretedClass? c = this; c != null; c = c.superclass) {
for (final bridged in [?c.bridgedSuperclass, ...c.bridgedMixins]) {
if (bridged.findReachableMethodAdapter(name, visitor) != null ||
bridged.findReachableGetterAdapter(name, visitor) != null ||
bridged.findReachableSetterAdapter(name, visitor) != null) {
return true;
}
}
}
return false;
}