aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2019-12-20 15:41:32 +0000
committerFlorian Diebold <[email protected]>2019-12-20 17:16:11 +0000
commit2a8c9100bfb1294a469bc039a5b9597eabed7073 (patch)
treeae4e2dd0ae2c62baf79ec1197f5ec5f94a7645e5 /crates/ra_syntax/src/ast
parentcfc50ff160d0af2ce5cd931c6d41161abfdb2fbd (diff)
Handle closure return types
Fixes #2547.
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r--crates/ra_syntax/src/ast/generated.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs
index 9dd6bd3ea..8d65e2e08 100644
--- a/crates/ra_syntax/src/ast/generated.rs
+++ b/crates/ra_syntax/src/ast/generated.rs
@@ -1426,6 +1426,9 @@ impl LambdaExpr {
1426 pub fn param_list(&self) -> Option<ParamList> { 1426 pub fn param_list(&self) -> Option<ParamList> {
1427 AstChildren::new(&self.syntax).next() 1427 AstChildren::new(&self.syntax).next()
1428 } 1428 }
1429 pub fn ret_type(&self) -> Option<RetType> {
1430 AstChildren::new(&self.syntax).next()
1431 }
1429 pub fn body(&self) -> Option<Expr> { 1432 pub fn body(&self) -> Option<Expr> {
1430 AstChildren::new(&self.syntax).next() 1433 AstChildren::new(&self.syntax).next()
1431 } 1434 }