Did I find the right examples for you? yes no

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/c/y/CythonCTypesBackend-HEAD/Cython/CTypesBackend/CDefToDefTransform.py   CythonCTypesBackend(Download)
from Cython.Compiler.Visitor import VisitorTransform
from Cython.Compiler.Nodes import CSimpleBaseTypeNode
 
class CDefToDefTransform(VisitorTransform):
    # Does not really turns cdefed function into defed function, it justs kills
    def visit_CFuncDefNode(self, node):
        oldbase_type = node.base_type
        node.base_type = CSimpleBaseTypeNode(0)
        node.base_type.name = None
        node.base_type.is_self_arg = False
    def strip_args_types(self, args):
        for arg in args:
            oldbase_type = arg.base_type
            arg.base_type = CSimpleBaseTypeNode(0)
            arg.base_type.name = None

src/c/y/CythonCTypesBackend-HEAD/Cython/CTypesBackend/CDeftoDefTransform.py   CythonCTypesBackend(Download)
from Cython.Compiler.Visitor import VisitorTransform
from Cython.Compiler.Nodes import CSimpleBaseTypeNode
 
class CDefToDefTransform(VisitorTransform):
    visit_Node = VisitorTransform.recurse_to_children
 
    def visit_CArgDeclNode(self, node):
        node.base_type = CSimpleBaseTypeNode()