xur_span/lib.rs
1//! Source locations and interned names.
2//!
3//! A [`Span`] is a byte range in the [`SourceMap`]'s global position space.
4//! Human-readable line/column positions are computed on demand, so the lexer
5//! never has to track them.
6
7mod source_map;
8mod span;
9mod symbol;
10
11pub use source_map::{
12 FileLoader, LineCol, MemoryFileLoader, OverlayFileLoader, RealFileLoader, SourceFile, SourceMap,
13};
14pub use span::Span;
15pub use symbol::{Ident, Symbol};