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

Function sig_cs_params

internal/cbm/callable_sig.c:317–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317static void sig_cs_params(sig_ctx_t *c, TSNode node) {
318 TSNode params = sig_field(node, "parameters");
319 uint32_t count = ts_node_is_null(params) ? 0 : ts_node_child_count(params);
320 for (uint32_t i = 0; i < count; i++) {
321 TSNode p = ts_node_child(params, i);
322 const char *field = ts_node_field_name_for_child(params, i);
323 if (strcmp(ts_node_type(p), "parameter") == 0) {
324 sig_cs_param(c, p);
325 } else if (field && strcmp(field, "type") == 0) {
326 /* `params T[] rest`: the grammar inlines the parameter's type and
327 * name into the list; `params` itself does not change identity. */
328 sig_entry_type(c, p, NULL);
329 }
330 }
331}
332
333static void sig_cs_tparams(sig_ctx_t *c, TSNode node) {
334 TSNode tp = sig_field(node, "type_parameters");

Callers 1

sig_renderFunction · 0.85

Calls 3

sig_fieldFunction · 0.85
sig_cs_paramFunction · 0.85
sig_entry_typeFunction · 0.85

Tested by

no test coverage detected