parent
1178fa3f01
commit
a34d7d4dbb
|
@ -223,15 +223,6 @@ pub struct CheckedModule {
|
||||||
pub extra: ModuleExtra,
|
pub extra: ModuleExtra,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl CheckedModule {
|
|
||||||
pub fn is_library(&self) -> bool {
|
|
||||||
self.ast.definitions().any(|def| match def {
|
|
||||||
Definition::Fn(func_def) => VALIDATOR_NAMES.contains(&func_def.name.as_str()),
|
|
||||||
_ => false,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct CheckedModules(HashMap<String, CheckedModule>);
|
pub struct CheckedModules(HashMap<String, CheckedModule>);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue