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

Unified Diff: sdk/lib/core/collection.dart

Issue 11410086: Use iterator, moveNext(), current. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Created 8 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
Index: sdk/lib/core/collection.dart
diff --git a/sdk/lib/core/collection.dart b/sdk/lib/core/collection.dart
index 51ffc39761c0ec4c42702eb6f6c8db62ef0abe26..41ce2868919141f6856e2e879fa78dda0881a1cc 100644
--- a/sdk/lib/core/collection.dart
+++ b/sdk/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 get isEmpty => !iterator().hasNext;
+ bool get isEmpty => !iterator.moveNext();
}

Powered by Google App Engine
This is Rietveld 408576698