support for lambda inside of generator expressions
[cython.git] / Cython / Compiler / Visitor.pxd
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     @cython.locals(idx=int)
12     cdef dict _visitchildren(self, parent, attrs)
13     cpdef visitchildren(self, parent, attrs=*)
14
15 cdef class VisitorTransform(TreeVisitor):
16     cpdef visitchildren(self, parent, attrs=*)
17     cpdef recurse_to_children(self, node)
18
19 cdef class CythonTransform(VisitorTransform):
20     cdef public context
21     cdef public current_directives
22
23 cdef class ScopeTrackingTransform(CythonTransform):
24     cdef public scope_type
25     cdef public scope_node
26     cdef visit_scope(self, node, scope_type)
27
28 cdef class EnvTransform(CythonTransform):
29     cdef public list env_stack
30
31 cdef class RecursiveNodeReplacer(VisitorTransform):
32      cdef public orig_node
33      cdef public new_node