3 cdef class TreeVisitor:
4 cdef public list access_path
5 cdef dict dispatch_table
9 cdef find_handler(self, obj)
10 cdef _visitchild(self, child, parent, attrname, idx)
11 cdef dict _visitchildren(self, parent, attrs)
12 cpdef visitchildren(self, parent, attrs=*)
14 cdef class VisitorTransform(TreeVisitor):
15 cpdef visitchildren(self, parent, attrs=*)
16 cpdef recurse_to_children(self, node)
18 cdef class CythonTransform(VisitorTransform):
20 cdef public current_directives
22 cdef class ScopeTrackingTransform(CythonTransform):
23 cdef public scope_type
24 cdef public scope_node
25 cdef visit_scope(self, node, scope_type)
27 cdef class EnvTransform(CythonTransform):
28 cdef public list env_stack
30 cdef class MethodDispatcherTransform(EnvTransform):
32 cdef _visit_binop_node(self, node)
34 cdef _find_handler(self, match_name, bint has_kwargs)
36 cdef _delegate_to_assigned_value(self, node, function, arg_list, kwargs)
38 cdef _dispatch_to_handler(self, node, function, arg_list, kwargs)
40 cdef _dispatch_to_method_handler(self, attr_name, self_arg,
41 is_unbound_method, type_name,
42 node, function, arg_list, kwargs)
44 cdef class RecursiveNodeReplacer(VisitorTransform):
48 cdef class NodeFinder(TreeVisitor):
50 cdef public bint found