code: ParseTree toParseTree() {
      List<ParseTree> children = new ArrayList<ParseTree>();
      for (TreeNode child = latestChild; child != null; child = child.previous) {
        children.add(child.toParseTree());
      }
      Collections.reverse(children);
      return new ParseTree(name, beginIndex, endIndex, result, children);
    }
docs: Converts this node into a {@link ParseTree} representation.