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

Unified Diff: runtime/lib/array.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 | « pkg/unittest/mock.dart ('k') | runtime/lib/byte_array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/array.dart
diff --git a/runtime/lib/array.dart b/runtime/lib/array.dart
index 3a2ca485d551e1d886f26de2768de933dd0e938f..540e4fdf67f2db61d9e370dd43e6642f3be7bf61 100644
--- a/runtime/lib/array.dart
+++ b/runtime/lib/array.dart
@@ -298,12 +298,12 @@ class _FixedSizeArrayIterator<E> implements Iterator<E> {
assert(array is _ObjectArray || array is _ImmutableArray);
}
- bool hasNext() {
+ bool get hasNext {
return _length > _pos;
}
E next() {
- if (!hasNext()) {
+ if (!hasNext) {
throw const NoMoreElementsException();
}
return _array[_pos++];
« no previous file with comments | « pkg/unittest/mock.dart ('k') | runtime/lib/byte_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698