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

Unified Diff: tools/dom/templates/immutable_list_mixin.darttemplate

Issue 12086062: Rename mappedBy to map. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: tools/dom/templates/immutable_list_mixin.darttemplate
diff --git a/tools/dom/templates/immutable_list_mixin.darttemplate b/tools/dom/templates/immutable_list_mixin.darttemplate
index 00709742ae4e60ec76d76ee6b20efbb6c494cb8f..9e7251734a4784ed5edac815acbee840b617d852 100644
--- a/tools/dom/templates/immutable_list_mixin.darttemplate
+++ b/tools/dom/templates/immutable_list_mixin.darttemplate
@@ -29,7 +29,10 @@ $endif
String join([String separator]) =>
IterableMixinWorkaround.joinList(this, separator);
- List mappedBy(f($E element)) => IterableMixinWorkaround.mappedByList(this, f);
+ Iterable map(f($E element)) =>
floitsch 2013/01/30 14:48:44 should return an iterable.
Lasse Reichstein Nielsen 2013/01/31 11:33:49 Done.
+ IterableMixinWorkaround.mappedByList(this, f);
+
+ Iterable mappedBy(f($E element)) => map(f);
Iterable<$E> where(bool f($E element)) =>
IterableMixinWorkaround.where(this, f);
@@ -43,13 +46,13 @@ $endif
bool get isEmpty => this.length == 0;
- List<$E> take(int n) => IterableMixinWorkaround.takeList(this, n);
+ Iterable<$E> take(int n) => IterableMixinWorkaround.takeList(this, n);
Iterable<$E> takeWhile(bool test($E value)) {
return IterableMixinWorkaround.takeWhile(this, test);
}
- List<$E> skip(int n) => IterableMixinWorkaround.skipList(this, n);
+ Iterable<$E> skip(int n) => IterableMixinWorkaround.skipList(this, n);
Iterable<$E> skipWhile(bool test($E value)) {
return IterableMixinWorkaround.skipWhile(this, test);

Powered by Google App Engine
This is Rietveld 408576698