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

Unified Diff: utils/pub/utils.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 | « utils/apidoc/mdn/extract.dart ('k') | utils/template/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/utils.dart
diff --git a/utils/pub/utils.dart b/utils/pub/utils.dart
index 4dbc589a11e3c5fe08e775cb26d2c39802504334..b3db4e060184d6309a5253172da18ee2c9f0d40e 100644
--- a/utils/pub/utils.dart
+++ b/utils/pub/utils.dart
@@ -74,9 +74,9 @@ List flatten(List nested) {
*/
only(Iterable iter) {
var iterator = iter.iterator();
- assert(iterator.hasNext());
+ assert(iterator.hasNext);
var obj = iterator.next();
- assert(!iterator.hasNext());
+ assert(!iterator.hasNext);
return obj;
}
« no previous file with comments | « utils/apidoc/mdn/extract.dart ('k') | utils/template/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698