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

Unified Diff: lib/coreimpl/collections.dart

Issue 11230011: Make hasNext a getter instead of a method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove unused variable. Created 8 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
« no previous file with comments | « lib/core/sequences.dart ('k') | lib/coreimpl/hash_map_set.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/coreimpl/collections.dart
diff --git a/lib/coreimpl/collections.dart b/lib/coreimpl/collections.dart
index 55e76fadcf8719007af1ddd26dbdaee5068818bf..873e9cdf121d104766d21507006308b07f769d11 100644
--- a/lib/coreimpl/collections.dart
+++ b/lib/coreimpl/collections.dart
@@ -59,7 +59,7 @@ class Collections {
}
static bool isEmpty(Iterable iterable) {
- return !iterable.iterator().hasNext();
+ return !iterable.iterator().hasNext;
}
// TODO(jjb): visiting list should be an identityHashSet when it exists
« no previous file with comments | « lib/core/sequences.dart ('k') | lib/coreimpl/hash_map_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698