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

Function find_resolved

tests/test_kotlin_lsp.c:53–62  ·  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

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