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

Function dk_text

src/pipeline/pass_docker.c:140–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140static const char *dk_text(const dk_t *d, TSNode n) {
141 uint32_t b = ts_node_start_byte(n);
142 uint32_t e = ts_node_end_byte(n);
143 char *s = cbm_arena_alloc(d->a, (size_t)(e - b) + SKIP_ONE);
144 if (s) {
145 memcpy(s, d->src + b, e - b);
146 s[e - b] = '\0';
147 }
148 return s;
149}
150
151/* A value as written: quotes of a quoted string removed. */
152static const char *dk_value(const dk_t *d, TSNode n) {

Callers 6

dk_valueFunction · 0.85
dk_argFunction · 0.85
dk_envFunction · 0.85
dk_fromFunction · 0.85
dk_json_arrayFunction · 0.85
dk_workdirFunction · 0.85

Calls 1

cbm_arena_allocFunction · 0.50

Tested by

no test coverage detected