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

Function fold_implicit_concat

internal/cbm/extract_url_fold.c:229–237  ·  view source on GitHub ↗

Python implicit concatenation: "a" "b". */

Source from the content-addressed store, hash-verified

227
228/* Python implicit concatenation: "a" "b". */
229static const char *fold_implicit_concat(CBMExtractCtx *ctx, TSNode node, int depth, bool url) {
230 fold_buf_t b = {.len = 0, .url = url};
231 b.text[0] = '\0';
232 uint32_t nc = ts_node_named_child_count(node);
233 for (uint32_t i = 0; i < nc; i++) {
234 fold_part(ctx, &b, ts_node_named_child(node, i), depth);
235 }
236 return finish(ctx, &b);
237}
238
239/* "A.B.C" for a JS member chain over identifiers, or false. */
240static bool dotted_name(CBMExtractCtx *ctx, TSNode node, char *out, size_t cap, int depth) {

Callers 1

fold_nodeFunction · 0.85

Calls 2

fold_partFunction · 0.85
finishFunction · 0.70

Tested by

no test coverage detected