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

Unified Diff: lib/core/collection.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/compiler/implementation/util/link_implementation.dart ('k') | lib/core/iterator.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/collection.dart
diff --git a/lib/core/collection.dart b/lib/core/collection.dart
index 22381ab1e051e2e7a9963e7dea6b45212c557ec9..35265256572e24f661162c0f32e33004ae20170e 100644
--- a/lib/core/collection.dart
+++ b/lib/core/collection.dart
@@ -95,5 +95,5 @@ abstract class Collection<E> extends Iterable<E> {
/**
* Returns true if there is no element in this collection.
*/
- bool isEmpty() => !iterator().hasNext();
+ bool isEmpty() => !iterator().hasNext;
}
« no previous file with comments | « lib/compiler/implementation/util/link_implementation.dart ('k') | lib/core/iterator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698