Updated closures

This commit is contained in:
2026-06-05 12:14:19 +02:00
parent 8df4351563
commit 0955bca5bc
4 changed files with 46 additions and 32 deletions
+5 -1
View File
@@ -7,6 +7,11 @@ pub enum Expression {
Literal(Literal),
Path(ExprPath),
Statement(Box<Statement>),
Closure {
return_type: Option<TypeExpr>,
params: Vec<VarDecl>,
body: Box<Expression>,
},
Fix {
initial: Box<Expression>,
prefixes: Vec<Prefix>,
@@ -72,7 +77,6 @@ pub enum Prefix {
Deref,
Not,
Neg,
Closure(Option<TypeExpr>, Vec<VarDecl>),
}
#[derive(Debug, Clone, Serialize)]