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

Function parse_narrowing

internal/cbm/lsp/php_lsp.c:1911–1919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1909 int max_out);
1910
1911static 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. */

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