Safe Haskell | None |
---|---|
Language | Haskell2010 |
TreeSitter.Cursor
Synopsis
- data Cursor = Cursor
- sizeOfCursor :: Int
- ts_tree_cursor_new_p :: Ptr TSNode -> Ptr Cursor -> IO ()
- ts_tree_cursor_delete :: Ptr Cursor -> IO ()
- ts_tree_cursor_reset_p :: Ptr Cursor -> Ptr TSNode -> IO ()
- ts_tree_cursor_current_node_p :: Ptr Cursor -> Ptr TSNode -> IO ()
- ts_tree_cursor_current_field_name :: Ptr Cursor -> IO CString
- ts_tree_cursor_current_field_id :: Ptr Cursor -> IO FieldId
- ts_tree_cursor_goto_parent :: Ptr Cursor -> IO Bool
- ts_tree_cursor_goto_next_sibling :: Ptr Cursor -> IO Bool
- ts_tree_cursor_goto_first_child :: Ptr Cursor -> IO Bool
- ts_tree_cursor_goto_first_child_for_byte :: Ptr Cursor -> Word32 -> IO Int64
Documentation
A cursor for traversing a tree.
Note that we do not define Eq
, Ord
, or Storable
instances, as the underlying TSTreeCursor
type is not usefully copyable.
Constructors
Cursor |
sizeOfCursor :: Int Source #
THe size of a Cursor
in bytes. The tests verify that this value is the same as sizeof(TSTreeCursor)
.