cl-ast: Remove Param, replace with flat Pattern

This commit is contained in:
2025-02-23 02:01:38 -06:00
parent e3d94d8949
commit cc6168b55e
10 changed files with 16 additions and 49 deletions

View File

@@ -137,10 +137,7 @@ impl Interpret for Struct {
bind: args
.iter()
.enumerate()
.map(|(idx, _)| Param {
mutability: Mutability::Not,
bind: Pattern::Name(idx.to_string().into()),
})
.map(|(idx, _)| Pattern::Name(idx.to_string().into()))
.collect(),
body: None,
};