pub trait Spanned {
// Required methods
fn span(&self) -> Span;
fn source_file(&self) -> Option<&SourceFile>;
// Provided method
fn to_source_location(&self) -> SourceLocation { ... }
}
Expand description
Returns a span. This is implemented for tokens and nodes