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
;
11
Length
position
;
12
TSSymbol
alias_symbol
;
13
}
ParentCacheEntry
;
14
15
struct
TSTree
{
16
Subtree
root
;
17
const
TSLanguage
*
language
;
18
TSRange
*
included_ranges
;
19
unsigned
included_range_count
;
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_
root
int root
Definition:
enough.c:226
TSSymbol
uint16_t TSSymbol
Definition:
parser.h:19
Length
Definition:
length.h:9
ParentCacheEntry
Definition:
tree.h:8
ParentCacheEntry::parent
const Subtree * parent
Definition:
tree.h:10
ParentCacheEntry::position
Length position
Definition:
tree.h:11
ParentCacheEntry::child
const Subtree * child
Definition:
tree.h:9
ParentCacheEntry::alias_symbol
TSSymbol alias_symbol
Definition:
tree.h:12
TSLanguage
Definition:
parser.h:90
TSNode
Definition:
api.h:92
TSRange
Definition:
api.h:60
TSTree
Definition:
tree.h:15
TSTree::root
Subtree root
Definition:
tree.h:16
TSTree::included_ranges
TSRange * included_ranges
Definition:
tree.h:18
TSTree::included_range_count
unsigned included_range_count
Definition:
tree.h:19
TSTree::language
const TSLanguage * language
Definition:
tree.h:17
ts_tree_new
TSTree * ts_tree_new(Subtree root, const TSLanguage *language, const TSRange *, unsigned)
Definition:
tree.c:8
ts_node_new
TSNode ts_node_new(const TSTree *, const Subtree *, Length, TSSymbol)
Definition:
node.c:17
Subtree
Definition:
subtree.h:156
subprojects
tree-sitter-0.20.6
lib
src
tree.h
Generated by
1.9.1