class documentation

A base class for writing AST visitors. Subclasses should define {visit,enter,leave}_X to process nodes of type X. If a visit method returns a non-None value, the visited node is replaced with that value. Attributes: _ast: Any module whose interface matches the standard ast library, such as typed_ast. The same module must be used to generate the AST to visit.

Method __init__ Undocumented
Method enter Does a pre-order traversal of the AST.
Method generic_visit Called when no visit function is found for a node type.
Method leave Called after visit() to do any cleanup that enter() needs.
Method visit Does a post-order traversal of the AST.
Method _call_visitor Undocumented
Method _children Children to recurse over.
Instance Variable _ast Undocumented
Instance Variable _node_children Undocumented
def enter(self, node): (source)

Does a pre-order traversal of the AST.

def leave(self, node): (source)

Called after visit() to do any cleanup that enter() needs.

def visit(self, node): (source)

Does a post-order traversal of the AST.

def _call_visitor(self, node): (source)

Undocumented

def _children(self, node): (source)

Children to recurse over.

Undocumented

_node_children = (source)

Undocumented