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

Issue 297053002: Reinstall previous behavior for Set and Queue toString. (Closed)

Created:
6 years, 7 months ago by Lasse Reichstein Nielsen
Modified:
6 years, 7 months ago
Reviewers:
Søren Gjesse, floitsch
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

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

Patch Set 1 #

Patch Set 2 : Retain a typo fix. #

Total comments: 12

Patch Set 3 : Address comments. #

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

Messages

Total messages: 5 (0 generated)
Lasse Reichstein Nielsen
6 years, 7 months ago (2014-05-23 15:43:07 UTC) #1
Lasse Reichstein Nielsen
https://codereview.chromium.org/297053002/diff/20001/tests/corelib/collection_to_string_test.dart File tests/corelib/collection_to_string_test.dart (right): https://codereview.chromium.org/297053002/diff/20001/tests/corelib/collection_to_string_test.dart#newcode1 tests/corelib/collection_to_string_test.dart:1: // Copyright (c) 2012, the Dart project authors. Please ...
6 years, 7 months ago (2014-05-23 15:45:48 UTC) #2
floitsch
LGTM, although I'm not really sold on the names of the two new exposed functions. ...
6 years, 7 months ago (2014-05-23 16:09:58 UTC) #3
Lasse Reichstein Nielsen
https://codereview.chromium.org/297053002/diff/20001/runtime/lib/array.dart File runtime/lib/array.dart (right): https://codereview.chromium.org/297053002/diff/20001/runtime/lib/array.dart#newcode16 runtime/lib/array.dart:16: String toString() => ListBase.listToString(this); I have no problem using ...
6 years, 7 months ago (2014-05-23 16:50:01 UTC) #4
Lasse Reichstein Nielsen
6 years, 7 months ago (2014-05-26 06:09:07 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 manually as r36616 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698