| 29 | return node; |
| 30 | } |
| 31 | tir_json *tir_string(tir_context *c, tir_bytes value) { |
| 32 | tir_json *node = tir_node(c, TIR_STRING); |
| 33 | if (node) |
| 34 | node->as.string = value; |
| 35 | return node; |
| 36 | } |
| 37 | tir_json *tir_text(tir_context *c, const char *value) { |
| 38 | return tir_string(c, tir_literal(value)); |
| 39 | } |
no test coverage detected