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

Issue 23456030: Emit compile-time error for incorrectly used optional parameters. (Closed)

Created:
7 years, 3 months ago by karlklose
Modified:
7 years, 3 months ago
Reviewers:
Kathy Walrath, ahe
CC:
reviews_dartlang.org, lukechurch, Kathy Walrath
Visibility:
Public.

Description

Emit compile-time error for incorrectly used optional parameters. BUG=dartbug.com/13183 R=ahe@google.com Committed: https://code.google.com/p/dart/source/detail?r=27513

Patch Set 1 #

Total comments: 5

Patch Set 2 : Change error messages. #

Total comments: 9

Patch Set 3 : Address Kathy's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -9 lines) Patch
M sdk/lib/_internal/compiler/implementation/scanner/parser.dart View 4 chunks +25 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/warnings.dart View 1 2 1 chunk +36 lines, -1 line 0 comments Download
M sdk/lib/html/html_common/conversions.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/co19/co19-dart2dart.status View 1 chunk +0 lines, -2 lines 0 comments Download
M tests/co19/co19-dart2js.status View 1 chunk +0 lines, -2 lines 0 comments Download
A tests/language/parameter_default_test.dart View 1 chunk +35 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
karlklose
7 years, 3 months ago (2013-09-13 06:48:24 UTC) #1
ahe
lgtm I like this approach very much: the parser handles the issue while it is ...
7 years, 3 months ago (2013-09-13 07:17:04 UTC) #2
Kathy Walrath
A few comments on the wording. Thanks for including me! https://codereview.chromium.org/23456030/diff/6001/sdk/lib/_internal/compiler/implementation/warnings.dart File sdk/lib/_internal/compiler/implementation/warnings.dart (right): https://codereview.chromium.org/23456030/diff/6001/sdk/lib/_internal/compiler/implementation/warnings.dart#newcode384 ...
7 years, 3 months ago (2013-09-13 17:59:08 UTC) #3
karlklose
Thanks Kathy and Peter! https://codereview.chromium.org/23456030/diff/6001/sdk/lib/_internal/compiler/implementation/warnings.dart File sdk/lib/_internal/compiler/implementation/warnings.dart (right): https://codereview.chromium.org/23456030/diff/6001/sdk/lib/_internal/compiler/implementation/warnings.dart#newcode433 sdk/lib/_internal/compiler/implementation/warnings.dart:433: "Error: Non-optional parameters can't have ...
7 years, 3 months ago (2013-09-16 07:58:59 UTC) #4
karlklose
7 years, 3 months ago (2013-09-16 08:14:45 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 manually as r27513 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698