(payload: WireFilePayload)
| 161 | * closure would otherwise indent itself off the right edge of the column. |
| 162 | */ |
| 163 | export function buildFileOutline(payload: WireFilePayload): OutlineEntryRow[] { |
| 164 | return payload.outline.items.map((entry) => ({ |
| 165 | entry, |
| 166 | indent: Math.min(entry.depth, 3), |
| 167 | dimmed: QUIET_KINDS.has(entry.kind), |
| 168 | })); |
| 169 | } |
| 170 | |
| 171 | /* ---------------------------------------------------------------- header -- */ |
| 172 |
no test coverage detected