Make ts_tree_edit return a new tree rather than mutating its argument
Co-Authored-By: Rick Winfrey <rewinfrey@github.com>
This commit is contained in:
parent
df79ff5997
commit
09e663c7d1
4 changed files with 59 additions and 37 deletions
|
|
@ -100,7 +100,7 @@ bool ts_tree_eq(const Tree *tree1, const Tree *tree2);
|
|||
int ts_tree_compare(const Tree *tree1, const Tree *tree2);
|
||||
void ts_tree_set_children(Tree *, TreeArray *, const TSLanguage *);
|
||||
void ts_tree_balance(Tree *, TreePool *, const TSLanguage *);
|
||||
void ts_tree_edit(Tree *, const TSInputEdit *edit);
|
||||
Tree *ts_tree_edit(Tree *, const TSInputEdit *edit, TreePool *);
|
||||
char *ts_tree_string(const Tree *, const TSLanguage *, bool include_all);
|
||||
void ts_tree_print_dot_graph(const Tree *, const TSLanguage *, FILE *);
|
||||
Tree *ts_tree_last_external_token(Tree *);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue