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

Unified Diff: sdk/lib/collection/linked_list.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/hash_set.dart ('k') | sdk/lib/collection/list.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/collection/linked_list.dart
diff --git a/sdk/lib/collection/linked_list.dart b/sdk/lib/collection/linked_list.dart
index a9c898969429e27cbe854b7cf577c6acfb06c7bc..502341ce1f1a3ae919fb02e4232e0e3f883f4afd 100644
--- a/sdk/lib/collection/linked_list.dart
+++ b/sdk/lib/collection/linked_list.dart
@@ -14,6 +14,7 @@ part of dart.collection;
class LinkedList<E extends LinkedListEntry<E>>
extends IterableBase<E>
implements _LinkedListLink {
+
int _modificationCount = 0;
int _length = 0;
_LinkedListLink _next;
@@ -60,7 +61,8 @@ class LinkedList<E extends LinkedListEntry<E>>
Iterator<E> get iterator => new _LinkedListIterator<E>(this);
- String toString() => ToString.iterableToString(this);
+ // TODO(zarah) Remove this, and let it be inherited by IterableMixin
+ String toString() => IterableMixinWorkaround.toStringIterable(this, '{', '}');
int get length => _length;
« no previous file with comments | « sdk/lib/collection/hash_set.dart ('k') | sdk/lib/collection/list.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698