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

Unified Diff: sdk/lib/collection/queue.dart

Issue 18282008: Revert "Move toString() to collection classes." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « sdk/lib/collection/maps.dart ('k') | tests/corelib/list_to_string2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/collection/queue.dart
diff --git a/sdk/lib/collection/queue.dart b/sdk/lib/collection/queue.dart
index 0e1bb8ac9c2e5a69634d5a97a1d1cfe61ce23a95..7bc65cab6fe5a63e7da2e3ae1881d748b6025f0d 100644
--- a/sdk/lib/collection/queue.dart
+++ b/sdk/lib/collection/queue.dart
@@ -301,8 +301,9 @@ class DoubleLinkedQueue<E> extends IterableBase<E> implements Queue<E> {
return new _DoubleLinkedQueueIterator<E>(_sentinel);
}
- // TODO(zarah) Remove this, and let it be inherited by IterableBase
- String toString() => IterableMixinWorkaround.toStringIterable(this, '{', '}');
+ String toString() {
+ return ToString.iterableToString(this);
+ }
}
class _DoubleLinkedQueueIterator<E> implements Iterator<E> {
@@ -529,8 +530,9 @@ class ListQueue<E> extends IterableBase<E> implements Queue<E> {
}
}
- // TODO(zarah) Remove this, and let it be inherited by IterableBase
- String toString() => IterableMixinWorkaround.toStringIterable(this, '{', '}');
+ String toString() {
+ return ToString.iterableToString(this);
+ }
// Queue interface.
« no previous file with comments | « sdk/lib/collection/maps.dart ('k') | tests/corelib/list_to_string2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698