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

Issue 2447613003: Allow `rethrow` to end a switch case. Allow braces around switch cases. (Closed)

Created:
4 years, 1 month ago by Lasse Reichstein Nielsen
Modified:
4 years, 1 month ago
CC:
reviews_dartlang.org, floitsch, Leaf
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Allow `rethrow` to end a switch case. Allow braces around switch cases. Add `rethrow` as one of the statements that are allowed to end a switch case without a warning. Change wording to not claim that `throw` is a statement. Also allow wrapping case statements in a block statement without causing more warnings. Currently, a `case 4: { break; }` is required to warn because the last statement is a block statement, not a break statement. Fixes issue #27650 BUG= http://dartbug.com/27650 R=eernst@google.com, floitsch@google.com, rnystrom@google.com Committed: https://github.com/dart-lang/sdk/commit/6e6ff496ed6bc0afd2af6c3d89590802cdecb7a9

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M docs/language/dartLangSpec.tex View 1 chunk +4 lines, -1 line 3 comments Download

Messages

Total messages: 11 (3 generated)
Lasse Reichstein Nielsen
4 years, 1 month ago (2016-10-24 09:22:42 UTC) #2
floitsch
LGTM.
4 years, 1 month ago (2016-10-24 11:31:38 UTC) #4
eernst
I'm not quite sure how we specify the required control flow properties, but I came ...
4 years, 1 month ago (2016-10-24 12:38:02 UTC) #5
Bob Nystrom
https://codereview.chromium.org/2447613003/diff/1/docs/language/dartLangSpec.tex File docs/language/dartLangSpec.tex (right): https://codereview.chromium.org/2447613003/diff/1/docs/language/dartLangSpec.tex#newcode5976 docs/language/dartLangSpec.tex:5976: It is a static warning $s$ is not a ...
4 years, 1 month ago (2016-10-24 16:48:00 UTC) #6
Lasse Reichstein Nielsen
https://codereview.chromium.org/2447613003/diff/1/docs/language/dartLangSpec.tex File docs/language/dartLangSpec.tex (right): https://codereview.chromium.org/2447613003/diff/1/docs/language/dartLangSpec.tex#newcode5976 docs/language/dartLangSpec.tex:5976: It is a static warning $s$ is not a ...
4 years, 1 month ago (2016-10-24 18:38:25 UTC) #7
Bob Nystrom
SGTM. LGTM.
4 years, 1 month ago (2016-10-24 19:00:20 UTC) #8
eernst
OK, LGTM.
4 years, 1 month ago (2016-10-25 08:09:04 UTC) #9
Lasse Reichstein Nielsen
4 years, 1 month ago (2016-10-25 11:05:14 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
6e6ff496ed6bc0afd2af6c3d89590802cdecb7a9 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698