(t0)
| 51 | return t2; |
| 52 | } |
| 53 | function DiffBody(t0) { |
| 54 | const $ = _c(6); |
| 55 | const { |
| 56 | promise, |
| 57 | file_path |
| 58 | } = t0; |
| 59 | const { |
| 60 | patch, |
| 61 | firstLine, |
| 62 | fileContent |
| 63 | } = use(promise); |
| 64 | const { |
| 65 | columns |
| 66 | } = useTerminalSize(); |
| 67 | let t1; |
| 68 | if ($[0] !== columns || $[1] !== fileContent || $[2] !== file_path || $[3] !== firstLine || $[4] !== patch) { |
| 69 | t1 = <DiffFrame><StructuredDiffList hunks={patch} dim={false} width={columns} filePath={file_path} firstLine={firstLine} fileContent={fileContent} /></DiffFrame>; |
| 70 | $[0] = columns; |
| 71 | $[1] = fileContent; |
| 72 | $[2] = file_path; |
| 73 | $[3] = firstLine; |
| 74 | $[4] = patch; |
| 75 | $[5] = t1; |
| 76 | } else { |
| 77 | t1 = $[5]; |
| 78 | } |
| 79 | return t1; |
| 80 | } |
| 81 | function DiffFrame(t0) { |
| 82 | const $ = _c(5); |
| 83 | const { |
nothing calls this directly
no test coverage detected