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

Function fold_reference

internal/cbm/extract_url_fold.c:261–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261static const char *fold_reference(CBMExtractCtx *ctx, TSNode node, bool url) {
262 char name[FOLD_NAME_BUF];
263 if (!dotted_name(ctx, node, name, sizeof(name), 0)) {
264 return NULL;
265 }
266 return lookup_constant(ctx, name, url);
267}
268
269/* Type-only wrappers and grouping: `x as const`, `x satisfies T`, `x!`, `(x)`. */
270static bool is_transparent_wrapper(const char *k) {

Callers 1

fold_nodeFunction · 0.85

Calls 2

dotted_nameFunction · 0.85
lookup_constantFunction · 0.85

Tested by

no test coverage detected