class_docstr: JavaScript language domain.
class_docstr_tok: ["JavaScript","language","domain","."]
code: def merge_domaindata(
      self, docnames: list[str], otherdata: dict[str, Any]
  ) -> None:
      # XXX check duplicates
      for fullname, (fn, node_id, objtype) in otherdata[
          "objects"
      ].items():
          if fn in docnames:
              self.objects[fullname] = (fn, node_id, objtype)
      for mod_name, (pkg_docname, node_id) in otherdata[
          "modules"
      ].items():
          if pkg_docname in docnames:
              self.modules[mod_name] = (pkg_docname, node_id)
  
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 6 for calling the JavaScriptDomain obj's underlying member method code with example usage: obj.merge_domaindata(docnames, otherdata) without return types