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: 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: Address comments. 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 d3025848dcfcd836252efcb938f81b52a41ecfb3..94d5c3278a309e517ecf8b38a5edbdd8b6639ffe 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