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

Function dk_json_array

src/pipeline/pass_docker.c:555–564  ·  view source on GitHub ↗

The strings of a json_string_array node. */

Source from the content-addressed store, hash-verified

553
554/* The strings of a json_string_array node. */
555static int dk_json_array(dk_t *d, TSNode arr, const char **out, int max) {
556 int n = 0;
557 for (uint32_t i = 0; i < ts_node_named_child_count(arr) && n < max; i++) {
558 TSNode js = ts_node_named_child(arr, i);
559 if (dk_type(js, "json_string")) {
560 out[n++] = dk_json_string(d, dk_text(d, js));
561 }
562 }
563 return n;
564}
565
566/* The logical line at byte `at` of the source, as Docker joins it: a line
567 * ending in `\` (blanks after it aside) goes on in the next one;

Callers 1

dk_entryFunction · 0.85

Calls 3

dk_typeFunction · 0.85
dk_json_stringFunction · 0.85
dk_textFunction · 0.85

Tested by

no test coverage detected