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

Function using_visit

src/pipeline/doc_links_cs.c:4635–4646  ·  view source on GitHub ↗

Directive `id` of a step, for the query. With `rec`, it is noted when it * gives the query anything at all: one that leaves an empty step empty adds * no candidate and sets no flag whatever the step holds, so leaving it out * changes no lookup. */

Source from the content-addressed store, hash-verified

4633 * no candidate and sets no flag whatever the step holds, so leaving it out
4634 * changes no lookup. */
4635static void using_visit(const cs_ctx_t *c, const cs_using_t *us, int id, const cs_query_t *q,
4636 bool a_type_name, cs_found_t *fd, cs_active_rec_t *rec) {
4637 if (rec) {
4638 cs_found_t probe = {0};
4639 level_using(c, &us[id], q, a_type_name, &probe);
4640 if (probe.n == 0 && !probe.invisible && !probe.joined && probe.why == CS_WHY_SCOPE) {
4641 return;
4642 }
4643 active_add(rec, id);
4644 }
4645 level_using(c, &us[id], q, a_type_name, fd);
4646}
4647
4648/* False when none of a step's n directives can give the query anything:
4649 * there are none, or the index shows no static candidates and no namespace

Callers 1

level_usingsFunction · 0.85

Calls 2

level_usingFunction · 0.85
active_addFunction · 0.85

Tested by

no test coverage detected