(structuredDiff: StructuredDiff, path: string, line: number)
| 20 | } |
| 21 | |
| 22 | export function inlinePositionParser(structuredDiff: StructuredDiff, path: string, line: number): InlinePosition { |
| 23 | d("structuredDiff", structuredDiff) |
| 24 | const lineDiff = calculateLineDiff(structuredDiff, line) |
| 25 | return { |
| 26 | pathDiff: { |
| 27 | oldPath: structuredDiff.fromPath, |
| 28 | newPath: path, |
| 29 | }, |
| 30 | lineDiff: lineDiff, |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | function calculateLineDiff(diff: StructuredDiff, line: number): LineDiff { |
| 35 | let chunk = findRelevantChunk(diff, line) |
no test coverage detected