declare some internal transform methods final
authorStefan Behnel <stefan_ml@behnel.de>
Thu, 21 Feb 2013 23:57:07 +0000 (00:57 +0100)
committerStefan Behnel <stefan_ml@behnel.de>
Thu, 21 Feb 2013 23:57:07 +0000 (00:57 +0100)
Cython/Compiler/Visitor.pxd

index 82b015c..6eaf2cc 100644 (file)
@@ -28,8 +28,13 @@ cdef class EnvTransform(CythonTransform):
     cdef public list env_stack
 
 cdef class MethodDispatcherTransform(EnvTransform):
+    @cython.final
+    cdef _visit_binop_node(self, node)
+    @cython.final
     cdef _find_handler(self, match_name, bint has_kwargs)
+    @cython.final
     cdef _dispatch_to_handler(self, node, function, arg_list, kwargs)
+    @cython.final
     cdef _dispatch_to_method_handler(self, attr_name, self_arg,
                                      is_unbound_method, type_name,
                                      node, arg_list, kwargs)