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

Issue 1573153003: Add flag to make await and yield keywords (Closed)

Created:
4 years, 11 months ago by hausner
Modified:
4 years, 11 months ago
Reviewers:
zra, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Ivan Posva
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add flag to make await and yield keywords Using --await_is_kw forces the parser to treat await and yield as keywords even in synchronous code. BUG= R=iposva@google.com, zra@google.com Committed: https://github.com/dart-lang/sdk/commit/0964f26d24e30843ec7121073fb1012785a50ba4

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M runtime/vm/parser.cc View 1 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
hausner
4 years, 11 months ago (2016-01-11 23:26:14 UTC) #3
zra
lgtm https://codereview.chromium.org/1573153003/diff/1/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://codereview.chromium.org/1573153003/diff/1/runtime/vm/parser.cc#newcode55 runtime/vm/parser.cc:55: DEFINE_FLAG(bool, await_is_kw, false, I'll have to hardcode this ...
4 years, 11 months ago (2016-01-12 05:29:39 UTC) #4
Ivan Posva
Whitespace nit, otherwise LGTM. -Ivan https://codereview.chromium.org/1573153003/diff/1/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://codereview.chromium.org/1573153003/diff/1/runtime/vm/parser.cc#newcode10190 runtime/vm/parser.cc:10190: return (FLAG_await_is_kw ||await_is_keyword_) && ...
4 years, 11 months ago (2016-01-12 06:14:32 UTC) #6
hausner
https://codereview.chromium.org/1573153003/diff/1/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://codereview.chromium.org/1573153003/diff/1/runtime/vm/parser.cc#newcode55 runtime/vm/parser.cc:55: DEFINE_FLAG(bool, await_is_kw, false, On 2016/01/12 05:29:39, zra wrote: > ...
4 years, 11 months ago (2016-01-12 17:49:51 UTC) #7
hausner
Committed patchset #3 (id:40001) manually as 0964f26d24e30843ec7121073fb1012785a50ba4 (presubmit successful).
4 years, 11 months ago (2016-01-12 17:52:55 UTC) #9
zra
4 years, 11 months ago (2016-01-12 17:54:22 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/1573153003/diff/1/runtime/vm/parser.cc
File runtime/vm/parser.cc (right):

https://codereview.chromium.org/1573153003/diff/1/runtime/vm/parser.cc#newcode55
runtime/vm/parser.cc:55: DEFINE_FLAG(bool, await_is_kw, false,
On 2016/01/12 17:49:51, hausner wrote:
> On 2016/01/12 05:29:39, zra wrote:
> > I'll have to hardcode this flag into the Mojo source, and spelling out
> 'keyword'
> > will probably make it more readable there.
> 
> Done that for you, even though I had to break up the expressions over two
lines
> as a result :)

Thanks =)

Powered by Google App Engine
This is Rietveld 408576698