Simplify storage of position on nodes

This commit is contained in:
Max Brunsfeld 2015-08-14 14:48:29 -07:00
parent da7eb1496b
commit 8a9626bfc5
4 changed files with 12 additions and 22 deletions

View file

@ -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();
}