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

Unified Diff: lib/compiler/implementation/scanner/token.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/compiler/implementation/scanner/token.dart
diff --git a/lib/compiler/implementation/scanner/token.dart b/lib/compiler/implementation/scanner/token.dart
index 99055fed481cbc723d4e56360f793c919bc0e659..69b6ccf0206f9ebf2d08721980b7266f8bb19e06 100644
--- a/lib/compiler/implementation/scanner/token.dart
+++ b/lib/compiler/implementation/scanner/token.dart
@@ -243,7 +243,7 @@ class StringCodeIterator implements Iterator<int> {
assert(end <= string.length);
}
- bool hasNext() => index < end;
+ bool get hasNext => index < end;
int next() => string.charCodeAt(index++);
}

Powered by Google App Engine
This is Rietveld 408576698