| 5732 | } |
| 5733 | |
| 5734 | static void wd_push_children_reverse(wd_stack_t *s, TSNode node, const char *enclosing_qn) { |
| 5735 | uint32_t cc = ts_node_child_count(node); |
| 5736 | if (cc == 0) { |
| 5737 | return; |
| 5738 | } |
| 5739 | TSNode *kids = wd_collect_children(node, cc); |
| 5740 | for (int i = (int)cc - SKIP_CHAR; i >= 0; i--) { |
| 5741 | wd_push(s, kids ? kids[i] : ts_node_child(node, (uint32_t)i), enclosing_qn); |
| 5742 | } |
| 5743 | free(kids); |
| 5744 | } |
| 5745 | |
| 5746 | // Push nested class nodes from a class body container onto the defs stack. |
| 5747 | // Iteratively walks into wrapper nodes (field_declaration, template_declaration). |
no test coverage detected