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

Unified Diff: runtime/lib/array.dart

Issue 18837002: Move toString() to collection classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments. 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 | « no previous file | runtime/lib/growable_array.dart » ('j') | runtime/lib/growable_array.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 e7f88a3ddb70525e20e355a8f54c50925bee8165..57bf2a5eac1b348804031f53559c2f3e7d26de2e 100644
--- a/runtime/lib/array.dart
+++ b/runtime/lib/array.dart
@@ -6,7 +6,7 @@
// TODO(srdjan): Use shared array implementation.
class _ObjectArray<E> implements List<E> {
static final int _classId = (new _ObjectArray(0))._cid;
-
+
Lasse Reichstein Nielsen 2013/07/09 06:15:44 You have added extra spaces here. Please remove th
zarah 2013/07/09 08:20:54 Done.
factory _ObjectArray(length) native "ObjectArray_allocate";
E operator [](int index) native "ObjectArray_getIndexed";
@@ -14,9 +14,9 @@ class _ObjectArray<E> implements List<E> {
void operator []=(int index, E value) native "ObjectArray_setIndexed";
String toString() {
- return ToString.iterableToString(this);
+ return IterableMixinWorkaround.toStringList(this);
}
-
+
Lasse Reichstein Nielsen 2013/07/09 06:15:44 Extras spaces (code-review tool is cool for detect
zarah 2013/07/09 08:20:54 Done.
int get length native "ObjectArray_getLength";
void _copyFromObjectArray(_ObjectArray src,
@@ -457,7 +457,7 @@ class _ImmutableArray<E> implements List<E> {
}
String toString() {
- return ToString.iterableToString(this);
+ return IterableMixinWorkaround.toStringList(this);
}
int indexOf(Object element, [int start = 0]) {
« no previous file with comments | « no previous file | runtime/lib/growable_array.dart » ('j') | runtime/lib/growable_array.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698