mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
working completions
This commit is contained in:
parent
f5e32f7e16
commit
3027fc2284
6 changed files with 238 additions and 29 deletions
|
@ -9,7 +9,9 @@ use roc_module::ident::ModuleName;
|
|||
use roc_module::symbol::{ModuleId, PQModuleName, Symbol};
|
||||
use roc_mono::ir::ExternalSpecializations;
|
||||
use roc_problem::Severity;
|
||||
use roc_region::all::Region;
|
||||
use roc_solve_problem::TypeError;
|
||||
use roc_types::subs::Variable;
|
||||
use roc_types::types::Alias;
|
||||
use std::path::PathBuf;
|
||||
|
||||
|
@ -33,6 +35,9 @@ pub(crate) struct ModuleCache<'a> {
|
|||
|
||||
/// Various information
|
||||
pub(crate) imports: MutMap<ModuleId, MutSet<ModuleId>>,
|
||||
pub(crate) exposes: MutMap<ModuleId, Vec<(Symbol, Variable)>>,
|
||||
pub(crate) imported_modules: MutMap<ModuleId, MutMap<ModuleId, Region>>,
|
||||
pub(crate) exposed_imports: MutMap<ModuleId, MutMap<Symbol, Region>>,
|
||||
pub(crate) top_level_thunks: MutMap<ModuleId, MutSet<Symbol>>,
|
||||
pub(crate) documentation: VecMap<ModuleId, ModuleDocumentation>,
|
||||
pub(crate) can_problems: MutMap<ModuleId, Vec<roc_problem::can::Problem>>,
|
||||
|
@ -103,6 +108,9 @@ impl Default for ModuleCache<'_> {
|
|||
late_specializations: Default::default(),
|
||||
external_specializations_requested: Default::default(),
|
||||
imports: Default::default(),
|
||||
imported_modules: Default::default(),
|
||||
exposed_imports: Default::default(),
|
||||
exposes: Default::default(),
|
||||
top_level_thunks: Default::default(),
|
||||
documentation: Default::default(),
|
||||
can_problems: Default::default(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue