Skip to content

Commit

Permalink
[wip] Refactor tokens and token trees.
Browse files Browse the repository at this point in the history
  • Loading branch information
olson-sean-k committed Dec 28, 2023
1 parent a7a02f6 commit ba7d6a6
Show file tree
Hide file tree
Showing 5 changed files with 837 additions and 556 deletions.
10 changes: 10 additions & 0 deletions src/diagnostics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ impl SpanExt for Span {
}
}

pub trait Spanned {
fn span(&self) -> &Span;
}

impl Spanned for Span {
fn span(&self) -> &Span {
self
}
}

/// Error associated with a [`Span`] within a glob expression.
///
/// Located errors describe specific instances of an error within a glob expression. Types that
Expand Down
Loading

0 comments on commit ba7d6a6

Please sign in to comment.