diff options
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r-- | crates/ra_syntax/src/ast/generated.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs index ce559882b..d0561c495 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs | |||
@@ -1982,7 +1982,11 @@ impl ToOwned for MatchGuard { | |||
1982 | } | 1982 | } |
1983 | 1983 | ||
1984 | 1984 | ||
1985 | impl MatchGuard {} | 1985 | impl MatchGuard { |
1986 | pub fn expr(&self) -> Option<&Expr> { | ||
1987 | super::child_opt(self) | ||
1988 | } | ||
1989 | } | ||
1986 | 1990 | ||
1987 | // MethodCallExpr | 1991 | // MethodCallExpr |
1988 | #[derive(Debug, PartialEq, Eq, Hash)] | 1992 | #[derive(Debug, PartialEq, Eq, Hash)] |