MCPcopy Index your code
hub / github.com/RustPython/RustPython / visit

Method visit

Lib/ast.py:502–506  ·  view source on GitHub ↗

Visit a node.

(self, node)

Source from the content-addressed store, hash-verified

500 """
501
502 def visit(self, node):
503 """Visit a node."""
504 method = 'visit_' + node.__class__.__name__
505 visitor = getattr(self, method, self.generic_visit)
506 return visitor(node)
507
508 def generic_visit(self, node):
509 """Called if no explicit visitor function exists for a node."""

Callers 8

generic_visitMethod · 0.95
generic_visitMethod · 0.45
unparseFunction · 0.45
visit_BinOpMethod · 0.45
pFunction · 0.45
_create_treeFunction · 0.45
parse_test_importsFunction · 0.45
parse_lib_importsFunction · 0.45

Calls 1

getattrFunction · 0.85

Tested by

no test coverage detected