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

Issue 2926533004: Semantic checks on switch cases and fall-through errors. (Closed)

Created:
3 years, 6 months ago by ahe
Modified:
3 years, 6 months ago
CC:
reviews_dartlang.org, dart-fe-team+reviews_google.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Semantic checks on switch cases and fall-through errors. R=paulberry@google.com Committed: https://github.com/dart-lang/sdk/commit/c4a8b146e004e95311b20288b9bcf0a5e16b1d5f

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -7 lines) Patch
M pkg/front_end/lib/src/fasta/kernel/body_builder.dart View 1 4 chunks +45 lines, -2 lines 0 comments Download
M pkg/front_end/lib/src/fasta/parser/listener.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/source/stack_listener.dart View 1 chunk +5 lines, -0 lines 0 comments Download
M pkg/front_end/test/fasta/compile.status View 1 chunk +0 lines, -1 line 0 comments Download
M tests/co19/co19-kernel.status View 1 chunk +0 lines, -2 lines 0 comments Download
M tests/language/language_kernel.status View 1 chunk +0 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 11 (2 generated)
ahe
3 years, 6 months ago (2017-06-06 18:17:38 UTC) #2
Paul Berry
https://codereview.chromium.org/2926533004/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart File pkg/front_end/lib/src/fasta/kernel/body_builder.dart (right): https://codereview.chromium.org/2926533004/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart#newcode2558 pkg/front_end/lib/src/fasta/kernel/body_builder.dart:2558: while (lastNode is Block || lastNode is LabeledStatement) { ...
3 years, 6 months ago (2017-06-06 18:32:26 UTC) #3
ahe
Thank you, Paul. Good catch! https://codereview.chromium.org/2926533004/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart File pkg/front_end/lib/src/fasta/kernel/body_builder.dart (right): https://codereview.chromium.org/2926533004/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart#newcode2558 pkg/front_end/lib/src/fasta/kernel/body_builder.dart:2558: while (lastNode is Block ...
3 years, 6 months ago (2017-06-06 18:40:05 UTC) #4
Paul Berry
https://codereview.chromium.org/2926533004/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart File pkg/front_end/lib/src/fasta/kernel/body_builder.dart (right): https://codereview.chromium.org/2926533004/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart#newcode2558 pkg/front_end/lib/src/fasta/kernel/body_builder.dart:2558: while (lastNode is Block || lastNode is LabeledStatement) { ...
3 years, 6 months ago (2017-06-06 18:55:37 UTC) #5
ahe
https://codereview.chromium.org/2926533004/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart File pkg/front_end/lib/src/fasta/kernel/body_builder.dart (right): https://codereview.chromium.org/2926533004/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart#newcode2558 pkg/front_end/lib/src/fasta/kernel/body_builder.dart:2558: while (lastNode is Block || lastNode is LabeledStatement) { ...
3 years, 6 months ago (2017-06-06 19:02:16 UTC) #6
Paul Berry
lgtm assuming you make the change you proposed in message 4 https://codereview.chromium.org/2926533004/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart File pkg/front_end/lib/src/fasta/kernel/body_builder.dart (right): ...
3 years, 6 months ago (2017-06-06 19:18:09 UTC) #7
ahe
The solution was a little bit different than we discussed, and I have added comments ...
3 years, 6 months ago (2017-06-07 09:07:25 UTC) #8
ahe
Committed patchset #2 (id:20001) manually as c4a8b146e004e95311b20288b9bcf0a5e16b1d5f (presubmit successful).
3 years, 6 months ago (2017-06-07 09:26:40 UTC) #10
Paul Berry
3 years, 6 months ago (2017-06-07 14:14:24 UTC) #11
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698