| 13085 | } |
| 13086 | |
| 13087 | static char *snippet_render_payload(yyjson_mut_doc *doc, const char *args) { |
| 13088 | char *json = yy_doc_to_str(doc); |
| 13089 | if (!json || mcp_wants_json(args)) { |
| 13090 | return json; |
| 13091 | } |
| 13092 | char *tree = cbm_json_to_tree(json); |
| 13093 | free(json); |
| 13094 | return tree; |
| 13095 | } |
| 13096 | |
| 13097 | static int snippet_source_line_count(const char *source) { |
| 13098 | if (!source || !source[0]) { |
no test coverage detected