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

Unified Diff: lib/coreimpl/queue.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/coreimpl/hash_map_set.dart ('k') | lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/coreimpl/queue.dart
diff --git a/lib/coreimpl/queue.dart b/lib/coreimpl/queue.dart
index 150752a7cf2f7dd81104037aae23210bb15f0545..6a7400280e646b2063facda56f758b26a1d94f93 100644
--- a/lib/coreimpl/queue.dart
+++ b/lib/coreimpl/queue.dart
@@ -249,12 +249,12 @@ class _DoubleLinkedQueueIterator<E> implements Iterator<E> {
_currentEntry = _sentinel;
}
- bool hasNext() {
+ bool get hasNext {
return _currentEntry._next !== _sentinel;
}
E next() {
- if (!hasNext()) {
+ if (!hasNext) {
throw const NoMoreElementsException();
}
_currentEntry = _currentEntry._next;
« no previous file with comments | « lib/coreimpl/hash_map_set.dart ('k') | lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698