MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / buildFileOutline

Function buildFileOutline

ui/src/lib/file-model.ts:163–169  ·  view source on GitHub ↗
(payload: WireFilePayload)

Source from the content-addressed store, hash-verified

161 * closure would otherwise indent itself off the right edge of the column.
162 */
163export 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

Callers 1

Calls 2

mapMethod · 0.80
hasMethod · 0.80

Tested by

no test coverage detected