Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / third_party / cython / src / Cython / Compiler / Visitor.pxd
blob795eb9c2c6a3871b8f101bdb3b8b741d4ccae7a1
1 cimport cython
3 cdef class TreeVisitor:
4     cdef public list access_path
5     cdef dict dispatch_table
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=*)
14 cdef class VisitorTransform(TreeVisitor):
15     cpdef visitchildren(self, parent, attrs=*)
16     cpdef recurse_to_children(self, node)
18 cdef class CythonTransform(VisitorTransform):
19     cdef public context
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):
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)
44 cdef class RecursiveNodeReplacer(VisitorTransform):
45      cdef public orig_node
46      cdef public new_node
48 cdef class NodeFinder(TreeVisitor):
49     cdef node
50     cdef public bint found