MCPcopy
hub / github.com/sphinx-doc/sphinx / set_source_info

Method set_source_info

sphinx/util/docutils.py:691–695  ·  view source on GitHub ↗
(self, node: Node, lineno: int | None = None)

Source from the content-addressed store, hash-verified

689 return source, line
690
691 def set_source_info(self, node: Node, lineno: int | None = None) -> None:
692 # .. versionadded:: 2.0
693 source, line = self.get_source_info(lineno)
694 node.source = str(source) if source is not None else None
695 node.line = line
696
697 def get_location(self) -> str:
698 """Get current location info for logging.

Callers 15

create_xref_nodeMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45

Calls 1

get_source_infoMethod · 0.95

Tested by 2

runMethod · 0.36