mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Make EnumVariant a DocCommentsOwner
This commit is contained in:
parent
bf9cd6ee30
commit
6a6ce2bc95
3 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue