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
;
8
Length
position
;
9
uint32_t
child_index
;
10
uint32_t
structural_child_index
;
11
}
TreeCursorEntry
;
12
13
typedef
struct
{
14
const
TSTree
*
tree
;
15
Array
(
TreeCursorEntry
)
stack
;
16
}
TreeCursor
;
17
18
void
ts_tree_cursor_init
(
TreeCursor
*,
TSNode
);
19
void
ts_tree_cursor_current_status
(
20
const
TSTreeCursor
*,
21
TSFieldId
*,
22
bool
*,
23
bool
*,
24
bool
*,
25
TSSymbol
*,
26
unsigned
*
27
);
28
29
TSNode
ts_tree_cursor_parent_node
(
const
TSTreeCursor
*);
30
31
#endif
// TREE_SITTER_TREE_CURSOR_H_
TSFieldId
uint16_t TSFieldId
Definition:
parser.h:20
TSSymbol
uint16_t TSSymbol
Definition:
parser.h:19
uint32_t
unsigned int uint32_t
Definition:
sftypes.h:29
Length
Definition:
length.h:9
TSNode
Definition:
api.h:92
TSTreeCursor
Definition:
api.h:98
TSTree
Definition:
tree.h:15
TreeCursorEntry
Definition:
tree_cursor.h:6
TreeCursorEntry::subtree
const Subtree * subtree
Definition:
tree_cursor.h:7
TreeCursorEntry::position
Length position
Definition:
tree_cursor.h:8
TreeCursorEntry::structural_child_index
uint32_t structural_child_index
Definition:
tree_cursor.h:10
TreeCursorEntry::child_index
uint32_t child_index
Definition:
tree_cursor.h:9
TreeCursor
Definition:
tree_cursor.h:13
TreeCursor::tree
const TSTree * tree
Definition:
tree_cursor.h:14
TreeCursor::Array
Array(TreeCursorEntry) stack
subtree.h
ts_tree_cursor_init
void ts_tree_cursor_init(TreeCursor *, TSNode)
Definition:
tree_cursor.c:80
ts_tree_cursor_parent_node
TSNode ts_tree_cursor_parent_node(const TSTreeCursor *)
Definition:
tree_cursor.c:404
ts_tree_cursor_current_status
void ts_tree_cursor_current_status(const TSTreeCursor *, TSFieldId *, bool *, bool *, bool *, TSSymbol *, unsigned *)
Definition:
tree_cursor.c:284
Subtree
Definition:
subtree.h:156
stack
static struct stack stack[MAX_INCLUDE]
Definition:
z80asm.c:92
subprojects
tree-sitter-0.20.6
lib
src
tree_cursor.h
Generated by
1.9.1