| 2090 | } |
| 2091 | |
| 2092 | static int cs_item_of_node(cs_scan_t *s, char tag, TSNode node) { |
| 2093 | int i = cs_item_new(s, tag); |
| 2094 | if (i >= 0) { |
| 2095 | s->items[i].node = node; |
| 2096 | s->items[i].start = ts_node_start_byte(node); |
| 2097 | s->items[i].line = cs_line(node); |
| 2098 | } |
| 2099 | return i; |
| 2100 | } |
| 2101 | |
| 2102 | /* True when the first parameter of `params` is written with `this`: an |
| 2103 | * extension method. The text before the parameter's type says so, whatever |
no test coverage detected