Index: pkg/analyzer/lib/src/dart/element/element.dart |
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart |
index 2379185a61a6ce8e5960b94b2c6268af82f45187..fdd058496ac117636aeaeadaae790fe8e6cc601a 100644 |
--- a/pkg/analyzer/lib/src/dart/element/element.dart |
+++ b/pkg/analyzer/lib/src/dart/element/element.dart |
@@ -1154,14 +1154,11 @@ class ClassElementImpl extends AbstractClassElementImpl |
if (supertype != null) { |
typesToVisit.add(supertype); |
} |
- for (InterfaceType type in currentElement.interfaces) { |
+ for (InterfaceType type in currentType.interfaces) { |
typesToVisit.add(type); |
} |
- for (InterfaceType type in currentElement.mixins) { |
- ClassElement element = type.element; |
- if (!visitedClasses.contains(element)) { |
- supertypes.add(type); |
- } |
+ for (InterfaceType type in currentType.mixins) { |
+ typesToVisit.add(type); |
} |
} |
} |