| 764 | } ts_scope_t; |
| 765 | |
| 766 | static void ts_put_nested(ts_walk_t *w, TSNode decl, const ts_scope_t *in) { |
| 767 | TSNode name = ts_decl_name(decl); |
| 768 | if (!ts_kind(name, "identifier") && !ts_kind(name, "type_identifier")) { |
| 769 | return; |
| 770 | } |
| 771 | char num[CBM_SZ_32]; |
| 772 | ts_sb_puts(w->sb, "\nV"); |
| 773 | ts_node_field(w, name); |
| 774 | snprintf(num, sizeof(num), "%u", ts_node_start_point(decl).row + SKIP_ONE); |
| 775 | ts_sb_field(w->sb, num, strlen(num)); |
| 776 | snprintf(num, sizeof(num), "%u", in->first); |
| 777 | ts_sb_field(w->sb, num, strlen(num)); |
| 778 | snprintf(num, sizeof(num), "%u", in->last); |
| 779 | ts_sb_field(w->sb, num, strlen(num)); |
| 780 | } |
| 781 | |
| 782 | /* V records: every function or class declared inside a function body, with |
| 783 | * its line and the body's lines (the scope it is visible in). The graph gives |
no test coverage detected