Skip to content

Commit

Permalink
Fix missing interface's fields and methods in builder
Browse files Browse the repository at this point in the history
  • Loading branch information
markgravity committed May 5, 2021
1 parent e620734 commit 3e6b43b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/src/builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,11 @@ class _MockLibraryInfo {
yield* fieldOverrides(mixin, overriddenFields);
}
}
if (type.interfaces != null) {
for (var interface in type.interfaces) {
yield* fieldOverrides(interface, overriddenFields);
}
}
var superclass = type.superclass;
if (superclass != null && !superclass.isDartCoreObject) {
yield* fieldOverrides(superclass, overriddenFields);
Expand Down Expand Up @@ -802,6 +807,11 @@ class _MockLibraryInfo {
yield* methodOverrides(mixin, overriddenMethods);
}
}
if (type.interfaces != null) {
for (var interface in type.interfaces) {
yield* methodOverrides(interface, overriddenMethods);
}
}
var superclass = type.superclass;
if (superclass != null && !superclass.isDartCoreObject) {
yield* methodOverrides(superclass, overriddenMethods);
Expand Down

0 comments on commit 3e6b43b

Please sign in to comment.