(t0)
| 79 | return t1; |
| 80 | } |
| 81 | function DiffFrame(t0) { |
| 82 | const $ = _c(5); |
| 83 | const { |
| 84 | children, |
| 85 | placeholder |
| 86 | } = t0; |
| 87 | let t1; |
| 88 | if ($[0] !== children || $[1] !== placeholder) { |
| 89 | t1 = placeholder ? <Text dimColor={true}>…</Text> : children; |
| 90 | $[0] = children; |
| 91 | $[1] = placeholder; |
| 92 | $[2] = t1; |
| 93 | } else { |
| 94 | t1 = $[2]; |
| 95 | } |
| 96 | let t2; |
| 97 | if ($[3] !== t1) { |
| 98 | t2 = <Box flexDirection="column"><Box borderColor="subtle" borderStyle="dashed" flexDirection="column" borderLeft={false} borderRight={false}>{t1}</Box></Box>; |
| 99 | $[3] = t1; |
| 100 | $[4] = t2; |
| 101 | } else { |
| 102 | t2 = $[4]; |
| 103 | } |
| 104 | return t2; |
| 105 | } |
| 106 | async function loadDiffData(file_path: string, edits: FileEdit[]): Promise<DiffData> { |
| 107 | const valid = edits.filter(e => e.old_string != null && e.new_string != null); |
| 108 | const single = valid.length === 1 ? valid[0]! : undefined; |
nothing calls this directly
no outgoing calls
no test coverage detected