Simplify creating Expr

This commit is contained in:
Joscha 2022-11-22 15:48:47 +01:00
parent 42369628b6
commit fafc567447
15 changed files with 163 additions and 112 deletions

View file

@ -198,3 +198,9 @@ impl HasSpan for Lit {
}
}
}
impl Lit {
pub fn expr(self) -> Expr {
Expr::Lit(self)
}
}