Hide the details of TSNode's fields in the public API
This commit is contained in:
parent
ebddb1a0b5
commit
6fc8d9871c
7 changed files with 120 additions and 100 deletions
|
|
@ -179,11 +179,5 @@ TSNode ts_tree_cursor_current_node(TSTreeCursor *self) {
|
|||
alias_symbol = alias_sequence[last_entry->structural_child_index];
|
||||
}
|
||||
}
|
||||
return (TSNode) {
|
||||
.tree = self->tree,
|
||||
.subtree = last_entry->subtree,
|
||||
.position = last_entry->position.extent,
|
||||
.byte = last_entry->position.bytes,
|
||||
.alias_symbol = alias_symbol,
|
||||
};
|
||||
return ts_node_new(self->tree, last_entry->subtree, last_entry->position, alias_symbol);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue