method call scope

This commit is contained in:
Aleksey Kladov 2018-09-03 02:01:43 +03:00
parent fdd282ee0c
commit 58480b9190
4 changed files with 44 additions and 11 deletions

View file

@ -26,6 +26,12 @@ pub trait LoopBodyOwner<'a>: AstNode<'a> {
}
}
pub trait ArgListOwner<'a>: AstNode<'a> {
fn arg_list(self) -> Option<ArgList<'a>> {
child_opt(self)
}
}
pub trait TypeParamsOwner<'a>: AstNode<'a> {
fn type_param_list(self) -> Option<TypeParamList<'a>> {
child_opt(self)