class_docstr: JavaScript language domain.
class_docstr_tok: ["JavaScript","language","domain","."]
code: def note_object(
      self,
      fullname: str,
      objtype: str,
      node_id: str,
      location: Any = None,
  ) -> None:
      if fullname in self.objects:
          docname = self.objects[fullname][0]
          logger.warning(
              __("duplicate %s description of %s, other %s in %s"),
              objtype,
              fullname,
              objtype,
              docname,
              location=location,
          )
      self.objects[fullname] = (self.env.docname, node_id, objtype)
  
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 2 for calling the JavaScriptDomain obj's underlying member method code with example usage: obj.note_object(fullname, objtype, node_id, location) without return types