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

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

Issue 47923014: Issue 14364. Strengthen isDirectSupertypeOf() to check type parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for review comments. Created 7 years, 2 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/type/Type.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/type/Type.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/type/Type.java
index cf03aeee192e8ec29756ca1c350064254718f039..543911f1a93d988a2bf1b4f1c63b1441f580d1e7 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/type/Type.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/type/Type.java
@@ -98,6 +98,15 @@ public interface Type {
public boolean isMoreSpecificThan(Type type);
/**
+ * Return {@code true} if this type is more specific than the given type.
+ *
+ * @param type the type being compared with this type
+ * @param withDynamic {@code true} if "dynamic" should be considered as a subtype of any type
+ * @return {@code true} if this type is more specific than the given type
+ */
+ public boolean isMoreSpecificThan(Type type, boolean withDynamic);
+
+ /**
* Return {@code true} if this type represents the type 'Object'.
*
* @return {@code true} if this type represents the type 'Object'

Powered by Google App Engine
This is Rietveld 408576698