diff options
author | Marcus Klaas de Vries <[email protected]> | 2019-01-06 20:39:36 +0000 |
---|---|---|
committer | Marcus Klaas de Vries <[email protected]> | 2019-01-06 21:17:54 +0000 |
commit | 82d9a77dade454ee8d09f198fa839e7755ff7bfb (patch) | |
tree | 791b3c0ee6069a06896c815795ff7e86877887df /crates/ra_syntax/src/ast | |
parent | 4fc233a02e8dc07619a969400c445ec47c2b1a9d (diff) |
Touch up type inference for boolean operators
Also try to infer its subexpressions and set type expectations
whenever possible.
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r-- | crates/ra_syntax/src/ast/generated.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs index ac320606d..7df6a9c46 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs | |||
@@ -217,15 +217,7 @@ 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 | } | ||
229 | 221 | ||
230 | // BindPat | 222 | // BindPat |
231 | #[derive(Debug, Clone, Copy,)] | 223 | #[derive(Debug, Clone, Copy,)] |