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

Function go_scan_func

internal/cbm/doclink_go.c:1462–1469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1460}
1461
1462static void go_scan_func(go_scan_t *s, TSNode fn) {
1463 go_scan_type_params(s, fn);
1464 size_t len = 0;
1465 const char *name = go_exported(s, ts_node_child_by_field_name(fn, TS_FIELD("name")), &len);
1466 if (name) {
1467 go_push_claim(s, cbm_arena_sprintf(s->tmp, "F\t%.*s", (int)len, name), name, len, fn);
1468 }
1469}
1470
1471/* The receiver's base type name (as extract_defs.c go_receiver_type_name:
1472 * through pointer_type and generic_type); its type arguments go to

Callers 1

go_scan_declFunction · 0.85

Calls 4

go_scan_type_paramsFunction · 0.85
go_exportedFunction · 0.85
go_push_claimFunction · 0.85
cbm_arena_sprintfFunction · 0.70

Tested by

no test coverage detected