mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
move expr/pattern constraint gen
This commit is contained in:
parent
546afc9661
commit
828483393a
6 changed files with 630 additions and 3001 deletions
|
@ -16,17 +16,13 @@ pub enum ExposedModuleTypes {
|
|||
Valid(MutMap<Symbol, SolvedType>, MutMap<Symbol, Alias>),
|
||||
}
|
||||
|
||||
// pub struct ConstrainedModule {
|
||||
// pub unused_imports: MutMap<ModuleId, Region>,
|
||||
// pub constraint: Constraint,
|
||||
// }
|
||||
|
||||
pub fn constrain_module_soa(
|
||||
constraints: &mut Constraints,
|
||||
declarations: &[Declaration],
|
||||
home: ModuleId,
|
||||
) -> Constraint {
|
||||
crate::soa_expr::constrain_decls(constraints, home, declarations)
|
||||
crate::expr::constrain_decls(constraints, home, declarations)
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue