MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / parse_narrowing

Function parse_narrowing

internal/cbm/lsp/php_lsp.c:1863–1871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1861 int max_out);
1862
1863static 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. */

Callers 2

apply_assert_narrowingFunction · 0.85
process_if_statementFunction · 0.85

Calls 1

parse_narrowing_collectFunction · 0.85

Tested by

no test coverage detected