Trait sixtyfps_compilerlib::diagnostics::Spanned [−][src]
pub trait Spanned {
fn span(&self) -> Span;
fn source_file(&self) -> Option<&SourceFile>;
fn to_source_location(&self) -> SourceLocation { ... }
}
Expand description
Returns a span. This is implemented for tokens and nodes