4 from Cython.Compiler.Visitor cimport (
5 CythonTransform, VisitorTransform, TreeVisitor,
6 ScopeTrackingTransform, EnvTransform)
8 cdef class NameNodeCollector(TreeVisitor):
11 cdef class SkipDeclarations: # (object):
14 cdef class NormalizeTree(CythonTransform):
15 cdef bint is_in_statlist
17 cpdef visit_StatNode(self, node, is_listcontainer=*)
19 cdef class PostParse(ScopeTrackingTransform):
20 cdef dict specialattribute_handlers
21 cdef size_t lambda_counter
22 cdef size_t genexpr_counter
23 cdef _visit_assignment_node(self, node, list expr_list)
26 #def eliminate_rhs_duplicates(list expr_list_list, list ref_node_sequence)
27 #def sort_common_subsequences(list items)
28 @cython.locals(starred_targets=Py_ssize_t, lhs_size=Py_ssize_t, rhs_size=Py_ssize_t)
29 cdef flatten_parallel_assignments(list input, list output)
30 cdef map_starred_assignment(list lhs_targets, list starred_assignments, list lhs_args, list rhs_args)
32 #class PxdPostParse(CythonTransform, SkipDeclarations):
33 #class InterpretCompilerDirectives(CythonTransform, SkipDeclarations):
34 #class WithTransform(CythonTransform, SkipDeclarations):
35 #class DecoratorTransform(CythonTransform, SkipDeclarations):
37 #class AnalyseDeclarationsTransform(EnvTransform):
39 cdef class AnalyseExpressionsTransform(CythonTransform):
42 cdef class ExpandInplaceOperators(EnvTransform):
45 cdef class AlignFunctionDefinitions(CythonTransform):
49 cdef class YieldNodeCollector(TreeVisitor):
50 cdef public list yields
51 cdef public list returns
52 cdef public bint has_return_value
54 cdef class MarkClosureVisitor(CythonTransform):
55 cdef bint needs_closure
57 cdef class CreateClosureClasses(CythonTransform):
63 cdef class GilCheck(VisitorTransform):
66 cdef bint nogil_declarator_only
68 cdef class TransformBuiltinMethods(EnvTransform):
69 cdef visit_cython_attribute(self, node)