MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / sectionLines

Function sectionLines

graph-ui/src/twin/render-model.ts:609–615  ·  view source on GitHub ↗

* The assembled sentences of a set of sections, in reading order. * * A section's own paragraph and its empty sentence are the only two things on * this level that CodeAtlas wrote rather than read, so they are the only two a * rewrite may touch. The rows are the index's own spelling and stay out

(sections: readonly TwinSection[])

Source from the content-addressed store, hash-verified

607 * rewrite may touch. The rows are the index's own spelling and stay out of it.
608 */
609function sectionLines(sections: readonly TwinSection[]): ReaderLine[] {
610 return readerLines(sections.flatMap((section) => [
611 { id: `section-${section.name}-text`, text: section.text ?? '' },
612 { id: `section-${section.name}-empty`, text: section.rows.length === 0 ? section.emptyText : '' },
613 { id: `section-${section.name}-note`, text: section.note ?? '' }
614 ]));
615}
616
617function technical(ir: SemanticIR, presentation: ResolvedPresentation): TwinViewModel {
618 const sections = visibleSections(ir, presentation);

Callers 2

withImportsSectionFunction · 0.85
technicalFunction · 0.85

Calls 1

readerLinesFunction · 0.90

Tested by

no test coverage detected