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

Function find_resolved

tests/test_kotlin_lsp.c:49–58  ·  view source on GitHub ↗

Search resolved_calls for a match where caller contains callerSub * and callee contains calleeSub. Returns index or -1. */

Source from the content-addressed store, hash-verified

47/* Search resolved_calls for a match where caller contains callerSub
48 * and callee contains calleeSub. Returns index or -1. */
49static int find_resolved(const CBMFileResult *r, const char *callerSub, const char *calleeSub) {
50 for (int i = 0; i < r->resolved_calls.count; i++) {
51 const CBMResolvedCall *rc = &r->resolved_calls.items[i];
52 if (rc->caller_qn && strstr(rc->caller_qn, callerSub) && rc->callee_qn &&
53 strstr(rc->callee_qn, calleeSub)) {
54 return i;
55 }
56 }
57 return -1;
58}
59
60static int require_resolved(const CBMFileResult *r, const char *callerSub, const char *calleeSub) {
61 int idx = find_resolved(r, callerSub, calleeSub);

Callers 2

require_resolvedFunction · 0.70
test_kotlin_lsp.cFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected