| 200 | } |
| 201 | |
| 202 | static bool is_plus(CBMExtractCtx *ctx, TSNode bin) { |
| 203 | TSNode op = ts_node_child_by_field_name(bin, TS_FIELD("operator")); |
| 204 | if (ts_node_is_null(op)) { |
| 205 | return false; |
| 206 | } |
| 207 | const char *t = cbm_node_text(ctx->arena, op, ctx->source); |
| 208 | return t && strcmp(t, "+") == 0; |
| 209 | } |
| 210 | |
| 211 | /* `a + b` (JS binary_expression / Python binary_operator). */ |
| 212 | static const char *fold_concat(CBMExtractCtx *ctx, TSNode node, int depth, bool url) { |
no test coverage detected