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

Function find_resolved_arr

tests/test_ts_lsp.c:2106–2115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2104/* ── Cross-file resolution (uses cbm_run_ts_lsp_cross directly) ─────────────── */
2105
2106static int find_resolved_arr(const CBMResolvedCallArray *arr, const char *callerSub,
2107 const char *calleeSub) {
2108 for (int i = 0; i < arr->count; i++) {
2109 const CBMResolvedCall *rc = &arr->items[i];
2110 if (rc->confidence > 0 && rc->caller_qn && strstr(rc->caller_qn, callerSub) &&
2111 rc->callee_qn && strstr(rc->callee_qn, calleeSub))
2112 return i;
2113 }
2114 return -1;
2115}
2116
2117TEST(tslsp_crossfile_method_dispatch) {
2118 const char *source = "import { Conn } from './conn';\n"

Callers 1

test_ts_lsp.cFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected