* 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[])
| 607 | * rewrite may touch. The rows are the index's own spelling and stay out of it. |
| 608 | */ |
| 609 | function 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 | |
| 617 | function technical(ir: SemanticIR, presentation: ResolvedPresentation): TwinViewModel { |
| 618 | const sections = visibleSections(ir, presentation); |
no test coverage detected