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

Issue 1937103002: Make dart:collection strong-mode clean. (Closed)

Created:
4 years, 7 months ago by floitsch
Modified:
4 years, 7 months ago
CC:
reviews_dartlang.org, Lasse Reichstein Nielsen
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 10

Patch Set 3 : Use comment types. #

Patch Set 4 : rebase #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -190 lines) Patch
M sdk/lib/collection/hash_map.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/collection/hash_set.dart View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M sdk/lib/collection/iterable.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M sdk/lib/collection/iterator.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/collection/linked_hash_map.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/collection/linked_hash_set.dart View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M sdk/lib/collection/linked_list.dart View 1 2 10 chunks +71 lines, -53 lines 0 comments Download
M sdk/lib/collection/list.dart View 2 chunks +5 lines, -5 lines 0 comments Download
M sdk/lib/collection/maps.dart View 4 chunks +11 lines, -9 lines 0 comments Download
M sdk/lib/collection/queue.dart View 1 2 17 chunks +66 lines, -43 lines 4 comments Download
M sdk/lib/collection/set.dart View 4 chunks +4 lines, -4 lines 0 comments Download
M sdk/lib/collection/splay_tree.dart View 1 2 32 chunks +87 lines, -66 lines 0 comments Download
M tests/corelib/set_test.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (4 generated)
floitsch
FYI: currently this CL triggers an assert in the VM. I have filed a bug, ...
4 years, 7 months ago (2016-05-04 13:47:41 UTC) #2
Leaf
lgtm
4 years, 7 months ago (2016-05-06 16:05:44 UTC) #3
sra1
To avoid performance problems on dart2js like we had with Futures dart2js, rewrite every occurrence ...
4 years, 7 months ago (2016-05-06 18:12:17 UTC) #5
floitsch
https://codereview.chromium.org/1937103002/diff/20001/sdk/lib/collection/queue.dart File sdk/lib/collection/queue.dart (right): https://codereview.chromium.org/1937103002/diff/20001/sdk/lib/collection/queue.dart#newcode296 sdk/lib/collection/queue.dart:296: list.addLast(e as E); On 2016/05/06 18:12:17, sra1 wrote: > ...
4 years, 7 months ago (2016-05-10 14:12:31 UTC) #6
floitsch
Committed patchset #4 (id:60001) manually as e19addf23efb536b3d1b23438cbb414f81faef7d (presubmit successful).
4 years, 7 months ago (2016-05-11 14:28:49 UTC) #8
sra1
https://codereview.chromium.org/1937103002/diff/60001/sdk/lib/collection/queue.dart File sdk/lib/collection/queue.dart (right): https://codereview.chromium.org/1937103002/diff/60001/sdk/lib/collection/queue.dart#newcode139 sdk/lib/collection/queue.dart:139: } This is a breaking change since DoubleLinkedQueueEntry no ...
4 years, 7 months ago (2016-05-13 03:00:13 UTC) #9
Lasse Reichstein Nielsen
https://codereview.chromium.org/1937103002/diff/20001/sdk/lib/collection/hash_map.dart File sdk/lib/collection/hash_map.dart (right): https://codereview.chromium.org/1937103002/diff/20001/sdk/lib/collection/hash_map.dart#newcode105 sdk/lib/collection/hash_map.dart:105: other.forEach((k, v) { result[k as K] = v as ...
4 years, 7 months ago (2016-05-13 05:31:10 UTC) #11
Lasse Reichstein Nielsen
https://codereview.chromium.org/1937103002/diff/20001/sdk/lib/collection/hash_map.dart File sdk/lib/collection/hash_map.dart (right): https://codereview.chromium.org/1937103002/diff/20001/sdk/lib/collection/hash_map.dart#newcode105 sdk/lib/collection/hash_map.dart:105: other.forEach((k, v) { result[k as K] = v as ...
4 years, 7 months ago (2016-05-13 06:57:52 UTC) #12
floitsch
4 years, 7 months ago (2016-05-13 17:12:01 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/1937103002/diff/60001/sdk/lib/collection/queu...
File sdk/lib/collection/queue.dart (right):

https://codereview.chromium.org/1937103002/diff/60001/sdk/lib/collection/queu...
sdk/lib/collection/queue.dart:123: factory DoubleLinkedQueueEntry(E element) =
_UserDoubleLinkedQueueEntry<E>;
On 2016/05/13 05:31:09, Lasse Reichstein Nielsen wrote:
> This changes a generative constructor to a factory constructor.
> If any class extends DoubleLinkedQueueEntry, it will stop working.
> 
> (I guess this is another lesson in separating interface and implementation :)

Fixed in https://codereview.chromium.org/1973903005

https://codereview.chromium.org/1937103002/diff/60001/sdk/lib/collection/queu...
sdk/lib/collection/queue.dart:139: }
On 2016/05/13 03:00:13, sra1 wrote:
> This is a breaking change since DoubleLinkedQueueEntry no longer has a
remove()
> method.
> 
> There are a bunch of additional warnings when compiling swarm due to this
> change.

Argh. Missed the 'remove' function.
Fixing in https://codereview.chromium.org/1973903005

Powered by Google App Engine
This is Rietveld 408576698