aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast
diff options
context:
space:
mode:
authorMarcus Klaas de Vries <[email protected]>2019-01-06 20:39:36 +0000
committerMarcus Klaas de Vries <[email protected]>2019-01-06 21:17:54 +0000
commit82d9a77dade454ee8d09f198fa839e7755ff7bfb (patch)
tree791b3c0ee6069a06896c815795ff7e86877887df /crates/ra_syntax/src/ast
parent4fc233a02e8dc07619a969400c445ec47c2b1a9d (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.rs10
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
220impl<'a> BinExpr<'a> { 220impl<'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,)]