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

Function rs_node

src/pipeline/doc_links_rs.c:3979–3987  ·  view source on GitHub ↗

The node of a declaration of file `fi`: looked up by qualified name, and * taken only when its label and file are the declaration's (another * definition can own that name: a same-named item of another kind, another * file's module). */

Source from the content-addressed store, hash-verified

3977 * definition can own that name: a same-named item of another kind, another
3978 * file's module). */
3979static const cbm_gbuf_node_t *rs_node(const rs_index_t *ix, const cbm_gbuf_t *graph, int fi,
3980 const char *label, const char *qn) {
3981 const cbm_gbuf_node_t *n = (label && qn) ? cbm_gbuf_find_by_qn(graph, qn) : NULL;
3982 if (!n || !n->label || !n->file_path || !rs_is(n->label, label) ||
3983 !rs_is(n->file_path, ix->files[fi].rel_path)) {
3984 return NULL;
3985 }
3986 return n;
3987}
3988
3989static const cbm_gbuf_node_t *rs_decl_node(const rs_index_t *ix, const cbm_gbuf_t *graph, int fi,
3990 char label, const char *suffix) {

Callers 2

rs_decl_nodeFunction · 0.85
rs_outcomeFunction · 0.85

Calls 2

cbm_gbuf_find_by_qnFunction · 0.85
rs_isFunction · 0.85

Tested by

no test coverage detected