(i: number)
| 159 | let hunkStartLineIndex = 0 |
| 160 | |
| 161 | function commitHunk(i: number) { |
| 162 | if (currentHunk) { |
| 163 | if (currentHunkMutationPart) { |
| 164 | currentHunk.parts.push(currentHunkMutationPart) |
| 165 | currentHunkMutationPart = null |
| 166 | } |
| 167 | currentHunk.source = lines.slice(hunkStartLineIndex, i).join("\n") |
| 168 | currentFilePatch.hunks!.push(currentHunk) |
| 169 | currentHunk = null |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | function commitFilePatch(i: number) { |
| 174 | commitHunk(i) |
no outgoing calls
no test coverage detected
searching dependent graphs…