chore: add ConstExpr::map

This commit is contained in:
Shunsuke Shibayama 2024-10-04 13:01:30 +09:00
parent 3066781092
commit 7c2d6ac59a
3 changed files with 101 additions and 5 deletions

View file

@ -44,6 +44,12 @@ impl From<LexError> for ErrorCore {
}
}
impl LexError {
pub fn loc(&self) -> Location {
self.0.loc
}
}
#[cfg_attr(feature = "pylib", pyo3::pyclass)]
#[derive(Debug)]
pub struct LexErrors(Vec<LexError>);