unsigned indent;
bool parameter_list;
bool omit_builtin;
+ bool r_empty_name;
public:
Formatter();
- const std::string &apply(Stage &);
- const std::string &apply(Node &n) { n.visit(*this); return formatted; }
+ std::string apply(Stage &);
private:
void append(const std::string &);
void set_source(unsigned, unsigned);
virtual void visit(Block &);
+ void visit_expression(Expression &, const Operator *, bool);
virtual void visit(Literal &);
- virtual void visit(ParenthesizedExpression &);
virtual void visit(VariableReference &);
virtual void visit(InterfaceBlockReference &);
virtual void visit(MemberAccess &);