MCPcopy Create free account
hub / github.com/sphinx-doc/sphinx / parse_definition

Method parse_definition

sphinx/pycode/parser.py:623–627  ·  view source on GitHub ↗

Parse the location of definitions from the code.

(self)

Source from the content-addressed store, hash-verified

621 self.overloads = picker.overloads
622
623 def parse_definition(self) -> None:
624 """Parse the location of definitions from the code."""
625 parser = DefinitionFinder(self.code.splitlines(True))
626 parser.parse()
627 self.definitions = parser.definitions

Callers 1

parseMethod · 0.95

Calls 2

parseMethod · 0.95
DefinitionFinderClass · 0.85

Tested by

no test coverage detected