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

Function php_vendor_site

tests/test_php_lsp.c:5344–5358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5342#undef PHP_TEST_METHOD
5343
5344static const CBMCall *php_vendor_site(const CBMFileResult *r, const char *caller,
5345 const char *leaf) {
5346 const CBMCall *found = NULL;
5347 for (int i = 0; r && i < r->calls.count; i++) {
5348 const CBMCall *c = &r->calls.items[i];
5349 if (c->enclosing_func_qn && strstr(c->enclosing_func_qn, caller) && c->callee_name &&
5350 strcmp(cbm_pipeline_call_callee_leaf(c->callee_name), leaf) == 0 &&
5351 c->site_end_byte > c->site_start_byte) {
5352 if (found)
5353 return NULL;
5354 found = c;
5355 }
5356 }
5357 return found;
5358}
5359
5360static const CBMResolvedCall *php_vendor_row(const CBMResolvedCallArray *out, const CBMCall *site,
5361 const char *callee) {

Callers 1

test_php_lsp.cFile · 0.85

Calls 1

Tested by

no test coverage detected