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

Issue 12383073: Add List.insert. (Closed)

Created:
7 years, 9 months ago by floitsch
Modified:
7 years, 9 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 18

Patch Set 2 : Address comments. #

Patch Set 3 : Rename insertAt to insert.~ #

Total comments: 15

Patch Set 4 : Address comments. #

Patch Set 5 : Use insertBefore and add is-check. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+516 lines, -2 lines) Patch
M editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M pkg/serialization/lib/src/serialization_rule.dart View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M runtime/lib/array.dart View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M runtime/lib/byte_array.dart View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/lib/growable_array.dart View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
M samples/swarm/swarm_ui_lib/observable/observable.dart View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M sdk/lib/_collection_dev/list.dart View 1 2 3 4 3 chunks +13 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/js_array.dart View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M sdk/lib/core/list.dart View 1 2 3 4 1 chunk +12 lines, -1 line 0 comments Download
M sdk/lib/html/dart2js/html_dart2js.dart View 34 chunks +148 lines, -0 lines 0 comments Download
M sdk/lib/html/dartium/html_dartium.dart View 34 chunks +148 lines, -0 lines 0 comments Download
M sdk/lib/html/html_common/filtered_element_list.dart View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M sdk/lib/svg/dart2js/svg_dart2js.dart View 1 2 3 4 6 chunks +24 lines, -0 lines 0 comments Download
M sdk/lib/svg/dartium/svg_dartium.dart View 1 2 3 4 6 chunks +24 lines, -0 lines 0 comments Download
M sdk/lib/web_sql/dart2js/web_sql_dart2js.dart View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M sdk/lib/web_sql/dartium/web_sql_dartium.dart View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
A tests/corelib/list_insert_test.dart View 1 2 1 chunk +51 lines, -0 lines 0 comments Download
M tools/dom/src/WrappedList.dart View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M tools/dom/templates/html/impl/impl_Element.darttemplate View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M tools/dom/templates/html/impl/impl_Node.darttemplate View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M tools/dom/templates/immutable_list_mixin.darttemplate View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
floitsch
7 years, 9 months ago (2013-03-02 16:50:43 UTC) #1
srdjan
https://codereview.chromium.org/12383073/diff/1/runtime/lib/array.dart File runtime/lib/array.dart (right): https://codereview.chromium.org/12383073/diff/1/runtime/lib/array.dart#newcode271 runtime/lib/array.dart:271: "Cannot add to a non-extendable array"); to an immutable ...
7 years, 9 months ago (2013-03-04 00:53:47 UTC) #2
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/12383073/diff/1/runtime/lib/array.dart File runtime/lib/array.dart (right): https://codereview.chromium.org/12383073/diff/1/runtime/lib/array.dart#newcode271 runtime/lib/array.dart:271: "Cannot add to a non-extendable array"); Consider changing ...
7 years, 9 months ago (2013-03-04 09:06:02 UTC) #3
Sean Eagan
On 2013/03/02 16:50:43, floitsch wrote: Naming suggestion: I think "insertAt" is redundant, it's impossible to ...
7 years, 9 months ago (2013-03-04 16:37:27 UTC) #4
floitsch
I was really tempted to switch to "insert", but "insertAt" still sounds more right. "addAt" ...
7 years, 9 months ago (2013-03-05 17:51:57 UTC) #5
Sean Eagan
On 2013/03/05 17:51:57, floitsch wrote: > I was really tempted to switch to "insert", but ...
7 years, 9 months ago (2013-03-05 20:32:27 UTC) #6
floitsch
Ok. that convinced at least me. @Lasse: PTAL.
7 years, 9 months ago (2013-03-06 15:35:51 UTC) #7
srdjan
LGTM https://codereview.chromium.org/12383073/diff/13001/sdk/lib/core/list.dart File sdk/lib/core/list.dart (right): https://codereview.chromium.org/12383073/diff/13001/sdk/lib/core/list.dart#newcode198 sdk/lib/core/list.dart:198: * up by one position. 'up' is an ...
7 years, 9 months ago (2013-03-06 17:08:37 UTC) #8
Lasse Reichstein Nielsen
LGTM. https://codereview.chromium.org/12383073/diff/13001/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart File editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart (right): https://codereview.chromium.org/12383073/diff/13001/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart#newcode293 editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart:293: void insert(int index, E value) { It's a ...
7 years, 9 months ago (2013-03-07 09:57:53 UTC) #9
floitsch
https://codereview.chromium.org/12383073/diff/13001/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart File editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart (right): https://codereview.chromium.org/12383073/diff/13001/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart#newcode293 editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart:293: void insert(int index, E value) { On 2013/03/07 09:57:53, ...
7 years, 9 months ago (2013-03-07 12:53:53 UTC) #10
blois
Sorry about delay, hope I wasn't holding anything up. insertBefore should be able to be ...
7 years, 9 months ago (2013-03-08 02:32:40 UTC) #11
sra1
https://chromiumcodereview.appspot.com/12383073/diff/1/tools/dom/templates/html/impl/impl_Element.darttemplate File tools/dom/templates/html/impl/impl_Element.darttemplate (right): https://chromiumcodereview.appspot.com/12383073/diff/1/tools/dom/templates/html/impl/impl_Element.darttemplate#newcode222 tools/dom/templates/html/impl/impl_Element.darttemplate:222: throw new UnimplementedError("insertAt on ElementLists"); insertBefore the current element ...
7 years, 9 months ago (2013-03-08 18:56:52 UTC) #12
floitsch
PTAL. @blois: I have added the insertBefore, but I'm pretty sure it is currently untested. ...
7 years, 9 months ago (2013-03-08 23:17:30 UTC) #13
floitsch
ping.
7 years, 9 months ago (2013-03-14 15:56:07 UTC) #14
blois
lgtm
7 years, 9 months ago (2013-03-14 16:07:18 UTC) #15
floitsch
7 years, 9 months ago (2013-03-14 17:39:14 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 manually as r20037 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698