| 1861 | int max_out); |
| 1862 | |
| 1863 | static bool parse_narrowing(PHPLSPContext *ctx, TSNode cond, php_narrowing_t *out) { |
| 1864 | php_narrowing_t buf[1] = {{0}}; |
| 1865 | int n = parse_narrowing_collect(ctx, cond, buf, 1); |
| 1866 | if (n > 0) { |
| 1867 | *out = buf[0]; |
| 1868 | return true; |
| 1869 | } |
| 1870 | return false; |
| 1871 | } |
| 1872 | |
| 1873 | /* Recursive collector: adds narrowings from the predicate tree into out[] |
| 1874 | * up to max_out. Returns the number filled. */ |
no test coverage detected