chore: add Planner

This commit is contained in:
Shunsuke Shibayama 2023-10-05 15:10:27 +09:00
parent 3085229801
commit e71c0d7720
7 changed files with 250 additions and 14 deletions

View file

@ -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>;