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

Function cbm_kind_in_set

internal/cbm/helpers.c:575–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573}
574
575bool cbm_kind_in_set(TSNode node, const char **types) {
576 if (!types || !types[0]) {
577 return false;
578 }
579 const TSLanguage *lang = ts_node_language(node);
580 if (lang) {
581 ks_slot_t *s = ks_get(lang, (const char *const *)types);
582 if (s && s->exact && s->bits) {
583 TSSymbol sym = ts_node_symbol(node);
584 return sym < s->nsyms && (((s->bits[sym >> 6] >> (sym & 63)) & 1U) != 0);
585 }
586 }
587 return kind_in_set_strcmp(node, (const char *const *)types);
588}
589
590bool cbm_is_namespace_scope_kind(CBMLanguage lang, const char *kind) {
591 if (!kind) {

Callers 15

is_binding_occurrenceFunction · 0.85
is_write_occurrenceFunction · 0.85
binding_is_parameterFunction · 0.85
import_kind_matchesFunction · 0.85
walk_usagesFunction · 0.85
walk_type_refsFunction · 0.85
handle_type_refsFunction · 0.85
handle_callsFunction · 0.85
scan_route_annotationsFunction · 0.85

Calls 2

ks_getFunction · 0.85
kind_in_set_strcmpFunction · 0.85

Tested by

no test coverage detected