| 3413 | } |
| 3414 | |
| 3415 | static const char *cpp_operator_token(CBMExtractCtx *ctx, TSNode node) { |
| 3416 | for (uint32_t i = 0; i < ts_node_child_count(node); i++) { |
| 3417 | TSNode child = ts_node_child(node, i); |
| 3418 | if (!ts_node_is_named(child)) { |
| 3419 | const char *token = cbm_node_text(ctx->arena, child, ctx->source); |
| 3420 | if (token && token[0]) { |
| 3421 | return token; |
| 3422 | } |
| 3423 | } |
| 3424 | } |
| 3425 | return NULL; |
| 3426 | } |
| 3427 | |
| 3428 | static bool cpp_is_compound_assignment_token(const char *token) { |
| 3429 | return token && |
no test coverage detected