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
Required methods
fn source_file(&self) -> Option<&SourceFile>
Provided methods
fn to_source_location(&self) -> SourceLocation