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

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