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

Function exact

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

Source from the content-addressed store, hash-verified

218 });
219 if (fitting.length === 0) continue;
220 const exact = (n: Node): boolean => pascalParameterRange(n.signature)?.[1] === count;
221 const sameTypes = (n: Node): boolean => own !== null && String(pascalParameterTypes(n.signature)) === String(own);
222 const chosen = fitting.find(sameTypes) ?? (count === null ? fitting.find((n) => !needsArguments(n)) : fitting.find(exact)) ?? fitting[0]!;
223 context.rememberNode?.(chosen);

Callers

nothing calls this directly

Calls 1

pascalParameterRangeFunction · 0.85

Tested by

no test coverage detected