| 135 | } |
| 136 | |
| 137 | static int ts_node_compare(const void *left, const void *right) { |
| 138 | const cbm_ti_node_t *a = left; |
| 139 | const cbm_ti_node_t *b = right; |
| 140 | if (a->start_line != b->start_line) { |
| 141 | return a->start_line < b->start_line ? -1 : 1; |
| 142 | } |
| 143 | if (a->end_line != b->end_line) { |
| 144 | return a->end_line < b->end_line ? -1 : 1; |
| 145 | } |
| 146 | return a->id < b->id ? -1 : (a->id > b->id ? 1 : 0); |
| 147 | } |
| 148 | |
| 149 | static bool ts_node_from_row(cbm_ti_graph_t *g, cbm_ti_node_t *n, const cbm_node_t *row) { |
| 150 | n->id = row->id; |
nothing calls this directly
no outgoing calls
no test coverage detected