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

Issue 14022007: Move Iterable implementation 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, srdjan
Visibility:
Public.

Description

Move Iterable implementation to collection. Add IterableMixin and IterableBase to dart:collection. For now, the implementation is duplicated, because mixins and const constructors don't mix. We hope that mixins will be improved in the future to allow using the mixin to define the base class. Committed: https://code.google.com/p/dart/source/detail?r=21457

Patch Set 1 #

Total comments: 8

Patch Set 2 : Merged to head, handle removal of Collection. #

Patch Set 3 : Address comments. Merge to head. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -208 lines) Patch
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/scanner/KeywordToken.java View 4 chunks +6 lines, -6 lines 0 comments Download
M pkg/serialization/lib/src/basic_rule.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/serialization/lib/src/serialization_rule.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/unittest/test/matchers_test.dart View 1 3 chunks +7 lines, -7 lines 0 comments Download
M runtime/lib/collection_patch.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/lib/immutable_map.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M samples/swarm/DataSource.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M samples/swarm/swarmlib.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_collection_dev/iterable.dart View 1 9 chunks +9 lines, -9 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/collection_patch.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/constant_map.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/regexp_helper.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/scanner/byte_strings.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/scanner/keyword.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/scanner/scannerlib.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/scanner/string_scanner.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/scanner/token.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/tools/mini_parser.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/tree/dartstring.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/types/types.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/util/link.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/util/util.dart View 1 chunk +1 line, -0 lines 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/hash_set.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/collection/queue.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/collection/splay_tree.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/core/iterable.dart View 1 2 16 chunks +42 lines, -144 lines 0 comments Download
M sdk/lib/core/set.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/core/string.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/utf/utf.dart View 2 chunks +2 lines, -1 line 0 comments Download
M sdk/lib/utf/utf16.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/utf/utf32.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/utf/utf8.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/scanner_test.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
M tests/compiler/dart2js_extra/for_in_test.dart View 2 chunks +2 lines, -1 line 0 comments Download
M tests/corelib/iterable_length_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M tests/language/factory2_test.dart View 1 chunk +3 lines, -1 line 0 comments Download
M tests/language/factory3_test.dart View 1 chunk +3 lines, -1 line 0 comments Download
M utils/apidoc/mdn/extract.dart View 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Lasse Reichstein Nielsen
There is still something fishy with a VM socket test. I have no idea why, ...
7 years, 8 months ago (2013-04-11 14:19:48 UTC) #1
floitsch
LGTM. https://codereview.chromium.org/14022007/diff/1/sdk/lib/core/iterable.dart File sdk/lib/core/iterable.dart (right): https://codereview.chromium.org/14022007/diff/1/sdk/lib/core/iterable.dart#newcode98 sdk/lib/core/iterable.dart:98: * Reduce a collection to a single value ...
7 years, 8 months ago (2013-04-11 14:24:57 UTC) #2
floitsch
Added srdjan.
7 years, 8 months ago (2013-04-11 14:34:55 UTC) #3
floitsch
On 2013/04/11 14:34:55, floitsch wrote: > Added srdjan. Don't forget to update the benchmarks. There ...
7 years, 8 months ago (2013-04-11 14:40:31 UTC) #4
Lasse Reichstein Nielsen
On 2013/04/11 14:40:31, floitsch wrote: > On 2013/04/11 14:34:55, floitsch wrote: > > Added srdjan. ...
7 years, 8 months ago (2013-04-11 15:57:37 UTC) #5
floitsch
This CL breaks set.where: Unhandled exception: Class 'HashSet' has no instance method 'where'.
7 years, 8 months ago (2013-04-13 00:25:51 UTC) #6
floitsch
On 2013/04/13 00:25:51, floitsch wrote: > This CL breaks set.where: Unhandled exception: > Class 'HashSet' ...
7 years, 8 months ago (2013-04-13 00:26:36 UTC) #7
Lasse Reichstein Nielsen
I don't think you did anything wrong, but the CL's are slightly incompatible. You made ...
7 years, 8 months ago (2013-04-15 13:10:57 UTC) #8
Lasse Reichstein Nielsen
https://codereview.chromium.org/14022007/diff/1/sdk/lib/core/iterable.dart File sdk/lib/core/iterable.dart (right): https://codereview.chromium.org/14022007/diff/1/sdk/lib/core/iterable.dart#newcode98 sdk/lib/core/iterable.dart:98: * Reduce a collection to a single value by ...
7 years, 8 months ago (2013-04-15 14:19:49 UTC) #9
Lasse Reichstein Nielsen
7 years, 8 months ago (2013-04-15 14:33:05 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 manually as r21457 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698