[fine] starting to work on methods
This commit is contained in:
parent
fde5579479
commit
0d48bfb113
4 changed files with 22 additions and 8 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue