only do type checing for roc check

This commit is contained in:
Folkert 2021-10-10 16:32:14 +02:00
parent a0887da6ca
commit 5084fd533b
3 changed files with 60 additions and 12 deletions

View file

@ -632,6 +632,22 @@ pub struct LoadedModule {
pub documentation: MutMap<ModuleId, ModuleDocumentation>,
}
impl LoadedModule {
pub fn total_problems(&self) -> usize {
let mut total = 0;
for problems in self.can_problems.values() {
total += problems.len();
}
for problems in self.type_problems.values() {
total += problems.len();
}
total
}
}
#[derive(Debug)]
pub enum BuildProblem<'a> {
FileNotFound(&'a Path),