|
Change the toString method of IterableBase/IterableMixin to show some elements.
It always shows at least the first three and last two elements, unless the
iterable has more than 100 elements, in which case it's considered endless.
If there are room for more elements, within some limits, they are also included.
R=floitsch@google.com
Committed: https://code.google.com/p/dart/source/detail?r=28504
Total comments: 20
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+318 lines, -190 lines) |
Patch |
|
M |
sdk/lib/_collection_dev/collection_dev.dart
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
sdk/lib/_collection_dev/collection_dev_sources.gypi
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
sdk/lib/_collection_dev/to_string.dart
|
View
|
1
|
1 chunk |
+0 lines, -161 lines |
0 comments
|
Download
|
|
M |
sdk/lib/collection/hash_set.dart
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
sdk/lib/collection/iterable.dart
|
View
|
1
2
3
4
|
2 chunks |
+129 lines, -0 lines |
0 comments
|
Download
|
|
M |
sdk/lib/collection/linked_list.dart
|
View
|
1
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
sdk/lib/collection/list.dart
|
View
|
|
3 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
sdk/lib/collection/queue.dart
|
View
|
1
|
2 chunks |
+0 lines, -6 lines |
0 comments
|
Download
|
|
M |
sdk/lib/core/iterable.dart
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
tests/corelib/collection_to_string_test.dart
|
View
|
1
2
3
4
|
4 chunks |
+69 lines, -6 lines |
0 comments
|
Download
|
|
A |
tests/corelib/iterable_tostring_test.dart
|
View
|
1
2
3
|
1 chunk |
+106 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/corelib/set_to_string_test.dart
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|