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

Unified Diff: lib/coreimpl/hash_map_set.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/collections.dart ('k') | lib/coreimpl/queue.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/coreimpl/hash_map_set.dart
diff --git a/lib/coreimpl/hash_map_set.dart b/lib/coreimpl/hash_map_set.dart
index daa5d064dbf0bd29667a8dad6ad552ac23118b4e..897fcc66100cc9e6ec5818269381b146a46cd72c 100644
--- a/lib/coreimpl/hash_map_set.dart
+++ b/lib/coreimpl/hash_map_set.dart
@@ -406,7 +406,7 @@ class HashSetIterator<E> implements Iterator<E> {
_advance();
}
- bool hasNext() {
+ bool get hasNext {
if (_nextValidIndex >= _entries.length) return false;
if (_entries[_nextValidIndex] === HashMapImplementation._DELETED_KEY) {
// This happens in case the set was modified in the meantime.
@@ -418,7 +418,7 @@ class HashSetIterator<E> implements Iterator<E> {
}
E next() {
- if (!hasNext()) {
+ if (!hasNext) {
throw const NoMoreElementsException();
}
E res = _entries[_nextValidIndex];
« no previous file with comments | « lib/coreimpl/collections.dart ('k') | lib/coreimpl/queue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698