feat: add Linter

This commit is contained in:
Shunsuke Shibayama 2024-03-25 00:13:03 +09:00
parent d7d422dfdc
commit 11f2b48853
13 changed files with 422 additions and 18 deletions

View file

@ -646,6 +646,14 @@ impl CompileErrors {
pub fn take(&mut self) -> Self {
self.flush()
}
pub fn len(&self) -> usize {
self.0.len()
}
pub fn is_empty(&self) -> bool {
self.0.is_empty()
}
}
pub type SingleCompileResult<T> = Result<T, CompileError>;