tree-sitter-0.7.1.0: Unstable bindings for the tree-sitter parsing library.

Safe HaskellNone
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).