mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Report unexpected params
This commit is contained in:
parent
db76ab4015
commit
bc6a84a215
10 changed files with 137 additions and 24 deletions
|
@ -24,6 +24,8 @@ pub struct Env<'a> {
|
|||
|
||||
pub qualified_module_ids: &'a PackageModuleIds<'a>,
|
||||
|
||||
pub modules_expecting_params: VecSet<ModuleId>,
|
||||
|
||||
/// Problems we've encountered along the way, which will be reported to the user at the end.
|
||||
pub problems: Vec<Problem>,
|
||||
|
||||
|
@ -52,6 +54,7 @@ impl<'a> Env<'a> {
|
|||
home: ModuleId,
|
||||
module_path: &'a Path,
|
||||
dep_idents: &'a IdentIdsByModule,
|
||||
modules_expecting_params: VecSet<ModuleId>,
|
||||
qualified_module_ids: &'a PackageModuleIds<'a>,
|
||||
opt_shorthand: Option<&'a str>,
|
||||
) -> Env<'a> {
|
||||
|
@ -60,6 +63,7 @@ impl<'a> Env<'a> {
|
|||
home,
|
||||
module_path,
|
||||
dep_idents,
|
||||
modules_expecting_params,
|
||||
qualified_module_ids,
|
||||
problems: Vec::new(),
|
||||
closures: MutMap::default(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue