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

Function overloads

__tests__/csharp-extension-overloads.test.ts:161–166  ·  view source on GitHub ↗

The overloads (by declaration line) a caller's calls of `ref` reach, with the line of each call.

(caller: string, ref: string)

Source from the content-addressed store, hash-verified

159
160/** The overloads (by declaration line) a caller's calls of `ref` reach, with the line of each call. */
161function overloads(caller: string, ref: string): Array<[number, number]> {
162 return edges()
163 .filter((e) => e.k === 'calls' && e.sq === caller && JSON.parse(e.m ?? '{}').refName === ref)
164 .map((e): [number, number] => [e.line, e.tl])
165 .sort((a, b) => a[0] - b[0] || a[1] - b[1]);
166}
167
168// Declaration lines in PathExtensions.cs: no argument 9, `out char` 15, `char` 22. In
169// StreamExtensions.cs: (Stream) 9, (Stream, Encoding) 11, (TextReader) 17.

Calls 3

mapMethod · 0.80
parseMethod · 0.80
edgesFunction · 0.70

Tested by

no test coverage detected