OLD | NEW |
(Empty) | |
| 1 cimport cython |
| 2 |
| 3 cdef class TreeVisitor: |
| 4 cdef public list access_path |
| 5 cdef dict dispatch_table |
| 6 |
| 7 cpdef visit(self, obj) |
| 8 cdef _visit(self, obj) |
| 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=*) |
| 13 |
| 14 cdef class VisitorTransform(TreeVisitor): |
| 15 cpdef visitchildren(self, parent, attrs=*) |
| 16 cpdef recurse_to_children(self, node) |
| 17 |
| 18 cdef class CythonTransform(VisitorTransform): |
| 19 cdef public context |
| 20 cdef public current_directives |
| 21 |
| 22 cdef class ScopeTrackingTransform(CythonTransform): |
| 23 cdef public scope_type |
| 24 cdef public scope_node |
| 25 cdef visit_scope(self, node, scope_type) |
| 26 |
| 27 cdef class EnvTransform(CythonTransform): |
| 28 cdef public list env_stack |
| 29 |
| 30 cdef class MethodDispatcherTransform(EnvTransform): |
| 31 @cython.final |
| 32 cdef _visit_binop_node(self, node) |
| 33 @cython.final |
| 34 cdef _find_handler(self, match_name, bint has_kwargs) |
| 35 @cython.final |
| 36 cdef _delegate_to_assigned_value(self, node, function, arg_list, kwargs) |
| 37 @cython.final |
| 38 cdef _dispatch_to_handler(self, node, function, arg_list, kwargs) |
| 39 @cython.final |
| 40 cdef _dispatch_to_method_handler(self, attr_name, self_arg, |
| 41 is_unbound_method, type_name, |
| 42 node, function, arg_list, kwargs) |
| 43 |
| 44 cdef class RecursiveNodeReplacer(VisitorTransform): |
| 45 cdef public orig_node |
| 46 cdef public new_node |
| 47 |
| 48 cdef class NodeFinder(TreeVisitor): |
| 49 cdef node |
| 50 cdef public bint found |
OLD | NEW |