code: public static String dump(TreeNode node) {
      DebugASTDump dumper = new DebugASTDump();
      node.accept(dumper);
      dumper.sb.newline();
      return dumper.toString();
    }
docs: Dumps an AST node as a string.