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

Side by Side Diff: runtime/vm/ast_printer.cc

Issue 484933003: Await it! (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/ast_printer.h" 5 #include "vm/ast_printer.h"
6 6
7 #include "vm/handles.h" 7 #include "vm/handles.h"
8 #include "vm/object.h" 8 #include "vm/object.h"
9 #include "vm/os.h" 9 #include "vm/os.h"
10 #include "vm/parser.h" 10 #include "vm/parser.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 node->VisitChildren(this); 150 node->VisitChildren(this);
151 OS::Print(")"); 151 OS::Print(")");
152 } 152 }
153 153
154 154
155 void AstPrinter::VisitAwaitNode(AwaitNode* node) { 155 void AstPrinter::VisitAwaitNode(AwaitNode* node) {
156 VisitGenericAstNode(node); 156 VisitGenericAstNode(node);
157 } 157 }
158 158
159 159
160 void AstPrinter::VisitAwaitMarkerNode(AwaitMarkerNode* node) {
161 VisitGenericAstNode(node);
162 }
163
164
160 void AstPrinter::VisitPrimaryNode(PrimaryNode* node) { 165 void AstPrinter::VisitPrimaryNode(PrimaryNode* node) {
161 OS::Print("*****%s***** \"%s\")", 166 OS::Print("*****%s***** \"%s\")",
162 node->PrettyName(), 167 node->PrettyName(),
163 node->primary().ToCString()); 168 node->primary().ToCString());
164 } 169 }
165 170
166 171
167 void AstPrinter::VisitComparisonNode(ComparisonNode* node) { 172 void AstPrinter::VisitComparisonNode(ComparisonNode* node) {
168 OS::Print("(%s %s ", node->PrettyName(), node->TokenName()); 173 OS::Print("(%s %s ", node->PrettyName(), node->TokenName());
169 node->VisitChildren(this); 174 node->VisitChildren(this);
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 ASSERT(node_sequence != NULL); 510 ASSERT(node_sequence != NULL);
506 AstPrinter ast_printer; 511 AstPrinter ast_printer;
507 const char* function_name = 512 const char* function_name =
508 parsed_function.function().ToFullyQualifiedCString(); 513 parsed_function.function().ToFullyQualifiedCString();
509 OS::Print("Ast for function '%s' {\n", function_name); 514 OS::Print("Ast for function '%s' {\n", function_name);
510 node_sequence->Visit(&ast_printer); 515 node_sequence->Visit(&ast_printer);
511 OS::Print("}\n"); 516 OS::Print("}\n");
512 } 517 }
513 518
514 } // namespace dart 519 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/ast.h ('k') | runtime/vm/ast_transformer.h » ('j') | runtime/vm/ast_transformer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698