Rizin
unix-like reverse engineering framework and cli tools
tree_cursor.h
Go to the documentation of this file.
1 #ifndef TREE_SITTER_TREE_CURSOR_H_
2 #define TREE_SITTER_TREE_CURSOR_H_
3 
4 #include "./subtree.h"
5 
6 typedef struct {
7  const Subtree *subtree;
12 
13 typedef struct {
14  const TSTree *tree;
16 } TreeCursor;
17 
20  const TSTreeCursor *,
21  TSFieldId *,
22  bool *,
23  bool *,
24  bool *,
25  TSSymbol *,
26  unsigned *
27 );
28 
30 
31 #endif // TREE_SITTER_TREE_CURSOR_H_
uint16_t TSFieldId
Definition: parser.h:20
uint16_t TSSymbol
Definition: parser.h:19
unsigned int uint32_t
Definition: sftypes.h:29
Definition: length.h:9
Definition: api.h:92
Definition: tree.h:15
const Subtree * subtree
Definition: tree_cursor.h:7
Length position
Definition: tree_cursor.h:8
uint32_t structural_child_index
Definition: tree_cursor.h:10
uint32_t child_index
Definition: tree_cursor.h:9
const TSTree * tree
Definition: tree_cursor.h:14
Array(TreeCursorEntry) stack
void ts_tree_cursor_init(TreeCursor *, TSNode)
Definition: tree_cursor.c:80
TSNode ts_tree_cursor_parent_node(const TSTreeCursor *)
Definition: tree_cursor.c:404
void ts_tree_cursor_current_status(const TSTreeCursor *, TSFieldId *, bool *, bool *, bool *, TSSymbol *, unsigned *)
Definition: tree_cursor.c:284
static struct stack stack[MAX_INCLUDE]
Definition: z80asm.c:92