mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-27 19:59:07 +00:00
chore: add ConstExpr::map
This commit is contained in:
parent
3066781092
commit
7c2d6ac59a
3 changed files with 101 additions and 5 deletions
|
@ -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>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue