Add YieldNodeCollector definitions to pxd
authorVitja Makarov <vitja.makarov@gmail.com>
Wed, 12 Jan 2011 20:41:37 +0000 (23:41 +0300)
committerVitja Makarov <vitja.makarov@gmail.com>
Wed, 12 Jan 2011 20:41:37 +0000 (23:41 +0300)
Cython/Compiler/ParseTreeTransforms.pxd

index a4c2368c1a5504833402022e385b1234b98caf97..1ac7a4128ac652dd9175418f484f60d4355fd51c 100644 (file)
@@ -45,6 +45,11 @@ cdef class AlignFunctionDefinitions(CythonTransform):
     cdef dict directives
     cdef scope
 
+cdef class YieldNodeCollector(TreeVisitor):
+    cdef list yields
+    cdef list returns
+    cdef bint has_return_value
+
 cdef class MarkClosureVisitor(CythonTransform):
     cdef bint needs_closure