Update mojo sdk to rev 1dc8a9a5db73d3718d99917fadf31f5fb2ebad4f
[chromium-blink-merge.git] / third_party / cython / src / Cython / Compiler / ParseTreeTransforms.pxd
blob58d4795ae0fba7a1f0af6b61ab3ec595971c60a4
2 cimport cython
4 from Cython.Compiler.Visitor cimport (
5     CythonTransform, VisitorTransform, TreeVisitor,
6     ScopeTrackingTransform, EnvTransform)
8 cdef class NameNodeCollector(TreeVisitor):
9     cdef list name_nodes
11 cdef class SkipDeclarations: # (object):
12     pass
14 cdef class NormalizeTree(CythonTransform):
15     cdef bint is_in_statlist
16     cdef bint is_in_expr
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):
40     pass
42 cdef class ExpandInplaceOperators(EnvTransform):
43     pass
45 cdef class AlignFunctionDefinitions(CythonTransform):
46     cdef dict directives
47     cdef scope
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):
58     cdef list path
59     cdef bint in_lambda
60     cdef module_scope
61     cdef generator_class
63 cdef class GilCheck(VisitorTransform):
64     cdef list env_stack
65     cdef bint nogil
66     cdef bint nogil_declarator_only
68 cdef class TransformBuiltinMethods(EnvTransform):
69     cdef visit_cython_attribute(self, node)