MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cs_decl_kind

Function cs_decl_kind

internal/cbm/doclink_cs.c:1206–1209  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

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. */
1206static 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 *

Callers 1

cs_collect_childFunction · 0.85

Calls 2

cs_type_kindFunction · 0.85
cs_has_wordFunction · 0.85

Tested by

no test coverage detected