Emulate ASTDumper