|
Reinstall previous behavior for Set and Queue toString.
A previous change made these omit elements to keep the toString length down.
That could break code that expects the original behavior.
This still avoids using IterableMixinWorkaround.
Add static toString methods on ListBase, SetBase, IterableBase so that users can
get the same behavior as our toString methods, and with the same cycle detection
safety.
Unify all collection toString methods in two methods:
- IterableBase.iterableToShortString
- IterableBase.iterableToFullString
R=floitsch@google.com
Committed: https://code.google.com/p/dart/source/detail?r=36616
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+269 lines, -214 lines) |
Patch |
|
M |
runtime/lib/array.dart
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
runtime/lib/growable_array.dart
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
runtime/lib/typed_data.dart
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
sdk/lib/_internal/lib/js_array.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
sdk/lib/collection/hash_set.dart
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
sdk/lib/collection/iterable.dart
|
View
|
1
2
|
2 chunks |
+162 lines, -114 lines |
0 comments
|
Download
|
|
M |
sdk/lib/collection/list.dart
|
View
|
|
3 chunks |
+11 lines, -21 lines |
0 comments
|
Download
|
|
M |
sdk/lib/collection/queue.dart
|
View
|
|
9 chunks |
+18 lines, -16 lines |
0 comments
|
Download
|
|
M |
sdk/lib/collection/set.dart
|
View
|
|
2 chunks |
+11 lines, -2 lines |
0 comments
|
Download
|
|
M |
sdk/lib/collection/splay_tree.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
sdk/lib/internal/iterable.dart
|
View
|
|
2 chunks |
+0 lines, -24 lines |
0 comments
|
Download
|
|
M |
tests/compiler/dart2js/mirrors_used_test.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
tests/corelib/collection_to_string_test.dart
|
View
|
1
|
9 chunks |
+60 lines, -20 lines |
0 comments
|
Download
|
|
M |
tests/corelib/corelib.status
|
View
|
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
Total messages: 5 (0 generated)
|