class_docstr: JavaScript language domain.
class_docstr_tok: ["JavaScript","language","domain","."]
code: def clear_doc(self, docname: str) -> None:
      for fullname, (pkg_docname, _node_id, _l) in list(
          self.objects.items()
      ):
          if pkg_docname == docname:
              del self.objects[fullname]
      for modname, (pkg_docname, _node_id) in list(
          self.modules.items()
      ):
          if pkg_docname == docname:
              del self.modules[modname]
  
imports: from __future__ import annotations
  import contextlib
  from typing import TYPE_CHECKING, Any, cast
  from docutils import nodes
  from docutils.parsers.rst import directives
  from sphinx import addnodes
  from sphinx.directives import ObjectDescription
  from sphinx.domains import Domain, ObjType
  from sphinx.domains.python import _pseudo_parse_arglist
  from sphinx.locale import _, __
  from sphinx.roles import XRefRole
  from sphinx.util import logging
  from sphinx.util.docfields import Field, GroupedField, TypedField
  from sphinx.util.docutils import SphinxDirective
  from sphinx.util.nodes import make_id, make_refnode, nested_parse_with_titles
label_desc: Use image node_id 5 for calling the JavaScriptDomain obj's underlying member method code with example usage: obj.clear_doc(docname) without return types