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

Issue 11090016: Change core lib, dart2js, and more for new optional parameters syntax (Closed)

Created:
8 years, 2 months ago by regis
Modified:
8 years, 2 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Change core lib, dart2js, and more for new optional parameters syntax and semantics (new semantics is not enforced yet). Committed: https://code.google.com/p/dart/source/detail?r=13684

Patch Set 1 #

Total comments: 15

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 9

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+484 lines, -397 lines) Patch
M lib/_internal/libraries.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +7 lines, -7 lines 0 comments Download
M lib/compiler/implementation/compile_time_constants.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +14 lines, -14 lines 0 comments Download
M lib/compiler/implementation/compiler.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +22 lines, -18 lines 0 comments Download
M lib/compiler/implementation/dart_backend/backend.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -5 lines 0 comments Download
M lib/compiler/implementation/dart_backend/placeholder_collector.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/diagnostic_listener.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -3 lines 0 comments Download
M lib/compiler/implementation/elements/elements.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +12 lines, -9 lines 0 comments Download
M lib/compiler/implementation/js/printer.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +5 lines, -4 lines 0 comments Download
M lib/compiler/implementation/js_backend/backend.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/js_backend/constant_emitter.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -4 lines 0 comments Download
M lib/compiler/implementation/js_backend/emitter.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +9 lines, -8 lines 0 comments Download
M lib/compiler/implementation/lib/coreimpl_patch.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +7 lines, -7 lines 0 comments Download
M lib/compiler/implementation/resolved_visitor.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -2 lines 0 comments Download
M lib/compiler/implementation/resolver.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +7 lines, -7 lines 0 comments Download
M lib/compiler/implementation/scanner/keyword.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -3 lines 0 comments Download
M lib/compiler/implementation/scanner/listener.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/ssa/builder.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 8 chunks +31 lines, -31 lines 0 comments Download
M lib/compiler/implementation/ssa/codegen.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/ssa/nodes.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +5 lines, -5 lines 0 comments Download
M lib/compiler/implementation/ssa/optimize.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +6 lines, -6 lines 0 comments Download
M lib/compiler/implementation/ssa/types.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -2 lines 0 comments Download
M lib/compiler/implementation/string_validator.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -2 lines 0 comments Download
M lib/compiler/implementation/tools/mini_parser.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/tree/nodes.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -3 lines 0 comments Download
M lib/compiler/implementation/tree/unparser.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/types/concrete_types_inferrer.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/samples/leap/leap_leg.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M lib/core/date.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +29 lines, -8 lines 0 comments Download
M lib/coreimpl/date.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +15 lines, -13 lines 0 comments Download
M pkg/args/lib/args.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +6 lines, -6 lines 0 comments Download
M pkg/dartdoc/lib/dartdoc.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -4 lines 0 comments Download
M pkg/dartdoc/lib/src/markdown/inline_parser.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M pkg/intl/example/basic/basic_example.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M pkg/intl/lib/src/date_format_helpers.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +19 lines, -9 lines 0 comments Download
M pkg/intl/test/date_time_format_test_core.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +11 lines, -11 lines 0 comments Download
M pkg/unittest/core_matchers.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M pkg/unittest/test/matchers_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -3 lines 0 comments Download
M pkg/unittest/test/mock_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +11 lines, -11 lines 0 comments Download
M pkg/unittest/unittest.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/bin/directory.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/directory_impl.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/file_impl.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/http_impl.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/http_utils.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -3 lines 0 comments Download
M runtime/bin/list_stream_impl.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/socket_stream_impl.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/stream_util.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/lib/date_patch.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +7 lines, -7 lines 0 comments Download
M runtime/vm/debugger_api_impl_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/snapshot_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M samples/ui_lib/util/DateUtils.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -2 lines 0 comments Download
M tests/co19/co19-dart2dart.status View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +17 lines, -1 line 0 comments Download
M tests/co19/co19-dart2js.status View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +19 lines, -3 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +17 lines, -1 line 0 comments Download
M tests/compiler/dart2js/metadata_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/parser_helper.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/unparser2_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -3 lines 0 comments Download
M tests/corelib/collection_to_string_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M tests/corelib/date_time5_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +6 lines, -7 lines 0 comments Download
M tests/corelib/date_time8_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M tests/corelib/date_time_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 8 chunks +18 lines, -21 lines 0 comments Download
M tests/corelib/future_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 8 chunks +8 lines, -8 lines 0 comments Download
M tests/corelib/list_insert_range_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -4 lines 0 comments Download
M tests/isolate/count_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M tests/language/issue4157508_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/math/coin_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/directory_invalid_arguments_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/echo_server_stream_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/file_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -4 lines 0 comments Download
M tests/standalone/io/http_advanced_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +5 lines, -5 lines 0 comments Download
M tests/standalone/io/http_date_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +5 lines, -6 lines 0 comments Download
M tests/standalone/io/http_headers_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +7 lines, -7 lines 0 comments Download
M tests/standalone/io/http_parser_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +18 lines, -18 lines 0 comments Download
M tests/standalone/io/http_server_early_client_close_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/stream_pipe_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -3 lines 0 comments Download
M tools/testing/dart/test_suite.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -3 lines 0 comments Download
M utils/apidoc/html_diff.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/git.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/git_source.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/hosted_source.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/io.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -4 lines 0 comments Download
M utils/pub/source.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/version.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +6 lines, -6 lines 0 comments Download
M utils/pub/yaml/model.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/yaml/parser.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +4 lines, -4 lines 0 comments Download
M utils/tests/pub/lock_file_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/pubspec_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/test_pub.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -5 lines 0 comments Download
M utils/tests/pub/version_solver_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/version_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 9 chunks +24 lines, -22 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
regis
Nicolas, Kasper, I started to change the core lib, at least so that we can ...
8 years, 2 months ago (2012-10-09 04:26:25 UTC) #1
kasperl
Adding Lasse (who cares a lot about our libraries) as an additional reviewer.
8 years, 2 months ago (2012-10-09 11:49:03 UTC) #2
Lasse Reichstein Nielsen
https://codereview.chromium.org/11090016/diff/1/lib/compiler/implementation/lib/coreimpl_patch.dart File lib/compiler/implementation/lib/coreimpl_patch.dart (right): https://codereview.chromium.org/11090016/diff/1/lib/compiler/implementation/lib/coreimpl_patch.dart#newcode77 lib/compiler/implementation/lib/coreimpl_patch.dart:77: {int month: 1, The implementation class should not have ...
8 years, 2 months ago (2012-10-09 12:35:00 UTC) #3
Lasse Reichstein Nielsen
https://codereview.chromium.org/11090016/diff/1/lib/core/date.dart File lib/core/date.dart (right): https://codereview.chromium.org/11090016/diff/1/lib/core/date.dart#newcode48 lib/core/date.dart:48: factory Date(int year, Using optional positional parameters will make ...
8 years, 2 months ago (2012-10-09 12:50:40 UTC) #4
regis
I continued working on this today. Please, have another look. I hope to get to ...
8 years, 2 months ago (2012-10-11 01:33:55 UTC) #5
floitsch
DBC. https://codereview.chromium.org/11090016/diff/8001/lib/compiler/implementation/elements/elements.dart File lib/compiler/implementation/elements/elements.dart (right): https://codereview.chromium.org/11090016/diff/8001/lib/compiler/implementation/elements/elements.dart#newcode1513 lib/compiler/implementation/elements/elements.dart:1513: forEachMember(f: (_, Element member) { there seems to ...
8 years, 2 months ago (2012-10-11 16:52:14 UTC) #6
regis
Thanks! Please, have another look and please try to approve. This is ready for submission. ...
8 years, 2 months ago (2012-10-11 21:24:19 UTC) #7
Jennifer Messerly
https://codereview.chromium.org/11090016/diff/14001/pkg/dartdoc/lib/dartdoc.dart File pkg/dartdoc/lib/dartdoc.dart (right): https://codereview.chromium.org/11090016/diff/14001/pkg/dartdoc/lib/dartdoc.dart#newcode1501 pkg/dartdoc/lib/dartdoc.dart:1501: {MemberMirror currentMember: null, do we need the null here?
8 years, 2 months ago (2012-10-12 02:35:58 UTC) #8
Lasse Reichstein Nielsen
LGTM. https://codereview.chromium.org/11090016/diff/14001/lib/core/date.dart File lib/core/date.dart (right): https://codereview.chromium.org/11090016/diff/14001/lib/core/date.dart#newcode46 lib/core/date.dart:46: * [:new Date(1938, 1, 10)] represents the 10th ...
8 years, 2 months ago (2012-10-12 07:52:19 UTC) #9
regis
8 years, 2 months ago (2012-10-12 17:51:51 UTC) #10
Thanks! I'll submit on Tuesday after triaging co19 tests again.

