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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/js_array.dart

Issue 12090093: Reapply "Rename mappedBy to map." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed bug in previous commit. 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: sdk/lib/_internal/compiler/implementation/lib/js_array.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/js_array.dart b/sdk/lib/_internal/compiler/implementation/lib/js_array.dart
index 4bd608853c589ced5b44801fd8c8cb9e8159c5af..34915910c2451b96fb45186241cf5d0359f56947 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/js_array.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/js_array.dart
@@ -84,6 +84,10 @@ class JSArray<E> implements List<E> {
return IterableMixinWorkaround.forEach(this, f);
}
+ Iterable map(f(E element)) {
+ return IterableMixinWorkaround.map(this, f);
+ }
+
List mappedBy(f(E element)) {
return IterableMixinWorkaround.mappedByList(this, f);
}
@@ -97,7 +101,7 @@ class JSArray<E> implements List<E> {
return JS('String', "#.join(#)", list, separator);
}
- List<E> take(int n) {
+ Iterable<E> take(int n) {
return IterableMixinWorkaround.takeList(this, n);
}
@@ -105,7 +109,7 @@ class JSArray<E> implements List<E> {
return IterableMixinWorkaround.takeWhile(this, test);
}
- List<E> skip(int n) {
+ Iterable<E> skip(int n) {
return IterableMixinWorkaround.skipList(this, n);
}

Powered by Google App Engine
This is Rietveld 408576698