The overloads (by declaration line) a caller's calls of `ref` reach, with the line of each call.
(caller: string, ref: string)
| 159 | |
| 160 | /** The overloads (by declaration line) a caller's calls of `ref` reach, with the line of each call. */ |
| 161 | function 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. |
no test coverage detected