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

Function parse_narrowing

internal/cbm/lsp/php_lsp.c:1681–1689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1679 int max_out);
1680
1681static 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. */

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