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

Unified Diff: lib/utf/utf16.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/html/src/_ListIterators.dart ('k') | lib/utf/utf32.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/utf/utf16.dart
diff --git a/lib/utf/utf16.dart b/lib/utf/utf16.dart
index 29aed2e919b42081af3511e2d3179da1f8922800..7018ba4a1ced60b9344ce51e5e7e82d9d7d8a391 100644
--- a/lib/utf/utf16.dart
+++ b/lib/utf/utf16.dart
@@ -264,7 +264,7 @@ class Utf16BytesToCodeUnitsDecoder implements _ListRangeIterator {
List<int> decodeRest() {
List<int> codeunits = new List<int>(remaining);
int i = 0;
- while (hasNext()) {
+ while (hasNext) {
codeunits[i++] = next();
}
if (i == codeunits.length) {
@@ -276,7 +276,7 @@ class Utf16BytesToCodeUnitsDecoder implements _ListRangeIterator {
}
}
- bool hasNext() => utf16EncodedBytesIterator.hasNext();
+ bool get hasNext => utf16EncodedBytesIterator.hasNext;
int next() {
if (utf16EncodedBytesIterator.remaining < 2) {
« no previous file with comments | « lib/html/src/_ListIterators.dart ('k') | lib/utf/utf32.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698