erg/compiler/erg_compiler/linter/lint.rs
Shunsuke Shibayama 1531d45108 Add lint module
2022-10-17 00:39:37 +09:00

21 lines
354 B
Rust

use erg_common::Str;
use crate::hir::HIR;
use crate::error::CompileWarnings;
#[derive(Debug, Default)]
pub struct Linter {
_used: Vec<Str>,
}
impl Linter {
pub fn new() -> Self {
Self {
_used: Vec::new(),
}
}
pub fn lint(&mut self, _hir: &HIR) -> CompileWarnings {
CompileWarnings::empty()
}
}