diff options
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r-- | crates/ra_syntax/src/ast/generated.rs | 3 | ||||
-rw-r--r-- | crates/ra_syntax/src/grammar.ron | 2 |
2 files changed, 4 insertions, 1 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 | } |
diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron index 9ffa9095b..a228fa9d6 100644 --- a/crates/ra_syntax/src/grammar.ron +++ b/crates/ra_syntax/src/grammar.ron | |||
@@ -426,7 +426,7 @@ Grammar( | |||
426 | "PathExpr": (options: ["Path"]), | 426 | "PathExpr": (options: ["Path"]), |
427 | "LambdaExpr": ( | 427 | "LambdaExpr": ( |
428 | options: [ | 428 | options: [ |
429 | "ParamList", | 429 | "ParamList", "RetType", |
430 | ["body", "Expr"], | 430 | ["body", "Expr"], |
431 | ] | 431 | ] |
432 | ), | 432 | ), |