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

Function resolve_same_module

src/pipeline/registry.c:1468–1477  ·  view source on GitHub ↗

Strategy 2: Same-module match. Scoring elsewhere retains the raw file QN. */

Source from the content-addressed store, hash-verified

1466
1467/* Strategy 2: Same-module match. Scoring elsewhere retains the raw file QN. */
1468static cbm_resolution_t resolve_same_module(const cbm_registry_t *r, const char *callee_name,
1469 const char *suffix, const char *module_qn,
1470 size_t scope_len) {
1471 const char *stored_key = same_module_candidate(r, module_qn, scope_len, callee_name);
1472 if (!stored_key && suffix && suffix[0])
1473 stored_key = same_module_candidate(r, module_qn, scope_len, suffix);
1474 if (stored_key)
1475 return (cbm_resolution_t){stored_key, "same_module", CONF_SAME_MODULE, REG_RESOLVED};
1476 return empty_result();
1477}
1478
1479/* Strategy 4: multiple candidates with import filtering. */
1480static cbm_resolution_t resolve_multi_with_imports(const cbm_registry_t *r, const qn_array_t *arr,

Callers 1

registry_resolve_chainFunction · 0.85

Calls 2

same_module_candidateFunction · 0.85
empty_resultFunction · 0.85

Tested by

no test coverage detected