mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Add module_path to can env instead of threading it through
This commit is contained in:
parent
e5789158e5
commit
5112e064e5
7 changed files with 76 additions and 194 deletions
|
@ -260,7 +260,6 @@ pub fn canonicalize_def_header_pattern<'a>(
|
|||
pattern_type: PatternType,
|
||||
pattern: &ast::Pattern<'a>,
|
||||
region: Region,
|
||||
module_path: &str,
|
||||
) -> Loc<Pattern> {
|
||||
use roc_parse::ast::Pattern::*;
|
||||
|
||||
|
@ -315,7 +314,6 @@ pub fn canonicalize_def_header_pattern<'a>(
|
|||
pattern,
|
||||
region,
|
||||
PermitShadows(false),
|
||||
module_path,
|
||||
),
|
||||
}
|
||||
}
|
||||
|
@ -373,7 +371,6 @@ pub fn canonicalize_pattern<'a>(
|
|||
pattern: &ast::Pattern<'a>,
|
||||
region: Region,
|
||||
permit_shadows: PermitShadows,
|
||||
module_path: &str,
|
||||
) -> Loc<Pattern> {
|
||||
use roc_parse::ast::Pattern::*;
|
||||
use PatternType::*;
|
||||
|
@ -421,7 +418,6 @@ pub fn canonicalize_pattern<'a>(
|
|||
&loc_pattern.value,
|
||||
loc_pattern.region,
|
||||
permit_shadows,
|
||||
module_path,
|
||||
);
|
||||
|
||||
can_patterns.push((var_store.fresh(), can_pattern));
|
||||
|
@ -594,7 +590,6 @@ pub fn canonicalize_pattern<'a>(
|
|||
sub_pattern,
|
||||
region,
|
||||
permit_shadows,
|
||||
module_path,
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -613,7 +608,6 @@ pub fn canonicalize_pattern<'a>(
|
|||
&loc_pattern.value,
|
||||
loc_pattern.region,
|
||||
permit_shadows,
|
||||
module_path,
|
||||
);
|
||||
|
||||
destructs.push(Loc {
|
||||
|
@ -692,7 +686,6 @@ pub fn canonicalize_pattern<'a>(
|
|||
&loc_guard.value,
|
||||
loc_guard.region,
|
||||
permit_shadows,
|
||||
module_path,
|
||||
);
|
||||
|
||||
destructs.push(Loc {
|
||||
|
@ -715,7 +708,6 @@ pub fn canonicalize_pattern<'a>(
|
|||
scope,
|
||||
loc_default.region,
|
||||
&loc_default.value,
|
||||
module_path,
|
||||
);
|
||||
|
||||
// an optional field binds the symbol!
|
||||
|
@ -837,7 +829,6 @@ pub fn canonicalize_pattern<'a>(
|
|||
pattern,
|
||||
loc_pattern.region,
|
||||
permit_shadows,
|
||||
module_path,
|
||||
);
|
||||
can_pats.push(pat);
|
||||
}
|
||||
|
@ -872,7 +863,6 @@ pub fn canonicalize_pattern<'a>(
|
|||
&loc_pattern.value,
|
||||
loc_pattern.region,
|
||||
permit_shadows,
|
||||
module_path,
|
||||
);
|
||||
|
||||
match canonicalize_pattern_symbol(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue