tree-sitter-0.9.0.3: Unstable bindings for the tree-sitter parsing library.
Safe HaskellSafe-Inferred
LanguageHaskell2010

TreeSitter.Cursor

Synopsis

Documentation

data Cursor Source #

A cursor for traversing a tree.

This type is uninhabited and used only for type safety within Ptr values.

withCursor :: Ptr TSNode -> (Ptr Cursor -> IO a) -> IO a Source #

sizeOfCursor :: Int Source #

THe size of a Cursor in bytes. The tests verify that this value is the same as sizeof(TSTreeCursor).

ts_tree_cursor_new_p :: Ptr TSNode -> Ptr Cursor -> IO () Source #