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

Issue 2951453002: [kernel] Make fasta call a new constructor on FallThroughError (Closed)

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

Description

[kernel] Make fasta call a new constructor on FallThroughError On a switch fall through error, Fasta currently generates ``` throw new core::FallThroughError::•(); ``` which generates the error-message via the VM: ``` 'null': Switch case fall-through at line null. ``` This introduces a new constructor taking a url and a linenumber, which then can give a better error message. BUG= R=ahe@google.com Committed: https://github.com/dart-lang/sdk/commit/be9a3043aaa64ded865b0cacececf4d3a6ddb965

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -15 lines) Patch
M pkg/front_end/lib/src/fasta/kernel/body_builder.dart View 1 2 chunks +10 lines, -2 lines 0 comments Download
M pkg/front_end/lib/src/fasta/loader.dart View 1 1 chunk +0 lines, -2 lines 0 comments Download
M pkg/front_end/lib/src/fasta/messages.dart View 1 1 chunk +6 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/target_implementation.dart View 1 1 chunk +0 lines, -10 lines 0 comments Download
M pkg/kernel/lib/core_types.dart View 3 chunks +7 lines, -0 lines 0 comments Download
M runtime/lib/errors_patch.dart View 1 chunk +4 lines, -1 line 0 comments Download
M sdk/lib/_internal/js_runtime/lib/core_patch.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M sdk/lib/core/errors.dart View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
jensj
I've tried doing something a long the lines of what we discussed per email. I'm ...
3 years, 6 months ago (2017-06-19 13:45:51 UTC) #2
ahe
LGTM with comments. https://codereview.chromium.org/2951453002/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart File pkg/front_end/lib/src/fasta/kernel/body_builder.dart (left): https://codereview.chromium.org/2951453002/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart#oldcode2999 pkg/front_end/lib/src/fasta/kernel/body_builder.dart:2999: Builder constructor = library.loader.getFallThroughError(); Would you ...
3 years, 6 months ago (2017-06-19 14:33:07 UTC) #3
jensj
So this file is now different: pkg/front_end/testcases/rasta/switch_fall_through.dart.direct.expect do I update it manually or is there ...
3 years, 6 months ago (2017-06-20 11:24:49 UTC) #4
ahe
On 2017/06/20 11:24:49, jensj wrote: > So this file is now different: > pkg/front_end/testcases/rasta/switch_fall_through.dart.direct.expect > ...
3 years, 6 months ago (2017-06-20 12:01:54 UTC) #5
ahe
On 2017/06/20 11:24:49, jensj wrote: > So this file is now different: > pkg/front_end/testcases/rasta/switch_fall_through.dart.direct.expect > ...
3 years, 6 months ago (2017-06-20 12:01:54 UTC) #6
jensj
3 years, 6 months ago (2017-06-21 06:41:07 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
be9a3043aaa64ded865b0cacececf4d3a6ddb965 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698