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

Unified Diff: runtime/vm/ast_printer.h

Issue 23923005: Change --print-ast output to be more regular. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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_printer.h
diff --git a/runtime/vm/ast_printer.h b/runtime/vm/ast_printer.h
index d61a802be62ca418ea22a3eb1a2df256c66bb0c3..f64d97958022265dce692928658d19959cac7dd7 100644
--- a/runtime/vm/ast_printer.h
+++ b/runtime/vm/ast_printer.h
@@ -21,10 +21,11 @@ class AstPrinter : public AstNodeVisitor {
static void PrintLocalScope(const LocalScope* scope, int variable_index);
-#define DEFINE_VISITOR_FUNCTION(type, name) \
- virtual void Visit##type(type* node);
-NODE_LIST(DEFINE_VISITOR_FUNCTION)
-#undef DEFINE_VISITOR_FUNCTION
+#define DECLARE_VISITOR_FUNCTION(BaseName) \
+ virtual void Visit##BaseName##Node(BaseName##Node* node);
+
+ FOR_EACH_NODE(DECLARE_VISITOR_FUNCTION)
+#undef DECLARE_VISITOR_FUNCTION
private:
AstPrinter();
« no previous file with comments | « runtime/vm/ast.cc ('k') | runtime/vm/ast_printer.cc » ('j') | runtime/vm/ast_printer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698