(cursor, client_data, client_visitor = default_visitor)
return clang.cindex.conf.lib.clang_visitChildren(cursor, clang.cindex.callbacks['cursor_visit'](visitor), client_data)
Traverse AST using the client provided visitor.
Traverse AST using the client provided visitor.
Traverse AST using the client provided visitor .
def traverse(cursor, client_data, client_visitor = default_visitor):
    """Traverse AST using the client provided visitor."""

    def visitor(child, parent, client_data):
        assert child != clang.cindex.conf.lib.clang_getNullCursor()
        child._tu = cursor._tu
        child.ast_parent = parent
        return client_visitor(child, parent, client_data)

    return clang.cindex.conf.lib.clang_visitChildren(cursor, clang.cindex.callbacks['cursor_visit'](visitor), client_data)
def traverse ( cursor , client_data , client_visitor = default_visitor ) : def visitor ( child , parent , client_data ) : assert child != clang . cindex . conf . lib . clang_getNullCursor ( ) child . _tu = cursor . _tu child . ast_parent = parent return client_visitor ( child , parent , client_data ) return clang . cindex . conf . lib . clang_visitChildren ( cursor , clang . cindex . callbacks [ 'cursor_visit' ] ( visitor ) , client_data )