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

Unified Diff: runtime/vm/parser.h

Issue 508643004: Fix scope/context behavior in await transformer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add await_is_keyword_ indicator to parser Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/parser.h
diff --git a/runtime/vm/parser.h b/runtime/vm/parser.h
index 13674985e6c5f2e1d0f476ca9b18de48534b6224..78d5261e207e7bc18c167835e16f74494db1a5a2 100644
--- a/runtime/vm/parser.h
+++ b/runtime/vm/parser.h
@@ -770,6 +770,10 @@ class Parser : public ValueObject {
// global variables.
bool is_top_level_;
+ // await_is_keyword_ is true if we are parsing an async function. In this
+ // context async is not treated as identifier but as primary.
hausner 2014/08/26 22:48:06 as a keyword.
Michael Lippautz (Google) 2014/08/26 23:01:44 Done.
+ bool await_is_keyword_;
+
// The member currently being parsed during "top level" parsing.
MemberDesc* current_member_;
« no previous file with comments | « runtime/vm/ast_transformer.cc ('k') | runtime/vm/parser.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698