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

Function has_exact_resolved

tests/test_ts_lsp.c:2153–2163  ·  view source on GitHub ↗

Exact resolved-call probe: caller QN, callee QN and strategy all match. */

Source from the content-addressed store, hash-verified

2151
2152/* Exact resolved-call probe: caller QN, callee QN and strategy all match. */
2153static bool has_exact_resolved(const CBMResolvedCallArray *arr, const char *caller_qn,
2154 const char *callee_qn, const char *strategy) {
2155 for (int i = 0; i < arr->count; i++) {
2156 const CBMResolvedCall *rc = &arr->items[i];
2157 if (rc->confidence > 0 && rc->caller_qn && rc->callee_qn && rc->strategy &&
2158 strcmp(rc->caller_qn, caller_qn) == 0 && strcmp(rc->callee_qn, callee_qn) == 0 &&
2159 strcmp(rc->strategy, strategy) == 0)
2160 return true;
2161 }
2162 return false;
2163}
2164
2165/* Issue #1354: `new ImportedClass()` typed the instance as a phantom
2166 * CURRENT-module class (`test.main.Conn`), so every method call on it missed

Callers 1

test_ts_lsp.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected