From 2afce60a25b9d19b24c5420b8d6a049769e519bb Mon Sep 17 00:00:00 2001 From: omalinov Date: Wed, 24 Oct 2018 21:43:14 +0300 Subject: ASTParser proper intendation. (#16) --- JSImpl/src/ASTPrinter.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'JSImpl/src/ASTPrinter.h') diff --git a/JSImpl/src/ASTPrinter.h b/JSImpl/src/ASTPrinter.h index 9d74fa6..cdc0743 100644 --- a/JSImpl/src/ASTPrinter.h +++ b/JSImpl/src/ASTPrinter.h @@ -28,7 +28,14 @@ public: virtual void Visit(FunctionDeclaration* e) override; virtual void Visit(TopStatements* e) override; virtual void Visit(EmptyExpression* e) override; + + inline void Enter(); + inline void Exit(); + inline void NoIndentNextAccept(); + inline void IndentNextAccept(); + inline void InsertIndent(); private: std::ostream& os; - + unsigned nest_level; + bool indent_next_accept; }; -- cgit v1.3.1-23-gd82d