[#1083] Try block syntax
This commit is contained in:
@@ -33,6 +33,12 @@ pub trait LoopBodyOwner: AstNode {
|
||||
}
|
||||
}
|
||||
|
||||
pub trait TryBlockBodyOwner: AstNode {
|
||||
fn try_body(&self) -> Option<&ast::Block> {
|
||||
child_opt(self)
|
||||
}
|
||||
}
|
||||
|
||||
pub trait ArgListOwner: AstNode {
|
||||
fn arg_list(&self) -> Option<&ast::ArgList> {
|
||||
child_opt(self)
|
||||
|
||||
Reference in New Issue
Block a user