MCPcopy Create free account
hub / github.com/Kitware/CMake / note_object

Method note_object

Utilities/Sphinx/cmake.py:734–743  ·  view source on GitHub ↗
(self, objtype: str, name: str, target_id: str,
                    node_id: str, location: Any = None)

Source from the content-addressed store, hash-verified

732 contnode, target)
733
734 def note_object(self, objtype: str, name: str, target_id: str,
735 node_id: str, location: Any = None):
736 if target_id in self.data['objects']:
737 other = self.data['objects'][target_id].docname
738 logger.warning(
739 f'CMake object {target_id!r} also described in {other!r}',
740 location=location)
741
742 self.data['objects'][target_id] = ObjectEntry(
743 self.env.docname, objtype, node_id, name)
744
745 def get_objects(self):
746 for refname, obj in self.data['objects'].items():

Callers 3

applyMethod · 0.80
add_target_and_indexMethod · 0.80
add_target_and_indexMethod · 0.80

Calls 1

ObjectEntryClass · 0.85

Tested by

no test coverage detected