Fix error recovery regression due to stack node_count change
This commit is contained in:
parent
70766f5327
commit
9564e1706d
2 changed files with 16 additions and 8 deletions
|
|
@ -303,12 +303,6 @@ static inline uint32_t ts_subtree_visible_descendant_count(Subtree self) {
|
|||
: self.ptr->visible_descendant_count;
|
||||
}
|
||||
|
||||
static inline uint32_t ts_subtree_node_count(Subtree self) {
|
||||
return
|
||||
ts_subtree_visible_descendant_count(self) +
|
||||
(ts_subtree_visible(self) ? 1 : 0);
|
||||
}
|
||||
|
||||
static inline uint32_t ts_subtree_visible_child_count(Subtree self) {
|
||||
if (ts_subtree_child_count(self) > 0) {
|
||||
return self.ptr->visible_child_count;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue