diff options
Diffstat (limited to 'crates/ra_syntax/src/ast/node_ext.rs')
-rw-r--r-- | crates/ra_syntax/src/ast/node_ext.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/ast/node_ext.rs b/crates/ra_syntax/src/ast/node_ext.rs index 662c6f73e..242900643 100644 --- a/crates/ra_syntax/src/ast/node_ext.rs +++ b/crates/ra_syntax/src/ast/node_ext.rs | |||
@@ -472,3 +472,19 @@ impl ast::TokenTree { | |||
472 | .filter(|it| matches!(it.kind(), T!['}'] | T![')'] | T![']'])) | 472 | .filter(|it| matches!(it.kind(), T!['}'] | T![')'] | T![']'])) |
473 | } | 473 | } |
474 | } | 474 | } |
475 | |||
476 | impl ast::DocCommentsOwner for ast::SourceFile {} | ||
477 | impl ast::DocCommentsOwner for ast::FnDef {} | ||
478 | impl ast::DocCommentsOwner for ast::StructDef {} | ||
479 | impl ast::DocCommentsOwner for ast::UnionDef {} | ||
480 | impl ast::DocCommentsOwner for ast::RecordFieldDef {} | ||
481 | impl ast::DocCommentsOwner for ast::TupleFieldDef {} | ||
482 | impl ast::DocCommentsOwner for ast::EnumDef {} | ||
483 | impl ast::DocCommentsOwner for ast::EnumVariant {} | ||
484 | impl ast::DocCommentsOwner for ast::TraitDef {} | ||
485 | impl ast::DocCommentsOwner for ast::Module {} | ||
486 | impl ast::DocCommentsOwner for ast::StaticDef {} | ||
487 | impl ast::DocCommentsOwner for ast::ConstDef {} | ||
488 | impl ast::DocCommentsOwner for ast::TypeAliasDef {} | ||
489 | impl ast::DocCommentsOwner for ast::ImplDef {} | ||
490 | impl ast::DocCommentsOwner for ast::MacroCall {} | ||