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

Unified Diff: runtime/vm/parser.h

Issue 755053002: Fix parsing of awaitable expressions with nested functions (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.h
===================================================================
--- runtime/vm/parser.h (revision 41931)
+++ runtime/vm/parser.h (working copy)
@@ -27,6 +27,7 @@
class LocalVariable;
class SourceLabel;
template <typename T> class GrowableArray;
+class Parser;
struct CatchParamDesc;
class ClassDesc;
@@ -131,10 +132,7 @@
void AllocateVariables();
- void record_await() {
- have_seen_await_expr_ = true;
- }
- void reset_have_seen_await() { have_seen_await_expr_ = false; }
+ void record_await() { have_seen_await_expr_ = true; }
bool have_seen_await() const { return have_seen_await_expr_; }
void set_saved_try_ctx(LocalVariable* saved_try_ctx) {
@@ -178,6 +176,7 @@
Isolate* isolate_;
+ friend class Parser;
DISALLOW_COPY_AND_ASSIGN(ParsedFunction);
};
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698