MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / fits

Function fits

src/resolution/pascal-scope.ts:506–509  ·  view source on GitHub ↗
(n: Node)

Source from the content-addressed store, hash-verified

504 if (count === null) return result;
505 const range = (n: Node): [number, number] | null => pascalParameterRange(n.signature);
506 const fits = (n: Node): boolean => {
507 const r = range(n);
508 return r !== null && count >= r[0] && count <= r[1];
509 };
510 if (fits(target)) return result;
511 const fitting = overloads.filter(fits);
512 if (fitting.length === 0) return result;

Callers 1

pascalOverloadForFunction · 0.70

Calls 1

rangeFunction · 0.85

Tested by

no test coverage detected