| 667 | } |
| 668 | |
| 669 | static bool ts_has_default(TSNode stmt) { |
| 670 | uint32_t nc = ts_node_child_count(stmt); |
| 671 | for (uint32_t i = 0; i < nc; i++) { |
| 672 | if (ts_kind(ts_node_child(stmt, i), "default")) { |
| 673 | return true; |
| 674 | } |
| 675 | } |
| 676 | return false; |
| 677 | } |
| 678 | |
| 679 | static void ts_walk_export_clause(ts_walk_t *w, TSNode clause, TSNode src) { |
| 680 | TSTreeCursor cur = ts_tree_cursor_new(clause); |
no test coverage detected