refactor(xatu): return structured reports

This commit was merged in pull request #73.
This commit is contained in:
2026-09-18 22:43:17 -04:00
parent 113018a62c
commit 1fa3962fed
4 changed files with 54 additions and 13 deletions

View File

@@ -16,6 +16,12 @@ pub struct SourceRange {
pub end: usize,
}
impl std::fmt::Display for SourceRange {
fn fmt(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(formatter, "{}..{}", self.start, self.end)
}
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Node {
pub range: SourceRange,