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

Function imp_by_local

tests/test_extraction_imports.c:1261–1268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1259 * ═══════════════════════════════════════════════════════════════════════════ */
1260
1261static const CBMImport *imp_by_local(const CBMFileResult *r, const char *local) {
1262 for (int i = 0; i < r->imports.count; i++) {
1263 if (r->imports.items[i].local_name && strcmp(r->imports.items[i].local_name, local) == 0) {
1264 return &r->imports.items[i];
1265 }
1266 }
1267 return NULL;
1268}
1269
1270/* `navigate` from `{ get as navigate }` binds axios's `get`: the call
1271 * resolvers spell a call through it as axios.get. The member is set for a

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected