Skip to main content

SourceLocation

Type Alias SourceLocation 

Source
pub type SourceLocation = ByteSpan;
Expand description

Type alias for backward compatibility with SourceLocation.

New code should use ByteSpan directly.

Aliased Type§

pub struct SourceLocation {
    pub start: usize,
    pub end: usize,
}

Fields§

§start: usize

Starting byte offset in the source text (inclusive)

§end: usize

Ending byte offset in the source text (exclusive)