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..58cf40c713527f03ed704527d0421558405510f4 100644 |
--- a/tools/dom/templates/immutable_list_mixin.darttemplate |
+++ b/tools/dom/templates/immutable_list_mixin.darttemplate |
@@ -29,7 +29,11 @@ $endif |
String join([String separator]) => |
IterableMixinWorkaround.joinList(this, separator); |
- List mappedBy(f($E element)) => IterableMixinWorkaround.mappedByList(this, f); |
+ Iterable map(f($E element)) => |
+ IterableMixinWorkaround.map(this, f); |
+ |
+ List mappedBy(f($E element)) => |
+ IterableMixinWorkaround.mappedByList(this, f); |
Iterable<$E> where(bool f($E element)) => |
IterableMixinWorkaround.where(this, f); |
@@ -43,13 +47,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); |