Make tree struct private

This commit is contained in:
Max Brunsfeld 2014-03-24 00:34:13 -07:00
parent 50a90e456b
commit 95188d84b6
6 changed files with 68 additions and 42 deletions

View file

@ -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 {