The strings of a json_string_array node. */
| 553 | |
| 554 | /* The strings of a json_string_array node. */ |
| 555 | static 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; |
no test coverage detected