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

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

Issue 11293058: Issue 5157. Introduce TypeQuality. Try to find member in subclasses. (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
Index: compiler/java/com/google/dart/compiler/type/InterfaceTypeUnion.java
diff --git a/compiler/java/com/google/dart/compiler/type/InterfaceTypeUnion.java b/compiler/java/com/google/dart/compiler/type/InterfaceTypeUnion.java
index 4fcf9a24a5390088c11bf7c51b970cdc2b3d9ac3..c3eca3b606ca9b66909949ff3670f4ad4321ae7a 100644
--- a/compiler/java/com/google/dart/compiler/type/InterfaceTypeUnion.java
+++ b/compiler/java/com/google/dart/compiler/type/InterfaceTypeUnion.java
@@ -51,8 +51,8 @@ class InterfaceTypeUnion implements InterfaceType {
}
@Override
- public boolean isInferred() {
- return false;
+ public TypeQuality getQuality() {
+ return TypeQuality.EXACT;
}
@Override
@@ -95,4 +95,17 @@ class InterfaceTypeUnion implements InterfaceType {
}
return null;
}
+
+ @Override
+ public void registerSubClass(ClassElement subClass) {
+ }
+
+ @Override
+ public void unregisterSubClass(ClassElement subClass) {
+ }
+
+ @Override
+ public Member lookupSubTypeMember(String name) {
+ return null;
+ }
}

Powered by Google App Engine
This is Rietveld 408576698