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

Unified Diff: runtime/lib/array.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: Retain a typo fix. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/lib/growable_array.dart » ('j') | sdk/lib/collection/iterable.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/array.dart
diff --git a/runtime/lib/array.dart b/runtime/lib/array.dart
index c86ff8fcc4fd3e075d34af46d989bd1a087bad4c..185a1e78cbc3c43a9ceaf7eea30e2ce0c7ac762f 100644
--- a/runtime/lib/array.dart
+++ b/runtime/lib/array.dart
@@ -13,9 +13,7 @@ class _List<E> implements List<E> {
void operator []=(int index, E value) native "List_setIndexed";
- String toString() {
- return IterableMixinWorkaround.toStringIterable(this,'[' , ']');
- }
+ String toString() => ListBase.listToString(this);
floitsch 2014/05/23 16:09:58 runtime/lib files preferred to avoid the "=>" synt
Lasse Reichstein Nielsen 2014/05/23 16:50:01 I have no problem using brackets instead.
int get length native "List_getLength";
@@ -442,9 +440,7 @@ class _ImmutableList<E> implements List<E> {
throw UnmodifiableListError.change();
}
- String toString() {
- return IterableMixinWorkaround.toStringIterable(this, '[', ']');
- }
+ String toString() => ListBase.listToString(this);
int indexOf(Object element, [int start = 0]) {
return Lists.indexOf(this, element, start, this.length);
« no previous file with comments | « no previous file | runtime/lib/growable_array.dart » ('j') | sdk/lib/collection/iterable.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698