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

Function pc_module_var

src/pipeline/pass_calls.c:263–270  ·  view source on GitHub ↗

The module-level Variable `name` declared in file `file_rel`. */

Source from the content-addressed store, hash-verified

261
262/* The module-level Variable `name` declared in file `file_rel`. */
263static const cbm_gbuf_node_t *pc_module_var(const cbm_gbuf_t *gbuf, const char *project,
264 const char *file_rel, const char *name) {
265 if (!file_rel) {
266 return NULL;
267 }
268 const cbm_gbuf_node_t *n = pc_find_by_computed_qn(gbuf, project, file_rel, name);
269 return (n && n->label && strcmp(n->label, "Variable") == 0) ? n : NULL;
270}
271
272/* Resolve the binding `recv` names in the calling file to a client node:
273 * a same-file declaration first, then its ES import (default import → the

Callers 1

pc_receiver_client_baseFunction · 0.85

Calls 1

pc_find_by_computed_qnFunction · 0.85

Tested by

no test coverage detected