diff options
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r-- | crates/ra_syntax/src/ast/generated.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs index 7df6a9c46..ac320606d 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs | |||
@@ -217,7 +217,15 @@ impl<R: TreeRoot<RaTypes>> BinExprNode<R> { | |||
217 | } | 217 | } |
218 | 218 | ||
219 | 219 | ||
220 | impl<'a> BinExpr<'a> {} | 220 | impl<'a> BinExpr<'a> { |
221 | pub fn lhs(self) -> Option<Expr<'a>> { | ||
222 | super::child_opt(self) | ||
223 | } | ||
224 | |||
225 | pub fn rhs(self) -> Option<Expr<'a>> { | ||
226 | super::child_opt(self) | ||
227 | } | ||
228 | } | ||
221 | 229 | ||
222 | // BindPat | 230 | // BindPat |
223 | #[derive(Debug, Clone, Copy,)] | 231 | #[derive(Debug, Clone, Copy,)] |