The kind of a type declaration node: c class, s struct, i interface, e * enum, r record class, t record struct, d delegate; 0 for any other node. */
| 1204 | /* The kind of a type declaration node: c class, s struct, i interface, e |
| 1205 | * enum, r record class, t record struct, d delegate; 0 for any other node. */ |
| 1206 | static char cs_decl_kind(TSNode decl) { |
| 1207 | char kind = cs_type_kind(ts_node_type(decl)); |
| 1208 | return (kind == 'r' && cs_has_word(decl, "struct")) ? 't' : kind; |
| 1209 | } |
| 1210 | |
| 1211 | /* ── Tokens: the block structure the tree lost ─────────────────────── |
| 1212 | * |
no test coverage detected