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

Unified Diff: sdk/lib/html/templates/html/impl/impl_NodeList.darttemplate

Issue 11410086: Use iterator, moveNext(), current. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Created 8 years, 1 month 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: sdk/lib/html/templates/html/impl/impl_NodeList.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_NodeList.darttemplate b/sdk/lib/html/templates/html/impl/impl_NodeList.darttemplate
index 95bbddcec52a3fe1bc6112c8384c5e7a77b998ee..8466243f6206d649ef2af1cbdd2a6b08bd46d1fe 100644
--- a/sdk/lib/html/templates/html/impl/impl_NodeList.darttemplate
+++ b/sdk/lib/html/templates/html/impl/impl_NodeList.darttemplate
@@ -11,7 +11,7 @@ class _ListWrapper<E> implements List<E> {
_ListWrapper(List this._list);
- Iterator<E> iterator() => _list.iterator();
+ Iterator<E> get iterator => _list.iterator;
bool contains(E element) => _list.contains(element);
@@ -91,7 +91,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
// From Iterable<Node>:
- Iterator<Node> iterator() {
+ Iterator<Node> get iterator {
// Note: NodeLists are not fixed size. And most probably length shouldn't
// be cached in both iterator _and_ forEach method. For now caching it
// for consistency.

Powered by Google App Engine
This is Rietveld 408576698