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

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

Issue 10979063: Removing ElementList. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Syncing. Created 8 years, 3 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/html/templates/html/impl/impl_NodeList.darttemplate
diff --git a/lib/html/templates/html/impl/impl_NodeList.darttemplate b/lib/html/templates/html/impl/impl_NodeList.darttemplate
index 6d67b1deecbcc88b2fe0b311440180602b700733..bd5749e7043a0098efd29702da30f54d27681e6a 100644
--- a/lib/html/templates/html/impl/impl_NodeList.darttemplate
+++ b/lib/html/templates/html/impl/impl_NodeList.darttemplate
@@ -72,10 +72,10 @@ class _ListWrapper<E> implements List<E> {
class _NodeListWrapper extends _ListWrapper<Node> implements NodeList {
_NodeListWrapper(List list) : super(list);
- NodeList filter(bool f(Node element)) =>
+ List<Node> filter(bool f(Node element)) =>
new _NodeListWrapper(_list.filter(f));
- NodeList getRange(int start, int rangeLength) =>
+ List<Node> getRange(int start, int rangeLength) =>
new _NodeListWrapper(_list.getRange(start, rangeLength));
}
@@ -106,7 +106,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
void addAll(Collection<_NodeImpl> collection) {
for (_NodeImpl node in collection) {
- _parent.$dom_appendChild(node);
+ _parent.$dom_appendChild(node);
}
}
@@ -164,7 +164,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
void insertRange(int start, int rangeLength, [Node initialValue]) {
throw new UnsupportedOperationException("Cannot insertRange on immutable List.");
}
- NodeList getRange(int start, int rangeLength) =>
+ List<Node> getRange(int start, int rangeLength) =>
new _NodeListWrapper(_Lists.getRange(this, start, rangeLength, <Node>[]));
// -- end List<Node> mixins.
« no previous file with comments | « lib/html/templates/html/impl/impl_Element.darttemplate ('k') | lib/html/templates/html/impl/impl_SVGElement.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698