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

Function pr_node

src/pipeline/doc_links_php.c:584–590  ·  view source on GitHub ↗

The node at `qn` in file `path`, or NULL. */

Source from the content-addressed store, hash-verified

582
583/* The node at `qn` in file `path`, or NULL. */
584static const cbm_gbuf_node_t *pr_node(const pr_ctx_t *c, const char *qn, const char *path) {
585 const cbm_gbuf_node_t *n = cbm_gbuf_find_by_qn(c->g, qn);
586 if (!n || !n->label || !n->file_path || strcmp(n->file_path, path) != 0) {
587 return NULL;
588 }
589 return n;
590}
591
592/* A declared type's own node: a gap when the graph folded it or has none. */
593static pr_res_t pr_type_node(const pr_ctx_t *c, int ti) {

Callers 3

pr_type_nodeFunction · 0.85
pr_member_nodeFunction · 0.85
pr_find_funcFunction · 0.85

Calls 1

cbm_gbuf_find_by_qnFunction · 0.85

Tested by

no test coverage detected