Handle closure return types

Fixes #2547.
This commit is contained in:
Florian Diebold 2019-12-20 16:41:32 +01:00
parent cfc50ff160
commit 2a8c9100bf
8 changed files with 113 additions and 6 deletions

View file

@ -1426,6 +1426,9 @@ impl LambdaExpr {
pub fn param_list(&self) -> Option<ParamList> {
AstChildren::new(&self.syntax).next()
}
pub fn ret_type(&self) -> Option<RetType> {
AstChildren::new(&self.syntax).next()
}
pub fn body(&self) -> Option<Expr> {
AstChildren::new(&self.syntax).next()
}