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

Function cbm_node_text

internal/cbm/helpers.c:52–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50// --- Node text extraction ---
51
52char *cbm_node_text(CBMArena *a, TSNode node, const char *source) {
53 uint32_t start = ts_node_start_byte(node);
54 uint32_t end = ts_node_end_byte(node);
55 if (end <= start) {
56 return cbm_arena_strdup(a, "");
57 }
58 return cbm_arena_strndup(a, source + start, end - start);
59}
60
61// --- Keyword sets per language ---
62

Callers 15

try_emit_usageFunction · 0.85
handle_usagesFunction · 0.85
parse_go_import_specFunction · 0.85
emit_py_aliased_importFunction · 0.85
process_py_import_stmtFunction · 0.85
emit_py_import_from_nameFunction · 0.85
process_py_import_fromFunction · 0.85
process_named_importsFunction · 0.85
process_import_clauseFunction · 0.85
process_commonjs_requireFunction · 0.85
walk_es_importsFunction · 0.85

Calls 2

cbm_arena_strdupFunction · 0.70
cbm_arena_strndupFunction · 0.70

Tested by

no test coverage detected