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

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

Issue 25509003: It is statically OK to call methods on bottom type. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 7263b0df1198147d8369b60a8e6a070f1db520a9..cf03aeee192e8ec29756ca1c350064254718f039 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
@@ -67,6 +67,13 @@ public interface Type {
public boolean isAssignableTo(Type type);
/**
+ * Return {@code true} if this type represents the bottom type.
+ *
+ * @return {@code true} if this type represents the bottom type
+ */
+ public boolean isBottom();
+
+ /**
* Return {@code true} if this type represents the type 'Function' defined in the dart:core
* library.
*

Powered by Google App Engine
This is Rietveld 408576698