(t0)
| 15 | verbose: boolean; |
| 16 | }; |
| 17 | export function DiagnosticsDisplay(t0) { |
| 18 | const $ = _c(14); |
| 19 | const { |
| 20 | attachment, |
| 21 | verbose |
| 22 | } = t0; |
| 23 | if (attachment.files.length === 0) { |
| 24 | return null; |
| 25 | } |
| 26 | let t1; |
| 27 | if ($[0] !== attachment.files) { |
| 28 | t1 = attachment.files.reduce(_temp, 0); |
| 29 | $[0] = attachment.files; |
| 30 | $[1] = t1; |
| 31 | } else { |
| 32 | t1 = $[1]; |
| 33 | } |
| 34 | const totalIssues = t1; |
| 35 | const fileCount = attachment.files.length; |
| 36 | if (verbose) { |
| 37 | let t2; |
| 38 | if ($[2] !== attachment.files) { |
| 39 | t2 = attachment.files.map(_temp3); |
| 40 | $[2] = attachment.files; |
| 41 | $[3] = t2; |
| 42 | } else { |
| 43 | t2 = $[3]; |
| 44 | } |
| 45 | let t3; |
| 46 | if ($[4] !== t2) { |
| 47 | t3 = <Box flexDirection="column">{t2}</Box>; |
| 48 | $[4] = t2; |
| 49 | $[5] = t3; |
| 50 | } else { |
| 51 | t3 = $[5]; |
| 52 | } |
| 53 | return t3; |
| 54 | } else { |
| 55 | let t2; |
| 56 | if ($[6] !== totalIssues) { |
| 57 | t2 = <Text bold={true}>{totalIssues}</Text>; |
| 58 | $[6] = totalIssues; |
| 59 | $[7] = t2; |
| 60 | } else { |
| 61 | t2 = $[7]; |
| 62 | } |
| 63 | const t3 = totalIssues === 1 ? "issue" : "issues"; |
| 64 | const t4 = fileCount === 1 ? "file" : "files"; |
| 65 | let t5; |
| 66 | if ($[8] === Symbol.for("react.memo_cache_sentinel")) { |
| 67 | t5 = <CtrlOToExpand />; |
| 68 | $[8] = t5; |
| 69 | } else { |
| 70 | t5 = $[8]; |
| 71 | } |
| 72 | let t6; |
| 73 | if ($[9] !== fileCount || $[10] !== t2 || $[11] !== t3 || $[12] !== t4) { |
| 74 | t6 = <MessageResponse><Text dimColor={true} wrap="wrap">Found {t2} new diagnostic{" "}{t3} in {fileCount}{" "}{t4} {t5}</Text></MessageResponse>; |
nothing calls this directly
no outgoing calls
no test coverage detected