(
r: { parts: SectionPart[]; covered: ExploreLineRange[]; shrunk: boolean },
)
| 7355 | // site render hid in the diagnostic as a complete section. |
| 7356 | const windowed = windowsSpineIn(c.start, c.end); |
| 7357 | const bound = ( |
| 7358 | r: { parts: SectionPart[]; covered: ExploreLineRange[]; shrunk: boolean }, |
| 7359 | ) => { |
| 7360 | if (!Number.isFinite(ceiling) || sectionText(r.parts).length <= ceiling) return r; |
| 7361 | // Windows are subsets of spans dedupeSpans already cleared, so the record |
| 7362 | // still only ever claims source that was actually sent. |
| 7363 | // A body the window cuts says so where it is cut, with the query for |
| 7364 | // the rest (#2486): the agent otherwise learns of the cut only from a |
| 7365 | // footer whose advice — ask for the symbol by name — returns this same |
| 7366 | // window. |
| 7367 | const focus = focusLinesOf(c); |
| 7368 | const parts = noteCutBodies(windowToCeiling(r.parts, ceiling, focus), r.parts, c, focus); |
| 7369 | return { parts, covered: r.covered, shrunk: true }; |
| 7370 | }; |
| 7371 | if (sectionText(base.parts).length <= Math.min(cap, guard ?? Infinity)) { |
| 7372 | return { parts: base.parts, covered: base.covered, shrunk: windowed }; |
| 7373 | } |
nothing calls this directly
no outgoing calls
no test coverage detected