basic backpassing

This commit is contained in:
Folkert 2021-03-05 22:33:34 +01:00
parent 4a89ecca2a
commit 42654debbf
7 changed files with 252 additions and 41 deletions

View file

@ -187,6 +187,8 @@ pub enum Def<'a> {
body_expr: &'a Loc<Expr<'a>>,
},
Backpassing(&'a [Loc<Pattern<'a>>], &'a Loc<Expr<'a>>),
// Blank Space (e.g. comments, spaces, newlines) before or after a def.
// We preserve this for the formatter; canonicalization ignores it.
SpaceBefore(&'a Def<'a>, &'a [CommentOrNewline<'a>]),