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

Function sameTypes

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

Source from the content-addressed store, hash-verified

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);
224 return { original: ref, targetNodeId: chosen.id, confidence: 0.9, resolvedBy: 'instance-method' };

Callers

nothing calls this directly

Calls 1

pascalParameterTypesFunction · 0.85

Tested by

no test coverage detected