Fix named child count computation
Signed-off-by: Josh Vera <vera@github.com>
This commit is contained in:
parent
fe5286f863
commit
8939bd549d
1 changed files with 1 additions and 0 deletions
|
|
@ -69,6 +69,7 @@ void ts_tree_assign_parents(TSTree *self) {
|
|||
void ts_tree_set_children(TSTree *self, size_t child_count, TSTree **children) {
|
||||
self->children = children;
|
||||
self->child_count = child_count;
|
||||
self->named_child_count = 0;
|
||||
self->visible_child_count = 0;
|
||||
for (size_t i = 0; i < child_count; i++) {
|
||||
TSTree *child = children[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue