MCPcopy Index your code
hub / github.com/python/cpython / visit

Method visit

Lib/ast.py:516–520  ·  view source on GitHub ↗

Visit a node.

(self, node)

Source from the content-addressed store, hash-verified

514 """
515
516 def visit(self, node):
517 """Visit a node."""
518 method = 'visit_' + node.__class__.__name__
519 visitor = getattr(self, method, self.generic_visit)
520 return visitor(node)
521
522 def generic_visit(self, node):
523 """Called if no explicit visitor function exists for a node."""

Callers 6

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

Calls

no outgoing calls

Tested by

no test coverage detected