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

Unified Diff: runtime/lib/growable_array.dart

Issue 18837002: Move toString() to collection classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments. Created 7 years, 5 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: runtime/lib/growable_array.dart
diff --git a/runtime/lib/growable_array.dart b/runtime/lib/growable_array.dart
index d58492e9a7ad69c608550593581e242bc25588b3..f1b2c449061f1a4cab1b30fc86fb9a0e35e5d2a1 100644
--- a/runtime/lib/growable_array.dart
+++ b/runtime/lib/growable_array.dart
@@ -336,10 +336,8 @@ class _GrowableObjectArray<T> implements List<T> {
IterableMixinWorkaround.sortList(this, compare);
}
- String toString() {
- return ToString.iterableToString(this);
- }
-
+ String toString() => IterableMixinWorkaround.toStringList(this);
floitsch 2013/07/08 16:12:34 VM devs prefer not to use "=>".
zarah 2013/07/08 16:57:46 Done.
+
Iterator<T> get iterator {
return new ListIterator<T>(this);
}

Powered by Google App Engine
This is Rietveld 408576698