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

Unified Diff: lib/utf/utf32.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/utf/utf16.dart ('k') | lib/utf/utf8.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/utf/utf32.dart
diff --git a/lib/utf/utf32.dart b/lib/utf/utf32.dart
index 31c1bc8c17344d81f620a1e3585f7ca05561641f..9cbfd7aa982e14aabd5262ad3c3c6ac2257b1236 100644
--- a/lib/utf/utf32.dart
+++ b/lib/utf/utf32.dart
@@ -219,13 +219,13 @@ class Utf32BytesDecoder implements _ListRangeIterator {
List<int> decodeRest() {
List<int> codeunits = new List<int>(remaining);
int i = 0;
- while (hasNext()) {
+ while (hasNext) {
codeunits[i++] = next();
}
return codeunits;
}
- bool hasNext() => utf32EncodedBytesIterator.hasNext();
+ bool get hasNext => utf32EncodedBytesIterator.hasNext;
int next() {
if (utf32EncodedBytesIterator.remaining < 4) {
« no previous file with comments | « lib/utf/utf16.dart ('k') | lib/utf/utf8.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698