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

Issue 13459002: Introduce new LinkedList to dart:collection. (Closed)

Created:
7 years, 8 months ago by Anders Johnsen
Modified:
7 years, 6 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Introduce new LinkedList to dart:collection. LinkedList required the element to extend LinkedListEntry. This is useful for implementation that want to remove/unlink a entry in O(1), given the entry. BUG= R=floitsch@google.com, lrn@google.com Committed: https://code.google.com/p/dart/source/detail?r=23969

Patch Set 1 #

Total comments: 22

Patch Set 2 : Add test, clean up implementation and add insertLast, insertFirst, insertAfter and insertBefore. #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 30

Patch Set 5 : Fix naming, concurrent modification and further tests. #

Total comments: 28

Patch Set 6 : Add documentation. #

Patch Set 7 : Review updates. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+409 lines, -0 lines) Patch
M sdk/lib/collection/collection.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/collection/collection_sources.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
A sdk/lib/collection/linked_list.dart View 1 2 3 4 5 6 1 chunk +232 lines, -0 lines 0 comments Download
A tests/lib/collection/linked_list_test.dart View 1 2 3 4 5 6 1 chunk +175 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Lasse Reichstein Nielsen
https://codereview.chromium.org/13459002/diff/1/sdk/lib/collection/linked_list.dart File sdk/lib/collection/linked_list.dart (right): https://codereview.chromium.org/13459002/diff/1/sdk/lib/collection/linked_list.dart#newcode7 sdk/lib/collection/linked_list.dart:7: class LinkedList <E extends LinkedListEntry> https://codereview.chromium.org/13459002/diff/1/sdk/lib/collection/linked_list.dart#newcode16 sdk/lib/collection/linked_list.dart:16: _next = ...
7 years, 8 months ago (2013-04-02 08:23:43 UTC) #1
Anders Johnsen
https://codereview.chromium.org/13459002/diff/1/sdk/lib/collection/linked_list.dart File sdk/lib/collection/linked_list.dart (right): https://codereview.chromium.org/13459002/diff/1/sdk/lib/collection/linked_list.dart#newcode7 sdk/lib/collection/linked_list.dart:7: class LinkedList On 2013/04/02 08:23:44, Lasse Reichstein Nielsen wrote: ...
7 years, 7 months ago (2013-05-16 09:17:40 UTC) #2
Anders Johnsen
PTAL. Will document once we agree on the API.
7 years, 7 months ago (2013-05-17 06:35:01 UTC) #3
floitsch
LGTM with comments. https://codereview.chromium.org/13459002/diff/9001/sdk/lib/collection/linked_list.dart File sdk/lib/collection/linked_list.dart (right): https://codereview.chromium.org/13459002/diff/9001/sdk/lib/collection/linked_list.dart#newcode32 sdk/lib/collection/linked_list.dart:32: if (entry._list != this) return; Shouldn't ...
7 years, 7 months ago (2013-05-23 19:01:26 UTC) #4
Lasse Reichstein Nielsen
LGTM with concurrent modification errors and more tests. https://codereview.chromium.org/13459002/diff/9001/sdk/lib/collection/linked_list.dart File sdk/lib/collection/linked_list.dart (right): https://codereview.chromium.org/13459002/diff/9001/sdk/lib/collection/linked_list.dart#newcode13 sdk/lib/collection/linked_list.dart:13: _LinkedListEntry ...
7 years, 7 months ago (2013-05-24 08:42:45 UTC) #5
floitsch
On 2013/05/24 08:42:45, Lasse Reichstein Nielsen wrote: > LGTM with concurrent modification errors and more ...
7 years, 7 months ago (2013-05-24 12:01:20 UTC) #6
Anders Johnsen
PTAL https://codereview.chromium.org/13459002/diff/9001/sdk/lib/collection/linked_list.dart File sdk/lib/collection/linked_list.dart (right): https://codereview.chromium.org/13459002/diff/9001/sdk/lib/collection/linked_list.dart#newcode13 sdk/lib/collection/linked_list.dart:13: _LinkedListEntry _prev; On 2013/05/24 08:42:45, Lasse Reichstein Nielsen ...
7 years, 6 months ago (2013-06-13 11:14:10 UTC) #7
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/13459002/diff/19001/sdk/lib/collection/linked_list.dart File sdk/lib/collection/linked_list.dart (right): https://codereview.chromium.org/13459002/diff/19001/sdk/lib/collection/linked_list.dart#newcode8 sdk/lib/collection/linked_list.dart:8: class LinkedList<E extends LinkedListEntry<E>> Documentation of for class? ...
7 years, 6 months ago (2013-06-13 11:36:59 UTC) #8
Anders Johnsen
https://codereview.chromium.org/13459002/diff/19001/sdk/lib/collection/linked_list.dart File sdk/lib/collection/linked_list.dart (right): https://codereview.chromium.org/13459002/diff/19001/sdk/lib/collection/linked_list.dart#newcode8 sdk/lib/collection/linked_list.dart:8: class LinkedList<E extends LinkedListEntry<E>> On 2013/06/13 11:36:59, Lasse Reichstein ...
7 years, 6 months ago (2013-06-13 11:54:08 UTC) #9
Anders Johnsen
7 years, 6 months ago (2013-06-13 11:54:17 UTC) #10
Message was sent while issue was closed.
Committed patchset #7 manually as r23969 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698