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

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: 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
Index: lib/coreimpl/hash_map_set.dart
diff --git a/lib/coreimpl/hash_map_set.dart b/lib/coreimpl/hash_map_set.dart
index cb723a553eb2b33d08072bed7edc232d70cc549e..6253aaec936d4d3605339186822edded3ffa0ec4 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];

Powered by Google App Engine
This is Rietveld 408576698