convenience dump_ast function