Simplify storage of position on nodes
This commit is contained in:
parent
da7eb1496b
commit
8a9626bfc5
4 changed files with 12 additions and 22 deletions
|
|
@ -63,7 +63,7 @@ void ts_document_set_input_string(TSDocument *document, const char *text) {
|
|||
|
||||
TSNode ts_document_root_node(const TSDocument *document) {
|
||||
if (document->tree)
|
||||
return ts_node_make(document->tree, document->tree->padding);
|
||||
return ts_node_make(document->tree, ts_length_zero());
|
||||
else
|
||||
return ts_node_null();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue