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

Function cs_member_static

internal/cbm/doclink_cs.c:2131–2139  ·  view source on GitHub ↗

True for a member `using static` brings in: one declared `static` or * `const`, an enum's member -- and no extension method. */

Source from the content-addressed store, hash-verified

2129/* True for a member `using static` brings in: one declared `static` or
2130 * `const`, an enum's member -- and no extension method. */
2131static bool cs_member_static(const cs_scan_t *s, TSNode decl, TSNode params) {
2132 if (cs_kind_is(decl, "enum_member_declaration")) {
2133 return true;
2134 }
2135 if (!cs_has_word(decl, "static") && !cs_has_word(decl, "const")) {
2136 return false;
2137 }
2138 return !cs_first_param_this(s, params);
2139}
2140
2141static void cs_member_new(cs_scan_t *s, TSNode decl, char kind, bool explicit_impl, bool is_static,
2142 int owner, TSNode name, TSNode tparams, TSNode params) {

Callers 2

cs_collect_declaratorsFunction · 0.85
cs_collect_memberFunction · 0.85

Calls 3

cs_kind_isFunction · 0.85
cs_has_wordFunction · 0.85
cs_first_param_thisFunction · 0.85

Tested by

no test coverage detected