Type Alias source_map::SpanWithSource
source · pub type SpanWithSource = BaseSpan<SourceId>;
Aliased Type§
struct SpanWithSource {
pub start: u32,
pub end: u32,
pub source: SourceId,
}
Fields§
§start: u32
§end: u32
§source: SourceId
Implementations§
source§impl SpanWithSource
impl SpanWithSource
pub fn get_start(&self) -> Position
pub fn get_end(&self) -> Position
pub fn into_line_column_span<T: StringEncoding>( self, fs: &impl FileSystem ) -> LineColumnSpan<T>
sourcepub const NULL_SPAN: SpanWithSource = _
pub const NULL_SPAN: SpanWithSource = _
TODO explain use cases