mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
fix: Fix ast::IfExpr child accessors
This commit is contained in:
parent
1787c14e72
commit
9fe206956f
3 changed files with 21 additions and 21 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue