Parse module params loc and rename to pattern

This commit is contained in:
Agus Zubiaga 2024-06-27 16:14:56 -03:00
parent c6e42ecf0c
commit 7ac72159e9
No known key found for this signature in database
10 changed files with 20 additions and 14 deletions

View file

@ -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,