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

Issue 26481002: Change the toString method of IterableBase/IterableMixin to show some elements. (Closed)

Created:
7 years, 2 months ago by Lasse Reichstein Nielsen
Modified:
7 years, 2 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

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

Patch Set 1 #

Patch Set 2 : Updated test to expect new iterable toString. #

Patch Set 3 : Changed toString strategy to be simpler , , adapted test. #

Patch Set 4 : Adapted other test too. #

Total comments: 20

Patch Set 5 : Addressed comments. #

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

Messages

Total messages: 6 (0 generated)
Lasse Reichstein Nielsen
7 years, 2 months ago (2013-10-08 11:42:39 UTC) #1
Lasse Reichstein Nielsen
PTAL
7 years, 2 months ago (2013-10-11 07:22:09 UTC) #2
floitsch
LGTM. https://codereview.chromium.org/26481002/diff/10001/sdk/lib/collection/hash_set.dart File sdk/lib/collection/hash_set.dart (right): https://codereview.chromium.org/26481002/diff/10001/sdk/lib/collection/hash_set.dart#newcode60 sdk/lib/collection/hash_set.dart:60: List<E> result = growable ? (new List<E>()..length = ...
7 years, 2 months ago (2013-10-11 09:29:42 UTC) #3
Lasse Reichstein Nielsen
Committed patchset #5 manually as r28504 (presubmit successful).
7 years, 2 months ago (2013-10-11 10:56:29 UTC) #4
Lasse Reichstein Nielsen
https://codereview.chromium.org/26481002/diff/10001/sdk/lib/collection/hash_set.dart File sdk/lib/collection/hash_set.dart (right): https://codereview.chromium.org/26481002/diff/10001/sdk/lib/collection/hash_set.dart#newcode60 sdk/lib/collection/hash_set.dart:60: List<E> result = growable ? (new List<E>()..length = this.length) ...
7 years, 2 months ago (2013-10-11 20:25:37 UTC) #5
Lasse Reichstein Nielsen
7 years, 2 months ago (2013-10-11 20:25:38 UTC) #6
Message was sent while issue was closed.

          

Powered by Google App Engine
This is Rietveld 408576698