ast::DocCommentsOwner which represents a documentation comment owner

This commit is contained in:
Jeremy A. Kolb 2018-10-30 16:57:33 -04:00
parent 64ce895ef0
commit d2bcd1a386
3 changed files with 20 additions and 0 deletions

View file

@ -864,6 +864,7 @@ impl<'a> AstNode<'a> for FnDef<'a> {
impl<'a> ast::NameOwner<'a> for FnDef<'a> {}
impl<'a> ast::TypeParamsOwner<'a> for FnDef<'a> {}
impl<'a> ast::AttrsOwner<'a> for FnDef<'a> {}
impl<'a> ast::DocCommentsOwner<'a> for FnDef<'a> {}
impl<'a> FnDef<'a> {
pub fn param_list(self) -> Option<ParamList<'a>> {
super::child_opt(self)