| 1909 | int max_out); |
| 1910 | |
| 1911 | static bool parse_narrowing(PHPLSPContext *ctx, TSNode cond, php_narrowing_t *out) { |
| 1912 | php_narrowing_t buf[1] = {{0}}; |
| 1913 | int n = parse_narrowing_collect(ctx, cond, buf, 1); |
| 1914 | if (n > 0) { |
| 1915 | *out = buf[0]; |
| 1916 | return true; |
| 1917 | } |
| 1918 | return false; |
| 1919 | } |
| 1920 | |
| 1921 | /* Recursive collector: adds narrowings from the predicate tree into out[] |
| 1922 | * up to max_out. Returns the number filled. */ |
no test coverage detected