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

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

Issue 18837002: Move toString() to collection classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload 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 7bc65cab6fe5a63e7da2e3ae1881d748b6025f0d..0e1bb8ac9c2e5a69634d5a97a1d1cfe61ce23a95 100644
--- a/sdk/lib/collection/queue.dart
+++ b/sdk/lib/collection/queue.dart
@@ -301,9 +301,8 @@ class DoubleLinkedQueue<E> extends IterableBase<E> implements Queue<E> {
return new _DoubleLinkedQueueIterator<E>(_sentinel);
}
- String toString() {
- return ToString.iterableToString(this);
- }
+ // TODO(zarah) Remove this, and let it be inherited by IterableBase
+ String toString() => IterableMixinWorkaround.toStringIterable(this, '{', '}');
}
class _DoubleLinkedQueueIterator<E> implements Iterator<E> {
@@ -530,9 +529,8 @@ class ListQueue<E> extends IterableBase<E> implements Queue<E> {
}
}
- String toString() {
- return ToString.iterableToString(this);
- }
+ // TODO(zarah) Remove this, and let it be inherited by IterableBase
+ String toString() => IterableMixinWorkaround.toStringIterable(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