aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast
diff options
context:
space:
mode:
authorHrvoje Ban <[email protected]>2019-01-24 17:21:17 +0000
committerHrvoje Ban <[email protected]>2019-01-24 18:05:26 +0000
commit4eff8ddb8b8352d432d87198d43c674696ca9344 (patch)
tree3181a8947d462331ae9bcd4ac2f11266f91e2c37 /crates/ra_syntax/src/ast
parentabb9bfe44dfe1fb0685ead5e000ed281c55c8968 (diff)
Fill in DocumentSymbol::detail
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r--crates/ra_syntax/src/ast/generated.rs18
1 files changed, 15 insertions, 3 deletions
diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs
index ac6c8a835..be16511df 100644
--- a/crates/ra_syntax/src/ast/generated.rs
+++ b/crates/ra_syntax/src/ast/generated.rs
@@ -526,7 +526,11 @@ impl ast::NameOwner for ConstDef {}
526impl ast::TypeParamsOwner for ConstDef {} 526impl ast::TypeParamsOwner for ConstDef {}
527impl ast::AttrsOwner for ConstDef {} 527impl ast::AttrsOwner for ConstDef {}
528impl ast::DocCommentsOwner for ConstDef {} 528impl ast::DocCommentsOwner for ConstDef {}
529impl ConstDef {} 529impl ConstDef {
530 pub fn type_ref(&self) -> Option<&TypeRef> {
531 super::child_opt(self)
532 }
533}
530 534
531// ContinueExpr 535// ContinueExpr
532#[derive(Debug, PartialEq, Eq, Hash)] 536#[derive(Debug, PartialEq, Eq, Hash)]
@@ -3015,7 +3019,11 @@ impl ast::NameOwner for StaticDef {}
3015impl ast::TypeParamsOwner for StaticDef {} 3019impl ast::TypeParamsOwner for StaticDef {}
3016impl ast::AttrsOwner for StaticDef {} 3020impl ast::AttrsOwner for StaticDef {}
3017impl ast::DocCommentsOwner for StaticDef {} 3021impl ast::DocCommentsOwner for StaticDef {}
3018impl StaticDef {} 3022impl StaticDef {
3023 pub fn type_ref(&self) -> Option<&TypeRef> {
3024 super::child_opt(self)
3025 }
3026}
3019 3027
3020// Stmt 3028// Stmt
3021#[derive(Debug, PartialEq, Eq, Hash)] 3029#[derive(Debug, PartialEq, Eq, Hash)]
@@ -3491,7 +3499,11 @@ impl ast::NameOwner for TypeDef {}
3491impl ast::TypeParamsOwner for TypeDef {} 3499impl ast::TypeParamsOwner for TypeDef {}
3492impl ast::AttrsOwner for TypeDef {} 3500impl ast::AttrsOwner for TypeDef {}
3493impl ast::DocCommentsOwner for TypeDef {} 3501impl ast::DocCommentsOwner for TypeDef {}
3494impl TypeDef {} 3502impl TypeDef {
3503 pub fn type_ref(&self) -> Option<&TypeRef> {
3504 super::child_opt(self)
3505 }
3506}
3495 3507
3496// TypeParam 3508// TypeParam
3497#[derive(Debug, PartialEq, Eq, Hash)] 3509#[derive(Debug, PartialEq, Eq, Hash)]