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

Issue 8619008: Initializing formals can't be optional parameters (Closed)

Created:
9 years, 1 month ago by hausner
Modified:
9 years, 1 month ago
Reviewers:
Ivan Posva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Initializing formals can't be optional parameters Add new error message to VM compiler. Remove all optional initializing formals from library and tests. Committed: https://code.google.com/p/dart/source/detail?r=1755

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -23 lines) Patch
M corelib/src/exceptions.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M corelib/src/implementation/exceptions.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/file.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/input_stream.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/process.dart View 1 1 chunk +2 lines, -1 line 0 comments Download
M runtime/bin/socket.dart View 1 1 chunk +2 lines, -1 line 0 comments Download
M runtime/bin/string_stream.dart View 1 2 chunks +3 lines, -2 lines 0 comments Download
M runtime/vm/parser.cc View 1 1 chunk +4 lines, -0 lines 1 comment Download
M samples/chat/chat_server_lib.dart View 1 2 chunks +4 lines, -3 lines 0 comments Download
M tests/language/src/TryCatch3Test.dart View 1 1 chunk +7 lines, -6 lines 0 comments Download
M tools/testing/dart/test_runner.dart View 1 6 chunks +8 lines, -6 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
hausner
9 years, 1 month ago (2011-11-22 00:34:18 UTC) #1
hausner
TBR
9 years, 1 month ago (2011-11-22 19:10:10 UTC) #2
Ivan Posva
9 years, 1 month ago (2011-11-22 19:58:38 UTC) #3
LGTM. Thanks for the quick turnaround.

-Ivan

http://codereview.chromium.org/8619008/diff/3001/runtime/vm/parser.cc
File runtime/vm/parser.cc (right):

http://codereview.chromium.org/8619008/diff/3001/runtime/vm/parser.cc#newcode843
runtime/vm/parser.cc:843: if (params->has_named_optional_parameters) {
A comment explaining how this works would be nice, but I guess when you read the
whole thing you do not have it as much out of context.

Powered by Google App Engine
This is Rietveld 408576698