mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
only do type checing for roc check
This commit is contained in:
parent
a0887da6ca
commit
5084fd533b
3 changed files with 60 additions and 12 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue