fix: Fix ast::IfExpr child accessors

This commit is contained in:
Lukas Wirth 2023-03-15 12:53:39 +01:00
parent 1787c14e72
commit 9fe206956f
3 changed files with 21 additions and 21 deletions

View file

@ -937,12 +937,6 @@ impl From<ast::Adt> for ast::Item {
}
}
impl ast::IfExpr {
pub fn condition(&self) -> Option<ast::Expr> {
support::child(&self.syntax)
}
}
impl ast::MatchGuard {
pub fn condition(&self) -> Option<ast::Expr> {
support::child(&self.syntax)