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

Function sh_text

src/pipeline/pass_shell.c:529–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527/* ── Word evaluation ───────────────────────────────────────────────── */
528
529static const char *sh_text(sh_t *s, TSNode n) {
530 uint32_t b = ts_node_start_byte(n);
531 uint32_t e = ts_node_end_byte(n);
532 return cbm_arena_strndup(s->a, s->src + b, e - b);
533}
534
535static bool sh_type(TSNode n, const char *t) {
536 return !ts_node_is_null(n) && strcmp(ts_node_type(n), t) == 0;

Callers 7

sh_eval_expansionFunction · 0.85
sh_evalFunction · 0.85
sh_array_wordFunction · 0.85
sh_assignFunction · 0.85
sh_declareFunction · 0.85
sh_loopFunction · 0.85
sh_walkFunction · 0.85

Calls 1

cbm_arena_strndupFunction · 0.50

Tested by

no test coverage detected