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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/InterfaceTypeImpl.java

Issue 14773018: Report MIXIN_INHERITS_FROM_NOT_OBJECT (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweaks for review comments Created 7 years, 7 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
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/InterfaceTypeImpl.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/InterfaceTypeImpl.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/InterfaceTypeImpl.java
index 44ace0ab7c58f99e4ae90cbf4de64f8a5730c95b..4e1110c2ddeb3479c064adba182d864744cd1542 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/InterfaceTypeImpl.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/InterfaceTypeImpl.java
@@ -450,6 +450,11 @@ public class InterfaceTypeImpl extends TypeImpl implements InterfaceType {
}
@Override
+ public boolean isObject() {
+ return getElement().getSupertype() == null;
+ }
+
+ @Override
public boolean isSubtypeOf(Type type) {
//
// T is a subtype of S, written T <: S, iff [bottom/dynamic]T << S

Powered by Google App Engine
This is Rietveld 408576698