(line: number, ref: LineRef)
| 217 | export function buildFileRefs(payload: WireFileCodePayload): Map<number, LineRef[]> { |
| 218 | const byLine = new Map<number, LineRef[]>(); |
| 219 | const add = (line: number, ref: LineRef): void => { |
| 220 | const bucket = byLine.get(line); |
| 221 | if (bucket) bucket.push(ref); |
| 222 | else byLine.set(line, [ref]); |
| 223 | }; |
| 224 | |
| 225 | for (const call of payload.calls.items) { |
| 226 | const relation = call.relation; |
no test coverage detected