Skip to main content

Crate xur_span

Crate xur_span 

Source
Expand description

Source locations and interned names.

A Span is a byte range in the SourceMap’s global position space. Human-readable line/column positions are computed on demand, so the lexer never has to track them.

Structs§

Ident
A name together with where it was written.
LineCol
A 1-based line and column. The column counts characters, not bytes.
MemoryFileLoader
Serves files from memory, for tests and for embedding scripts that aren’t on disk.
OverlayFileLoader
Reads from in-memory overrides first, then falls back to disk.
RealFileLoader
Reads files from disk.
SourceFile
A loaded source file and the global positions it occupies.
SourceMap
Span
A half-open byte range start..end into the source text.
Symbol
An interned string.

Traits§

FileLoader
Reads source files; abstracted so tests can supply files from memory (rustc’s FileLoader).