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

Unified Diff: compiler/java/com/google/dart/compiler/type/InterfaceType.java

Issue 11348139: Issue 6776. Infer sub-type member only if there is only one candidate. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | compiler/java/com/google/dart/compiler/type/InterfaceTypeImplementation.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/type/InterfaceType.java
diff --git a/compiler/java/com/google/dart/compiler/type/InterfaceType.java b/compiler/java/com/google/dart/compiler/type/InterfaceType.java
index 7a746c13108b56197fdeda4890e1e9b4b27ad244..99b7c9df9ee5549bb28b1770068e9ddd4ba3825a 100644
--- a/compiler/java/com/google/dart/compiler/type/InterfaceType.java
+++ b/compiler/java/com/google/dart/compiler/type/InterfaceType.java
@@ -35,6 +35,10 @@ public interface InterfaceType extends Type {
void registerSubClass(ClassElement subClass);
void unregisterSubClass(ClassElement subClass);
+ /**
+ * @return the unique {@link Member} with given name, defined in one of the subtypes. May be
+ * <code>null</code> if not found or not unique.
+ */
Member lookupSubTypeMember(String name);
interface Member {
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/type/InterfaceTypeImplementation.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698