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

Unified Diff: runtime/vm/ast_printer.cc

Issue 484933003: Await it! (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase 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
« no previous file with comments | « runtime/vm/ast.h ('k') | runtime/vm/ast_transformer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast_printer.cc
diff --git a/runtime/vm/ast_printer.cc b/runtime/vm/ast_printer.cc
index e20d2c17a9fa9549df6269850c82e252294ebcea..f1f1a8bfce9b599316447a1c65105dbe35cd4243 100644
--- a/runtime/vm/ast_printer.cc
+++ b/runtime/vm/ast_printer.cc
@@ -46,6 +46,12 @@ void AstPrinter::VisitArgumentListNode(ArgumentListNode* arguments) {
void AstPrinter::VisitReturnNode(ReturnNode* node) {
VisitGenericAstNode(node);
+ OS::Print("(%s %s",
+ node->PrettyName(),
+ (node->return_type() == ReturnNode::kContinuation) ?
+ "continuation" : "");
+ node->VisitChildren(this);
+ OS::Print(")");
}
@@ -157,6 +163,11 @@ void AstPrinter::VisitAwaitNode(AwaitNode* node) {
}
+void AstPrinter::VisitAwaitMarkerNode(AwaitMarkerNode* node) {
+ VisitGenericAstNode(node);
+}
+
+
void AstPrinter::VisitPrimaryNode(PrimaryNode* node) {
OS::Print("*****%s***** \"%s\")",
node->PrettyName(),
« no previous file with comments | « runtime/vm/ast.h ('k') | runtime/vm/ast_transformer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698