Skip to main content

Module span

Module span 

Source
Expand description

Source locations.

A SourceSpan is a byte range in a named source file; linecol converts a byte offset within source text into a 1-based (line, column) pair for rendering.

Structs§

SourceSpan
A byte-range location in a source file (manifest §6 stage 1).

Functions§

linecol
Convert a byte offset into a 1-based (line, column) pair.