(t0)
| 37 | return out; |
| 38 | } |
| 39 | export function HighlightedCodeFallback(t0) { |
| 40 | const $ = _c(20); |
| 41 | const { |
| 42 | code, |
| 43 | filePath, |
| 44 | dim: t1, |
| 45 | skipColoring: t2 |
| 46 | } = t0; |
| 47 | const dim = t1 === undefined ? false : t1; |
| 48 | const skipColoring = t2 === undefined ? false : t2; |
| 49 | let t3; |
| 50 | if ($[0] !== code) { |
| 51 | t3 = convertLeadingTabsToSpaces(code); |
| 52 | $[0] = code; |
| 53 | $[1] = t3; |
| 54 | } else { |
| 55 | t3 = $[1]; |
| 56 | } |
| 57 | const codeWithSpaces = t3; |
| 58 | if (skipColoring) { |
| 59 | let t4; |
| 60 | if ($[2] !== codeWithSpaces) { |
| 61 | t4 = <Ansi>{codeWithSpaces}</Ansi>; |
| 62 | $[2] = codeWithSpaces; |
| 63 | $[3] = t4; |
| 64 | } else { |
| 65 | t4 = $[3]; |
| 66 | } |
| 67 | let t5; |
| 68 | if ($[4] !== dim || $[5] !== t4) { |
| 69 | t5 = <Text dimColor={dim}>{t4}</Text>; |
| 70 | $[4] = dim; |
| 71 | $[5] = t4; |
| 72 | $[6] = t5; |
| 73 | } else { |
| 74 | t5 = $[6]; |
| 75 | } |
| 76 | return t5; |
| 77 | } |
| 78 | let t4; |
| 79 | if ($[7] !== filePath) { |
| 80 | t4 = extname(filePath).slice(1); |
| 81 | $[7] = filePath; |
| 82 | $[8] = t4; |
| 83 | } else { |
| 84 | t4 = $[8]; |
| 85 | } |
| 86 | const language = t4; |
| 87 | let t5; |
| 88 | if ($[9] !== codeWithSpaces) { |
| 89 | t5 = <Ansi>{codeWithSpaces}</Ansi>; |
| 90 | $[9] = codeWithSpaces; |
| 91 | $[10] = t5; |
| 92 | } else { |
| 93 | t5 = $[10]; |
| 94 | } |
| 95 | let t6; |
| 96 | if ($[11] !== codeWithSpaces || $[12] !== language) { |
nothing calls this directly
no test coverage detected