| 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();
|
|
|