bridgedNoSuchMethodSource method
ghissues46: the bridged class (a superclass or a mixin on the chain)
whose noSuchMethod an instance of this class answers a missing member
with when no interpreted class on the chain declares one.
Implementation
BridgedClass? bridgedNoSuchMethodSource() {
for (InterpretedClass? c = this; c != null; c = c.superclass) {
for (final mixin in c.bridgedMixins.reversed) {
if (mixin.methods.containsKey('noSuchMethod')) return mixin;
}
final bridgedSuper = c.bridgedSuperclass;
if (bridgedSuper != null &&
bridgedSuper.methods.containsKey('noSuchMethod')) {
return bridgedSuper;
}
}
return null;
}