mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 13:41:10 +00:00
chore: add Planner
This commit is contained in:
parent
3085229801
commit
e71c0d7720
7 changed files with 250 additions and 14 deletions
|
@ -525,6 +525,10 @@ impl CompileErrors {
|
|||
pub fn flush(&mut self) -> Self {
|
||||
Self(self.0.drain(..).collect())
|
||||
}
|
||||
|
||||
pub fn take(&mut self) -> Self {
|
||||
self.flush()
|
||||
}
|
||||
}
|
||||
|
||||
pub type SingleCompileResult<T> = Result<T, CompileError>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue