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

Unified Diff: samples/swarm/DataSource.dart

Issue 11956039: Revert "Create IterableMixinWorkaround and move most of the Collections methods there." (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
« no previous file with comments | « runtime/lib/growable_array.dart ('k') | sdk/lib/_internal/compiler/implementation/lib/js_array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swarm/DataSource.dart
diff --git a/samples/swarm/DataSource.dart b/samples/swarm/DataSource.dart
index 6bda0f598c13d8965fb209706c49450854fb7f17..e471567e19311fc8613c2191b40123bbb781dc75 100644
--- a/samples/swarm/DataSource.dart
+++ b/samples/swarm/DataSource.dart
@@ -90,9 +90,9 @@ class Sections extends Collection<Section> {
List<Section> get sections => _sections;
// Collection<Section> methods:
- bool every(bool f(Section element)) => IterableMixinWorkaround.every(this, f);
- bool any(bool f(Section element)) => IterableMixinWorkaround.any(this, f);
- void forEach(void f(Section element)) { IterableMixinWorkaround.forEach(this, f); }
+ bool every(bool f(Section element)) => Collections.every(this, f);
+ bool any(bool f(Section element)) => Collections.any(this, f);
+ void forEach(void f(Section element)) { Collections.forEach(this, f); }
// TODO(jmesserly): this should be a property
bool get isEmpty => length == 0;
« no previous file with comments | « runtime/lib/growable_array.dart ('k') | sdk/lib/_internal/compiler/implementation/lib/js_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698