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

Function is_plus

internal/cbm/extract_url_fold.c:202–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202static bool is_plus(CBMExtractCtx *ctx, TSNode bin) {
203 TSNode op = ts_node_child_by_field_name(bin, TS_FIELD("operator"));
204 if (ts_node_is_null(op)) {
205 return false;
206 }
207 const char *t = cbm_node_text(ctx->arena, op, ctx->source);
208 return t && strcmp(t, "+") == 0;
209}
210
211/* `a + b` (JS binary_expression / Python binary_operator). */
212static const char *fold_concat(CBMExtractCtx *ctx, TSNode node, int depth, bool url) {

Callers 1

fold_concatFunction · 0.85

Calls 1

cbm_node_textFunction · 0.85

Tested by

no test coverage detected