commit | 927392b2b30f10bac69f9423c2545e7a970f6a87 | [log] [tgz] |
---|---|---|
author | Brian Wilkerson <brianwilkerson@google.com> | Thu Sep 13 01:17:08 2018 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Thu Sep 13 01:17:08 2018 +0000 |
tree | 06905fe7deaf0d8d7b12c4e964da2334de97eb1c | |
parent | 4ee66c97081d5db1ac0f97b9c789e8f81d83a53d [diff] |
Fix ClassElement.allSupertypes to include superclass constraints as documented Change-Id: I26deac7467a640714c94a53a9da0aad81a92780a Reviewed-on: https://dart-review.googlesource.com/74675 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart index af11f5a..48bbef6 100644 --- a/pkg/analyzer/lib/src/dart/element/element.dart +++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -1315,6 +1315,9 @@ if (supertype != null) { typesToVisit.add(supertype); } + for (InterfaceType type in currentType.superclassConstraints) { + typesToVisit.add(type); + } for (InterfaceType type in currentType.interfaces) { typesToVisit.add(type); }