MCPcopy Index your code
hub / github.com/sphinx-doc/sphinx / visit

Method visit

sphinx/pycode/parser.py:403–406  ·  view source on GitHub ↗

Updates self.previous to the given node.

(self, node: ast.AST)

Source from the content-addressed store, hash-verified

401 self.add_entry(varname)
402
403 def visit(self, node: ast.AST) -> None:
404 """Updates self.previous to the given node."""
405 super().visit(node)
406 self.previous = node
407
408 def visit_Import(self, node: ast.Import) -> None:
409 """Handles Import node and record the order of definitions."""

Callers 15

visit_TryMethod · 0.95
visit_ClassDefMethod · 0.95
visit_FunctionDefMethod · 0.95
parse_commentsMethod · 0.95
unparseFunction · 0.80
visit_argMethod · 0.80
visit_argumentsMethod · 0.80
visit_AttributeMethod · 0.80
visit_BoolOpMethod · 0.80
visit_CallMethod · 0.80
visit_DictMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected