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

Unified Diff: frog/type.dart

Issue 8590017: Fix "is Object" to always be true in Dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: take2 after syncing Created 9 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 | « frog/gen.dart ('k') | frog/value.dart » ('j') | frog/value.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/type.dart
diff --git a/frog/type.dart b/frog/type.dart
index 02393f540f96b48d9d92b3093172814f26906dbf..a304b9016e14c7d55ff68458d9a2ab79ecdf5e36 100644
--- a/frog/type.dart
+++ b/frog/type.dart
@@ -68,6 +68,8 @@ class Type implements Named, Hashable {
// Strangely Dart treats calls on Function much like calls on var.
bool get isVarOrFunction() => isVar || isFunction;
+ bool get isVarOrObject() => isVar || isObject;
+
/** Gets the $call method for a function type. */
MethodMember getCallMethod() => null;
« no previous file with comments | « frog/gen.dart ('k') | frog/value.dart » ('j') | frog/value.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698