Cheers,
Regis

https://codereview.chromium.org/11090016/diff/14001/lib/core/date.dart
File lib/core/date.dart (right):

https://codereview.chromium.org/11090016/diff/14001/lib/core/date.dart#newcode46
lib/core/date.dart:46: * [:new Date(1938, 1, 10)] represents the 10th of January
1938.
On 2012/10/12 07:52:19, Lasse Reichstein Nielsen wrote:
> Missing ':' before ']'.

Done here and below.

https://codereview.chromium.org/11090016/diff/14001/pkg/dartdoc/lib/dartdoc.dart
File pkg/dartdoc/lib/dartdoc.dart (right):

https://codereview.chromium.org/11090016/diff/14001/pkg/dartdoc/lib/dartdoc.d...
pkg/dartdoc/lib/dartdoc.dart:1501: {MemberMirror currentMember: null,
On 2012/10/12 07:52:19, Lasse Reichstein Nielsen wrote:
> No (and we didn't before either).
> I'm usually all for giving redundant information if it improves readability,
but
> here I'd omit the nulls too.

Lasse is correct, nulls are redundant. This cl does not try to address stylistic
issues, but since you explicitly point to these, I removed the nulls here. There
are many other instances of redundant nulls, though.

https://codereview.chromium.org/11090016/diff/14001/tools/testing/dart/test_s...
File tools/testing/dart/test_suite.dart (right):

https://codereview.chromium.org/11090016/diff/14001/tools/testing/dart/test_s...
tools/testing/dart/test_suite.dart:228: bool recursive: false})
On 2012/10/12 07:52:19, Lasse Reichstein Nielsen wrote:
> Do we have a rule for indentation in cases like this? I would expect the
'bool'
> to be indented by one more.

I am not aware of a rule. I have seen different styles. I agree that it looks
better with a space. In this particular case, we could also write both optional
parameters on the same line. We should have a clean up pass over all sources
when/if we decide that a style is better than another.

Powered by Google App Engine
This is Rietveld 408576698