code: public static void markFunctionsDeleted(Node node, AbstractCompiler compiler) {
      if (node.isFunction()) {
        compiler.reportFunctionDeleted(node);
      }
  
      for (Node child = node.getFirstChild(); child != null; child = child.getNext()) {
        markFunctionsDeleted(child, compiler);
      }
    }
docs: Recurses through a tree, marking all function nodes deleted.