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

Issue 13774006: Moving ListBase, FixedLengthListMixin and UmodifiableListMixin to collection. (Closed)

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

Description

Moving ListBase, FixedLengthListMixin and UmodifiableListMixin to collection. Users can now create lists easily by extending these classes, just as they can create iterables by extending Iterable. Reduce the dependency of IterableMixinWorkaround outside of core/collection implementations. I plan to move IterableMixinWorkaround to _collection-dev before M4. Committed: https://code.google.com/p/dart/source/detail?r=21147

Patch Set 1 #

Total comments: 3

Patch Set 2 : Moved ListMixin etc. to collection. #

Patch Set 3 : Rewrite _CodeUnits to avoid VM crash #

Patch Set 4 : Move fixed/unmodifiable base and mixin to collections-dev #

Total comments: 2

Patch Set 5 : Moved ReversedListIterable back to collection-dev #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -800 lines) Patch
M runtime/lib/array.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/lib/growable_array.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/lib/string_patch.dart View 1 2 2 chunks +15 lines, -1 line 0 comments Download
M sdk/lib/_collection_dev/collection_dev.dart View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M sdk/lib/_collection_dev/list.dart View 1 2 3 4 4 chunks +11 lines, -489 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/js_string.dart View 1 2 chunks +14 lines, -1 line 0 comments Download
M sdk/lib/collection/collection.dart View 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/collection/collection_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/collection/collections.dart View 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A + sdk/lib/collection/list.dart View 1 2 3 4 2 chunks +9 lines, -289 lines 0 comments Download
M sdk/lib/html/dart2js/html_dart2js.dart View 2 chunks +5 lines, -5 lines 0 comments Download
M sdk/lib/html/dartium/html_dartium.dart View 2 chunks +5 lines, -5 lines 0 comments Download
M sdk/lib/html/html_common/filtered_element_list.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tools/dom/templates/html/impl/impl_Element.darttemplate View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Lasse Reichstein Nielsen
7 years, 8 months ago (2013-04-08 09:31:46 UTC) #1
floitsch
FYI. (still need to think/discuss about exposed classes before giving approval). https://codereview.chromium.org/13774006/diff/1/sdk/lib/collection/list.dart File sdk/lib/collection/list.dart (right): ...
7 years, 8 months ago (2013-04-08 09:41:30 UTC) #2
Lasse Reichstein Nielsen
https://codereview.chromium.org/13774006/diff/1/sdk/lib/collection/list.dart File sdk/lib/collection/list.dart (right): https://codereview.chromium.org/13774006/diff/1/sdk/lib/collection/list.dart#newcode21 sdk/lib/collection/list.dart:21: typedef FixedLengthListBase<E> = ListBase<E> with FixedLengthListMixin<E>; it's doable, but ...
7 years, 8 months ago (2013-04-08 10:17:22 UTC) #3
Lasse Reichstein Nielsen
https://codereview.chromium.org/13774006/diff/1/sdk/lib/collection/list.dart File sdk/lib/collection/list.dart (right): https://codereview.chromium.org/13774006/diff/1/sdk/lib/collection/list.dart#newcode21 sdk/lib/collection/list.dart:21: typedef FixedLengthListBase<E> = ListBase<E> with FixedLengthListMixin<E>; I can remove ...
7 years, 8 months ago (2013-04-08 10:22:14 UTC) #4
Lasse Reichstein Nielsen
PTAL
7 years, 8 months ago (2013-04-09 11:31:25 UTC) #5
floitsch
LGTM. https://codereview.chromium.org/13774006/diff/14001/sdk/lib/collection/collections.dart File sdk/lib/collection/collections.dart (right): https://codereview.chromium.org/13774006/diff/14001/sdk/lib/collection/collections.dart#newcode346 sdk/lib/collection/collections.dart:346: return new _ReversedListIterable(list); Move it back. https://codereview.chromium.org/13774006/diff/14001/sdk/lib/collection/list.dart File ...
7 years, 8 months ago (2013-04-09 11:56:06 UTC) #6
Lasse Reichstein Nielsen
7 years, 8 months ago (2013-04-09 12:11:25 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 manually as r21147 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698