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

Function cpp_operator_token

internal/cbm/extract_calls.c:3415–3426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3413}
3414
3415static const char *cpp_operator_token(CBMExtractCtx *ctx, TSNode node) {
3416 for (uint32_t i = 0; i < ts_node_child_count(node); i++) {
3417 TSNode child = ts_node_child(node, i);
3418 if (!ts_node_is_named(child)) {
3419 const char *token = cbm_node_text(ctx->arena, child, ctx->source);
3420 if (token && token[0]) {
3421 return token;
3422 }
3423 }
3424 }
3425 return NULL;
3426}
3427
3428static bool cpp_is_compound_assignment_token(const char *token) {
3429 return token &&

Callers 1

Calls 1

cbm_node_textFunction · 0.85

Tested by

no test coverage detected