| 1679 | int max_out); |
| 1680 | |
| 1681 | static bool parse_narrowing(PHPLSPContext *ctx, TSNode cond, php_narrowing_t *out) { |
| 1682 | php_narrowing_t buf[1] = {{0}}; |
| 1683 | int n = parse_narrowing_collect(ctx, cond, buf, 1); |
| 1684 | if (n > 0) { |
| 1685 | *out = buf[0]; |
| 1686 | return true; |
| 1687 | } |
| 1688 | return false; |
| 1689 | } |
| 1690 | |
| 1691 | /* Recursive collector: adds narrowings from the predicate tree into out[] |
| 1692 | * up to max_out. Returns the number filled. */ |
no test coverage detected