diff options
author | Hrvoje Ban <[email protected]> | 2019-01-24 17:21:17 +0000 |
---|---|---|
committer | Hrvoje Ban <[email protected]> | 2019-01-24 18:05:26 +0000 |
commit | 4eff8ddb8b8352d432d87198d43c674696ca9344 (patch) | |
tree | 3181a8947d462331ae9bcd4ac2f11266f91e2c37 /crates/ra_syntax/src/ast/generated.rs | |
parent | abb9bfe44dfe1fb0685ead5e000ed281c55c8968 (diff) |
Fill in DocumentSymbol::detail
Diffstat (limited to 'crates/ra_syntax/src/ast/generated.rs')
-rw-r--r-- | crates/ra_syntax/src/ast/generated.rs | 18 |
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 {} | |||
526 | impl ast::TypeParamsOwner for ConstDef {} | 526 | impl ast::TypeParamsOwner for ConstDef {} |
527 | impl ast::AttrsOwner for ConstDef {} | 527 | impl ast::AttrsOwner for ConstDef {} |
528 | impl ast::DocCommentsOwner for ConstDef {} | 528 | impl ast::DocCommentsOwner for ConstDef {} |
529 | impl ConstDef {} | 529 | impl 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 {} | |||
3015 | impl ast::TypeParamsOwner for StaticDef {} | 3019 | impl ast::TypeParamsOwner for StaticDef {} |
3016 | impl ast::AttrsOwner for StaticDef {} | 3020 | impl ast::AttrsOwner for StaticDef {} |
3017 | impl ast::DocCommentsOwner for StaticDef {} | 3021 | impl ast::DocCommentsOwner for StaticDef {} |
3018 | impl StaticDef {} | 3022 | impl 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 {} | |||
3491 | impl ast::TypeParamsOwner for TypeDef {} | 3499 | impl ast::TypeParamsOwner for TypeDef {} |
3492 | impl ast::AttrsOwner for TypeDef {} | 3500 | impl ast::AttrsOwner for TypeDef {} |
3493 | impl ast::DocCommentsOwner for TypeDef {} | 3501 | impl ast::DocCommentsOwner for TypeDef {} |
3494 | impl TypeDef {} | 3502 | impl 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)] |