class Formatter: private TraversingVisitor
{
private:
- Stage *stage;
+ Stage *stage = 0;
std::string formatted;
- unsigned source_index;
- unsigned source_line;
- unsigned indent;
- bool parameter_list;
- bool omit_builtin;
- bool r_empty_name;
+ unsigned source_index = 0;
+ unsigned source_line = 1;
+ unsigned indent = 0;
+ bool parameter_list = false;
+ bool omit_builtin = false;
+ bool r_empty_name = false;
public:
- Formatter();
-
std::string apply(Stage &);
- std::string apply(Node &n) { n.visit(*this); return formatted; }
private:
void append(const std::string &);