Make EnumVariant a DocCommentsOwner

This commit is contained in:
Jeremy A. Kolb 2019-01-23 15:59:19 -05:00
parent bf9cd6ee30
commit 6a6ce2bc95
3 changed files with 4 additions and 2 deletions

View file

@ -632,6 +632,7 @@ impl AstNode for EnumVariant {
impl ast::NameOwner for EnumVariant {}
impl ast::DocCommentsOwner for EnumVariant {}
impl EnumVariant {
pub fn expr(&self) -> Option<&Expr> {
super::child_opt(self)