Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(484)

Unified Diff: pkg/kernel/lib/class_hierarchy.dart

Issue 3003913002: Expose getInterfaceMembers method through ClassHierarchy. (Closed)
Patch Set: Address code review comments Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/kernel/lib/src/incremental_class_hierarchy.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/class_hierarchy.dart
diff --git a/pkg/kernel/lib/class_hierarchy.dart b/pkg/kernel/lib/class_hierarchy.dart
index 1c1554e36c6febc7383a64cbdbfe71770c212247..15f8d7ec0104ba0b4bbf59cf3465fa0b5ce67149 100644
--- a/pkg/kernel/lib/class_hierarchy.dart
+++ b/pkg/kernel/lib/class_hierarchy.dart
@@ -88,6 +88,16 @@ abstract class ClassHierarchy {
/// member from the first declared supertype is returned.
Member getInterfaceMember(Class class_, Name name, {bool setter: false});
+ /// Returns the list of members denoting the interface for [class_], which
+ /// may include abstract members.
+ ///
+ /// The list may contain multiple members with a given name. This happens
+ /// when members are inherited through different supertypes and not overridden
+ /// in the class.
+ ///
+ /// Also see [getInterfaceMember].
+ List<Member> getInterfaceMembers(Class class_, {bool setters: false});
+
/// Invokes [callback] for every member declared in or inherited by [class_]
/// that overrides or implements a member in a supertype of [class_]
/// (or in rare cases, overrides a member declared in [class_]).
@@ -385,14 +395,7 @@ class ClosedWorldClassHierarchy implements ClassHierarchy {
return _findMemberByName(list, name);
}
- /// Returns the list of members denoting the interface for [class_], which
- /// may include abstract members.
- ///
- /// The list may contain multiple members with a given name. This happens
- /// when members are inherited through different supertypes and not overridden
- /// in the class.
- ///
- /// Also see [getInterfaceMember].
+ @override
List<Member> getInterfaceMembers(Class class_, {bool setters: false}) {
return _buildInterfaceMembers(class_, _infoFor[class_], setters: setters);
}
« no previous file with comments | « no previous file | pkg/kernel/lib/src/incremental_class_hierarchy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698