mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Parse module params loc and rename to pattern
This commit is contained in:
parent
c6e42ecf0c
commit
7ac72159e9
10 changed files with 20 additions and 14 deletions
|
@ -389,10 +389,10 @@ pub fn canonicalize_module_defs<'a>(
|
|||
|
||||
let mut param_patterns = Vec::new();
|
||||
|
||||
if let Some(ModuleParams { params, .. }) = header_type.get_params() {
|
||||
param_patterns.reserve_exact(params.len());
|
||||
if let Some(ModuleParams { pattern, .. }) = header_type.get_params() {
|
||||
param_patterns.reserve_exact(pattern.value.len());
|
||||
|
||||
for param in params.iter() {
|
||||
for param in pattern.value.iter() {
|
||||
let pattern = canonicalize_pattern(
|
||||
&mut env,
|
||||
var_store,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue