[fine] starting to work on methods

This commit is contained in:
John Doty 2024-01-22 06:04:13 -08:00
parent fde5579479
commit 0d48bfb113
4 changed files with 22 additions and 8 deletions

View file

@ -412,7 +412,10 @@ impl<'a> Semantics<'a> {
pub fn snapshot_errors(&self) -> Vec<Error> {
let mut result = (*self.errors.borrow()).clone();
result.sort_by(|a, b| a.start.0.cmp(&b.start.0));
result.sort_by(|a, b| match a.start.0.cmp(&b.start.0) {
std::cmp::Ordering::Equal => a.start.1.cmp(&b.start.1),
o => o,
});
result
}