Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Cursor
- withCursor :: Ptr TSNode -> (Ptr Cursor -> IO a) -> IO a
- 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 Node -> IO Bool
- 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
- ts_tree_cursor_copy_child_nodes :: Ptr Cursor -> Ptr Node -> IO Word32
Documentation
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 #
ts_tree_cursor_delete :: Ptr Cursor -> IO () Source #
ts_tree_cursor_reset_p :: Ptr Cursor -> Ptr TSNode -> IO () Source #
ts_tree_cursor_current_node_p :: Ptr Cursor -> Ptr Node -> IO Bool Source #
ts_tree_cursor_current_field_name :: Ptr Cursor -> IO CString Source #
ts_tree_cursor_current_field_id :: Ptr Cursor -> IO FieldId Source #
ts_tree_cursor_goto_parent :: Ptr Cursor -> IO Bool Source #
ts_tree_cursor_goto_next_sibling :: Ptr Cursor -> IO Bool Source #
ts_tree_cursor_goto_first_child :: Ptr Cursor -> IO Bool Source #
ts_tree_cursor_goto_first_child_for_byte :: Ptr Cursor -> Word32 -> IO Int64 Source #
ts_tree_cursor_copy_child_nodes :: Ptr Cursor -> Ptr Node -> IO Word32 Source #