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

Function sig_cs_param

internal/cbm/callable_sig.c:295–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293/* ── C# ────────────────────────────────────────────────────────── */
294
295static void sig_cs_param(sig_ctx_t *c, TSNode p) {
296 sig_entry_open(c);
297 sig_label(c, NULL, 0);
298 if (sig_writes_types(c)) {
299 uint32_t pc = ts_node_named_child_count(p);
300 for (uint32_t j = 0; j < pc; j++) {
301 TSNode m = ts_node_named_child(p, j);
302 if (strcmp(ts_node_type(m), "modifier") == 0 &&
303 (sig_node_text_is(c, m, "ref") || sig_node_text_is(c, m, "out") ||
304 sig_node_text_is(c, m, "in") || sig_node_text_is(c, m, "readonly"))) {
305 sig_type_tokens(c, m);
306 }
307 }
308 size_t before = c->len;
309 sig_type_tokens(c, sig_field(p, "type"));
310 if (c->len == before) {
311 sig_raw(c, "?", 1);
312 }
313 }
314 sig_entry_close(c);
315}
316
317static void sig_cs_params(sig_ctx_t *c, TSNode node) {
318 TSNode params = sig_field(node, "parameters");

Callers 1

sig_cs_paramsFunction · 0.85

Calls 8

sig_entry_openFunction · 0.85
sig_labelFunction · 0.85
sig_writes_typesFunction · 0.85
sig_node_text_isFunction · 0.85
sig_type_tokensFunction · 0.85
sig_fieldFunction · 0.85
sig_rawFunction · 0.85
sig_entry_closeFunction · 0.85

Tested by

no test coverage detected