Expand description
Source-byte spans for splice reflow.
Native parsers record half-open [start, end) ranges into the original
input. Structure, blank, and code regions are those slices; only prose
(and a configured code-comment body) is rewritten. Output is assembled
by copying the gaps between rewrite ranges.
Structs§
- Byte
Span - Half-open byte range
[start, end)into the parser input. - Code
Spans - Header/body/footer spans of a
Region::Code. - Line
- One physical line of
input, with byte offsets. - Spanned
Region - A classified region plus the parser-recorded source origin, if any.
Enums§
- Region
Origin - Origin recorded by a parser for one
Region.
Functions§
- flush_
prose_ spanned - Flush accumulated prose into the region list.
- iter_
lines - Split
inputinto lines the waystr::linesdoes, but keep offsets. - push_
prose_ line - Append a physical line to the running prose buffer and extend its span.