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

Unified Diff: tools/dom/templates/html/impl/impl_Element.darttemplate

Issue 12086062: Rename mappedBy to map. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Undo change to test-script. Created 7 years, 11 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 | « tools/dom/src/CssClassSet.dart ('k') | tools/dom/templates/html/impl/impl_Node.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/impl/impl_Element.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_Element.darttemplate b/tools/dom/templates/html/impl/impl_Element.darttemplate
index 752c93f479f557f2798e39357ca98b4c2736471e..0b66ddc59a0ebc9628530114ae2aa1fa6ab6f73f 100644
--- a/tools/dom/templates/html/impl/impl_Element.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Element.darttemplate
@@ -61,7 +61,11 @@ class _ChildrenElementList implements List {
return IterableMixinWorkaround.joinList(this, separator);
}
- List mappedBy(f(Element element)) {
+ Iterable map(f(Element element)) {
+ return IterableMixinWorkaround.map(this, f);
+ }
+
+ List mappedBy(f(ELement element)) {
return IterableMixinWorkaround.mappedByList(this, f);
}
@@ -73,7 +77,7 @@ class _ChildrenElementList implements List {
return _element.$dom_firstElementChild == null;
}
- List<Element> take(int n) {
+ Iterable<Element> take(int n) {
return IterableMixinWorkaround.takeList(this, n);
}
@@ -81,7 +85,7 @@ class _ChildrenElementList implements List {
return IterableMixinWorkaround.takeWhile(this, test);
}
- List<Element> skip(int n) {
+ Iterable<Element> skip(int n) {
return IterableMixinWorkaround.skipList(this, n);
}
@@ -274,7 +278,11 @@ class _FrozenElementList implements List {
return IterableMixinWorkaround.joinList(this, separator);
}
- List mappedBy(f(Element element)) {
+ Iterable map(f(Element element)) {
+ return IterableMixinWorkaround.map(this, f);
+ }
+
+ List mappedBy(f(ELement element)) {
return IterableMixinWorkaround.mappedByList(this, f);
}
@@ -303,7 +311,7 @@ class _FrozenElementList implements List {
List<Element> toList() => new List<Element>.from(this);
Set<Element> toSet() => new Set<Element>.from(this);
- List<Element> take(int n) {
+ Iterable<Element> take(int n) {
return IterableMixinWorkaround.takeList(this, n);
}
@@ -311,7 +319,7 @@ class _FrozenElementList implements List {
return IterableMixinWorkaround.takeWhile(this, test);
}
- List<Element> skip(int n) {
+ Iterable<Element> skip(int n) {
return IterableMixinWorkaround.skipList(this, n);
}
« no previous file with comments | « tools/dom/src/CssClassSet.dart ('k') | tools/dom/templates/html/impl/impl_Node.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698