Rizin
unix-like reverse engineering framework and cli tools
tree.h
Go to the documentation of this file.
1 #ifndef TREE_SITTER_TREE_H_
2 #define TREE_SITTER_TREE_H_
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 typedef struct {
9  const Subtree *child;
10  const Subtree *parent;
14 
15 struct TSTree {
20 };
21 
22 TSTree *ts_tree_new(Subtree root, const TSLanguage *language, const TSRange *, unsigned);
23 TSNode ts_node_new(const TSTree *, const Subtree *, Length, TSSymbol);
24 
25 #ifdef __cplusplus
26 }
27 #endif
28 
29 #endif // TREE_SITTER_TREE_H_
int root
Definition: enough.c:226
uint16_t TSSymbol
Definition: parser.h:19
Definition: length.h:9
const Subtree * parent
Definition: tree.h:10
Length position
Definition: tree.h:11
const Subtree * child
Definition: tree.h:9
TSSymbol alias_symbol
Definition: tree.h:12
Definition: api.h:92
Definition: api.h:60
Definition: tree.h:15
Subtree root
Definition: tree.h:16
TSRange * included_ranges
Definition: tree.h:18
unsigned included_range_count
Definition: tree.h:19
const TSLanguage * language
Definition: tree.h:17
TSTree * ts_tree_new(Subtree root, const TSLanguage *language, const TSRange *, unsigned)
Definition: tree.c:8
TSNode ts_node_new(const TSTree *, const Subtree *, Length, TSSymbol)
Definition: node.c:17