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

Unified Diff: runtime/vm/ast.cc

Issue 460763002: Fix returning from async functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: first set of comments 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/ast.cc
diff --git a/runtime/vm/ast.cc b/runtime/vm/ast.cc
index 522e27e4b4a00bdd8e1485fa59030d2416bd2302..f3f0c027cd2667e146afff8df127548fd8552a3e 100644
--- a/runtime/vm/ast.cc
+++ b/runtime/vm/ast.cc
@@ -67,6 +67,14 @@ void SequenceNode::VisitChildren(AstNodeVisitor* visitor) const {
}
+void SequenceNode::Add(AstNode* node) {
+ if (node->IsReturnNode()) {
+ node->AsReturnNode()->set_scope(scope());
+ }
+ nodes_.Add(node);
+}
+
+
void PrimaryNode::VisitChildren(AstNodeVisitor* visitor) const {
}
« runtime/vm/ast.h ('K') | « runtime/vm/ast.h ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698