replace start and end with padding and size

This commit is contained in:
joshvera 2015-11-18 16:34:50 -08:00
parent a85b7fe3c4
commit b0f6bac3ab
12 changed files with 119 additions and 65 deletions

View file

@ -85,7 +85,7 @@ void ts_document_invalidate(TSDocument *self) {
}
TSNode ts_document_root_node(const TSDocument *self) {
TSNode result = ts_node_make(self->tree, ts_length_zero());
TSNode result = ts_node_make(self->tree, ts_length_zero(), ts_point_zero());
while (result.data && !ts_tree_is_visible(result.data))
result = ts_node_named_child(result, 0);
return result;