| Index: src/prettyprinter.h
|
| diff --git a/src/prettyprinter.h b/src/prettyprinter.h
|
| index a57fc61d541074ae20e4047ff3242bc575061a92..284a93f32aa10300e61d06e4c58854bf9916aafb 100644
|
| --- a/src/prettyprinter.h
|
| +++ b/src/prettyprinter.h
|
| @@ -51,6 +51,7 @@ class PrettyPrinter: public AstVisitor {
|
| // Print a node to stdout.
|
| static void PrintOut(AstNode* node);
|
|
|
| + virtual void VisitSlot(Slot* node);
|
| // Individual nodes
|
| #define DECLARE_VISIT(type) virtual void Visit##type(type* node);
|
| AST_NODE_LIST(DECLARE_VISIT)
|
| @@ -85,9 +86,11 @@ class AstPrinter: public PrettyPrinter {
|
| const char* PrintProgram(FunctionLiteral* program);
|
|
|
| // Individual nodes
|
| + virtual void VisitSlot(Slot* node);
|
| #define DECLARE_VISIT(type) virtual void Visit##type(type* node);
|
| AST_NODE_LIST(DECLARE_VISIT)
|
| #undef DECLARE_VISIT
|
| +
|
| private:
|
| friend class IndentedScope;
|
| void PrintIndented(const char* txt);
|
| @@ -160,6 +163,7 @@ class JsonAstBuilder: public PrettyPrinter {
|
| void AddAttribute(const char* name, bool value);
|
|
|
| // AST node visit functions.
|
| + virtual void VisitSlot(Slot* node);
|
| #define DECLARE_VISIT(type) virtual void Visit##type(type* node);
|
| AST_NODE_LIST(DECLARE_VISIT)
|
| #undef DECLARE_VISIT
|
|
|