Skip to main content

Module span

Module span 

Expand description

Source position spans.

Structs§

Span
A byte range in the source. Half-open: [start, end).

Functions§

line_col
1-indexed (line, column) of a byte offset in source. Columns count characters, not bytes. Lives in the syntax leaf so every layer that maps a span to a position — the emitter’s assertion locations, bynkc’s short rendering, and (slice 6) bynk-render — shares one implementation.