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

Issue 2738053010: Add an argument to handleFunctionBodySkipped. (Closed)

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

Description

Add an argument to handleFunctionBodySkipped. This is necessary for listeners that skip function bodies but still parse expressions; it indicates to them whether they need to drop an expression from their stack. I will be adding such a listener in a future CL. R=ahe@google.com, scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/daa9d525e7d1f7b76a41b03fb6a0c8822efe4f08

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -4 lines) Patch
M pkg/compiler/lib/src/parser/node_listener.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/parser/listener.dart View 1 chunk +5 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/parser/parser.dart View 1 chunk +3 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/source/outline_builder.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (2 generated)
Paul Berry
3 years, 9 months ago (2017-03-10 20:10:55 UTC) #2
scheglov
LGTM
3 years, 9 months ago (2017-03-10 20:13:07 UTC) #3
ahe
LGTM? :-) I wonder if this is the right approach? An alternative is to have ...
3 years, 9 months ago (2017-03-13 12:19:32 UTC) #4
Paul Berry
On 2017/03/13 12:19:32, ahe wrote: > LGTM? :-) > > I wonder if this is ...
3 years, 9 months ago (2017-03-13 17:18:42 UTC) #5
Paul Berry
Committed patchset #1 (id:1) manually as daa9d525e7d1f7b76a41b03fb6a0c8822efe4f08 (presubmit successful).
3 years, 9 months ago (2017-03-13 17:46:40 UTC) #7
ahe
3 years, 9 months ago (2017-03-14 12:04:54 UTC) #8
Message was sent while issue was closed.
On 2017/03/13 17:18:42, Paul Berry wrote:
> On 2017/03/13 12:19:32, ahe wrote:
> > LGTM? :-)
> > 
> > I wonder if this is the right approach? An alternative is to have
> > skipFunctionBody call skipExpression instead of parseExpression.
> 
> Hmm, good question.  I'm going to interpret your "LGTM?" as reluctant approval
> and land this as is for now, since it unblocks other work I have in progress,
> but I am open to more discussion about it.

Absolutely, I intended for you to go ahead and do what you needed to do
short-term.
 
> In fact, I have been brewing some other ideas about how we might improve
> "skipped" functionality which I intend to talk about in the next day or two. 
> Let's revisit this CL at the time.

I look forward to that. There's a new crash in fasta due to "part of" with URLs.
I think this ties into skipping. I'll send you a CL, so you can factor that in
as well.

Powered by Google App Engine
This is Rietveld 408576698