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

Issue 2728773002: Fix parsing [a]sync[*] function body modifiers with Fasta. (Closed)

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

Description

Fix parsing [a]sync[*] function body modifiers with Fasta. The Fasta'a parser is crazy as it is now. It says that something is a return statement, but it is actually an expression function body. That seems too much dart2js specific. R=paulberry@google.com, ahe@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/ce58e89d3cd5410a6786922460f26fc3c8971582

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use endExpressionFunctionBody() instead of endReturnStatement(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -60 lines) Patch
M pkg/analyzer/test/generated/parser_fasta_test.dart View 2 chunks +0 lines, -25 lines 0 comments Download
M pkg/compiler/lib/src/parser/node_listener.dart View 1 1 chunk +4 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart View 1 7 chunks +28 lines, -30 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/body_builder.dart View 1 1 chunk +6 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/parser/listener.dart View 1 1 chunk +4 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/parser/parser.dart View 1 2 chunks +4 lines, -4 lines 0 comments Download
M pkg/front_end/lib/src/fasta/source/diet_listener.dart View 1 chunk +2 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/source/stack_listener.dart View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
scheglov
3 years, 9 months ago (2017-03-01 22:34:30 UTC) #1
Paul Berry
https://codereview.chromium.org/2728773002/diff/1/pkg/front_end/lib/src/fasta/parser/listener.dart File pkg/front_end/lib/src/fasta/parser/listener.dart (right): https://codereview.chromium.org/2728773002/diff/1/pkg/front_end/lib/src/fasta/parser/listener.dart#newcode548 pkg/front_end/lib/src/fasta/parser/listener.dart:548: bool asExpressionBody, bool hasExpression, Token beginToken, Rather than add ...
3 years, 9 months ago (2017-03-01 22:42:55 UTC) #2
scheglov
PTAL https://codereview.chromium.org/2728773002/diff/1/pkg/front_end/lib/src/fasta/parser/listener.dart File pkg/front_end/lib/src/fasta/parser/listener.dart (right): https://codereview.chromium.org/2728773002/diff/1/pkg/front_end/lib/src/fasta/parser/listener.dart#newcode548 pkg/front_end/lib/src/fasta/parser/listener.dart:548: bool asExpressionBody, bool hasExpression, Token beginToken, On 2017/03/01 ...
3 years, 9 months ago (2017-03-01 23:04:49 UTC) #3
Paul Berry
lgtm
3 years, 9 months ago (2017-03-01 23:08:50 UTC) #4
scheglov
Committed patchset #2 (id:20001) manually as ce58e89d3cd5410a6786922460f26fc3c8971582 (presubmit successful).
3 years, 9 months ago (2017-03-02 00:20:27 UTC) #6
ahe
3 years, 9 months ago (2017-03-02 07:17:27 UTC) #7
Message was sent while issue was closed.
lgtm

Nice!

Powered by Google App Engine
This is Rietveld 408576698