Make tree struct private
This commit is contained in:
parent
50a90e456b
commit
95188d84b6
6 changed files with 68 additions and 42 deletions
|
|
@ -38,7 +38,7 @@ void ts_document_edit(ts_document *document, ts_input_edit edit) {
|
|||
}
|
||||
|
||||
const char * ts_document_symbol_name(const ts_document *document, const ts_tree *tree) {
|
||||
return document->parser.symbol_names[tree->symbol];
|
||||
return document->parser.symbol_names[ts_tree_symbol(tree)];
|
||||
}
|
||||
|
||||
typedef struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue