aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast/generated.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/ast/generated.rs')
-rw-r--r--crates/ra_syntax/src/ast/generated.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs
index d161470e7..bcf753f78 100644
--- a/crates/ra_syntax/src/ast/generated.rs
+++ b/crates/ra_syntax/src/ast/generated.rs
@@ -1004,7 +1004,7 @@ impl FnDef {
1004 pub fn param_list(&self) -> Option<ParamList> { 1004 pub fn param_list(&self) -> Option<ParamList> {
1005 AstChildren::new(&self.syntax).next() 1005 AstChildren::new(&self.syntax).next()
1006 } 1006 }
1007 pub fn body(&self) -> Option<Block> { 1007 pub fn body(&self) -> Option<BlockExpr> {
1008 AstChildren::new(&self.syntax).next() 1008 AstChildren::new(&self.syntax).next()
1009 } 1009 }
1010 pub fn ret_type(&self) -> Option<RetType> { 1010 pub fn ret_type(&self) -> Option<RetType> {
@@ -3135,8 +3135,11 @@ impl AstNode for TryBlockExpr {
3135 &self.syntax 3135 &self.syntax
3136 } 3136 }
3137} 3137}
3138impl ast::TryBlockBodyOwner for TryBlockExpr {} 3138impl TryBlockExpr {
3139impl TryBlockExpr {} 3139 pub fn body(&self) -> Option<BlockExpr> {
3140 AstChildren::new(&self.syntax).next()
3141 }
3142}
3140#[derive(Debug, Clone, PartialEq, Eq, Hash)] 3143#[derive(Debug, Clone, PartialEq, Eq, Hash)]
3141pub struct TryExpr { 3144pub struct TryExpr {
3142 pub(crate) syntax: SyntaxNode, 3145 pub(crate) syntax: SyntaxNode,