Remove redundant functions for Documents
There's no need for a `string` function since one already exists for Nodes. Now the root node is always stored on the document. This means callers of `ts_document_root_node` don't need to release its return value.
This commit is contained in:
parent
7ba3953f7e
commit
8da9219c3a
6 changed files with 23 additions and 43 deletions
|
|
@ -46,7 +46,6 @@ void ts_document_set_language(TSDocument *, const TSLanguage *);
|
|||
void ts_document_set_input(TSDocument *, TSInput);
|
||||
void ts_document_set_input_string(TSDocument *, const char *);
|
||||
void ts_document_edit(TSDocument *, TSInputEdit);
|
||||
const char *ts_document_string(const TSDocument *);
|
||||
TSNode *ts_document_root_node(const TSDocument *);
|
||||
|
||||
#define ts_builtin_sym_error 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue