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

Unified Diff: sdk/lib/_collection_dev/iterable.dart

Issue 12207205: Revert "Remove deprecated mappedBy." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « samples/swarm/swarm_ui_lib/observable/observable.dart ('k') | sdk/lib/_collection_dev/list.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_collection_dev/iterable.dart
diff --git a/sdk/lib/_collection_dev/iterable.dart b/sdk/lib/_collection_dev/iterable.dart
index 676eadec18a38a84b14ed54efb7c10794aa44304..5df737881d45471f4a08799043fb9f0842a44714 100644
--- a/sdk/lib/_collection_dev/iterable.dart
+++ b/sdk/lib/_collection_dev/iterable.dart
@@ -197,6 +197,8 @@ abstract class ListIterable<E> extends Iterable<E> {
Iterable map(f(E element)) => new MappedIterable(this, f);
+ Iterable mappedBy(f(E element)) => super.mappedBy(f);
+
reduce(var initialValue, combine(var previousValue, E element)) {
var value = initialValue;
int length = this.length;
@@ -661,6 +663,8 @@ class EmptyIterable<E> extends Iterable<E> {
Iterable map(f(E element)) => const EmptyIterable();
+ Iterable mappedBy(f(E element)) => const EmptyIterable();
+
reduce(var initialValue, combine(var previousValue, E element)) {
return initialValue;
}
« no previous file with comments | « samples/swarm/swarm_ui_lib/observable/observable.dart ('k') | sdk/lib/_collection_dev/list.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698