20 using ConstASTVisitor::operator();
21#define DECLARE(CLASS) void operator()(Const<CLASS>&) override;
27 std::ostream & indent()
const {
28 M_insist(
indent_ >= 0,
"Indent must not be negative! Missing increment or superfluous decrement?");
30 out <<
'\n' << std::string(2 *
indent_ - 2,
' ') <<
"` ";
35 void print_type(
const Expr &e)
const;
Dumps a textual representation of the AST to an output stream.
ASTDumper(std::ostream &out, int indent=0)
int indent_
the current level of indentation
std::ostream & out
the output stream to write to