basic canonicalization

This commit is contained in:
Folkert 2022-08-09 13:59:24 +02:00
parent 15665d612d
commit bcbc8b4d50
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
7 changed files with 74 additions and 3 deletions

View file

@ -92,6 +92,16 @@ fn desugar_value_def<'a>(arena: &'a Bump, def: &'a ValueDef<'a>) -> ValueDef<'a>
preceding_comment: *preceding_comment,
}
}
ExpectFx {
condition,
preceding_comment,
} => {
let desugared_condition = &*arena.alloc(desugar_expr(arena, condition));
ExpectFx {
condition: desugared_condition,
preceding_comment: *preceding_comment,
}
}
}
}