code: public static void deleteChildren(Node n, AbstractCompiler compiler) {
      while (n.hasChildren()) {
        deleteNode(n.getFirstChild(), compiler);
      }
    }
docs: Permanently delete all the children of the given node, including reporting changes.