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

Side by Side Diff: sdk/lib/collection/splay_tree.dart

Issue 297053002: Reinstall previous behavior for Set and Queue toString. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/collection/set.dart ('k') | sdk/lib/internal/iterable.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.collection; 5 part of dart.collection;
6 6
7 typedef bool _Predicate<T>(T value); 7 typedef bool _Predicate<T>(T value);
8 8
9 /** 9 /**
10 * A node in a splay tree. It holds the sorting key and the left 10 * A node in a splay tree. It holds the sorting key and the left
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 _SplayTreeNode<E> _cloneNode(_SplayTreeNode<E> node) { 786 _SplayTreeNode<E> _cloneNode(_SplayTreeNode<E> node) {
787 if (node == null) return null; 787 if (node == null) return null;
788 return new _SplayTreeNode<E>(node.key)..left = _cloneNode(node.left) 788 return new _SplayTreeNode<E>(node.key)..left = _cloneNode(node.left)
789 ..right = _cloneNode(node.right); 789 ..right = _cloneNode(node.right);
790 } 790 }
791 791
792 void clear() { _clear(); } 792 void clear() { _clear(); }
793 793
794 Set<E> toSet() => _clone(); 794 Set<E> toSet() => _clone();
795 795
796 String toString() => _setToString(this); 796 String toString() => IterableBase.iterableToFullString(this, '{', '}');
797 } 797 }
OLDNEW
« no previous file with comments | « sdk/lib/collection/set.dart ('k') | sdk/lib/internal/iterable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698