mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
move load::file::Module to can::
This commit is contained in:
parent
bff82bb0bf
commit
64583a01bb
2 changed files with 17 additions and 15 deletions
|
@ -15,6 +15,19 @@ use roc_region::all::{Located, Region};
|
|||
use roc_types::subs::{VarStore, Variable};
|
||||
use roc_types::types::Alias;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Module {
|
||||
pub module_id: ModuleId,
|
||||
pub declarations: Vec<Declaration>,
|
||||
pub exposed_imports: MutMap<Symbol, Variable>,
|
||||
pub exposed_vars_by_symbol: Vec<(Symbol, Variable)>,
|
||||
pub references: MutSet<Symbol>,
|
||||
pub aliases: MutMap<Symbol, Alias>,
|
||||
pub rigid_variables: MutMap<Variable, Lowercase>,
|
||||
pub imported_modules: MutSet<ModuleId>,
|
||||
pub src: Box<str>,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct ModuleOutput {
|
||||
pub aliases: MutMap<Symbol, Alias>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue