Index: pkg/kernel/lib/src/incremental_class_hierarchy.dart |
diff --git a/pkg/kernel/lib/src/incremental_class_hierarchy.dart b/pkg/kernel/lib/src/incremental_class_hierarchy.dart |
index b99956ee2a473d33c7955e4b90bb4e2dd2b96650..dc202c7b7d83c29dadf2fe9dc67f0e2cef39982b 100644 |
--- a/pkg/kernel/lib/src/incremental_class_hierarchy.dart |
+++ b/pkg/kernel/lib/src/incremental_class_hierarchy.dart |
@@ -104,20 +104,18 @@ class IncrementalClassHierarchy implements ClassHierarchy { |
_reportOverrides(info.declaredSetters, superSetters, callback, |
isSetter: true, onlyAbstract: true); |
} |
- if (!node.isAbstract) { |
- // If a non-abstract class declares an abstract method M whose |
- // implementation M' is inherited from the superclass, then the inherited |
- // method M' overrides the declared method M. |
- // This flies in the face of conventional override logic, but is necessary |
- // because an instance of the class will contain the method M' which can |
- // be invoked through the interface of M. |
- // Note that [_reportOverrides] does not report self-overrides, so in |
- // most cases these calls will just scan both lists and report nothing. |
- _reportOverrides(info.implementedGettersAndCalls, |
- info.declaredGettersAndCalls, callback); |
- _reportOverrides(info.implementedSetters, info.declaredSetters, callback, |
- isSetter: true); |
- } |
+ // If a class declares an abstract method M whose |
+ // implementation M' is inherited from the superclass, then the inherited |
+ // method M' overrides the declared method M. |
+ // This flies in the face of conventional override logic, but is necessary |
+ // because an instance of the class will contain the method M' which can |
+ // be invoked through the interface of M. |
+ // Note that [_reportOverrides] does not report self-overrides, so in |
+ // most cases these calls will just scan both lists and report nothing. |
+ _reportOverrides(info.implementedGettersAndCalls, |
+ info.declaredGettersAndCalls, callback); |
+ _reportOverrides(info.implementedSetters, info.declaredSetters, callback, |
+ isSetter: true); |
} |
@override |