Expand expression desugaring

This commit is contained in:
Joscha 2022-11-21 11:43:31 +01:00
parent 13b7db79b0
commit 8278442d3f
3 changed files with 81 additions and 1 deletions

View file

@ -5,7 +5,7 @@ impl Program {
pub fn desugar(self) -> (Self, bool) {
match self {
Self::Expr { s0, expr, s1, span } => {
let (expr, desugared) = (expr, false); // TODO Implement
let (expr, desugared) = expr.desugar();
(Self::Expr { s0, expr, s1, span }, desugared)
}