Move tree sexp function back to tree, for easier use in debugger

This commit is contained in:
Max Brunsfeld 2016-04-22 14:55:56 -07:00
parent 0d19f157ed
commit 1fb6065f02
3 changed files with 60 additions and 61 deletions

View file

@ -64,6 +64,7 @@ void ts_tree_set_children(TSTree *, size_t, TSTree **);
void ts_tree_assign_parents(TSTree *);
void ts_tree_edit(TSTree *, TSInputEdit);
void ts_tree_steal_padding(TSTree *, TSTree *);
char *ts_tree_string(const TSTree *, const TSLanguage *, bool include_all);
static inline size_t ts_tree_total_chars(const TSTree *self) {
return self->padding.chars + self->size.chars;