Commit 71b6938a authored by Stefan Behnel's avatar Stefan Behnel

declare purely internal method of Visitor class as 'cdef'

parent cbcec79e
...@@ -9,7 +9,7 @@ cdef class TreeVisitor(BasicVisitor): ...@@ -9,7 +9,7 @@ cdef class TreeVisitor(BasicVisitor):
cdef public list access_path cdef public list access_path
cpdef visitchild(self, child, parent, attrname, idx) cpdef visitchild(self, child, parent, attrname, idx)
@cython.locals(idx=int) @cython.locals(idx=int)
cpdef dict _visitchildren(self, parent, attrs) cdef dict _visitchildren(self, parent, attrs)
# cpdef visitchildren(self, parent, attrs=*) # cpdef visitchildren(self, parent, attrs=*)
cdef class VisitorTransform(TreeVisitor): cdef class VisitorTransform(TreeVisitor):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment