Crate compiler_base_span

Source
Expand description

Source positions and related helper functions.

Important concepts in this module include:

  • the span, represented by Span and related types;
  • interned strings, represented by [Symbol]s, with some common symbols available statically in the [sym] module.

Reference: https://github.com/rust-lang/rust/blob/master/compiler/rustc_span/src/lib.rs

Re-exports§

pub use span::BytePos;
pub use span::Span;
pub use span::SpanData;
pub use span::DUMMY_SP;

Modules§

fatal_error
span

Functions§

span_to_filename_string
Get the filename from SourceMap by Span.

Type Aliases§

FilePathMapping
Loc
SourceFile
SourceMap