Skip to main content

Module text

Module text 

Source
Expand description

Source location types (offset-only).

This module provides TextSize (a byte offset) and TextRange (a half-open byte range) for tracking source positions. Inspired by ruff / rust-analyzer’s text-size crate.

Structs§

LineColumn
A line/column position in the source text.
LineIndex
A lookup table for converting byte offsets to LineColumn positions.
TextRange
A range in the source text [start, end), represented as byte offsets.
TextSize
A byte offset in the source text.