diff options
Diffstat (limited to 'crates/ra_syntax/src/ast/generated.rs')
-rw-r--r-- | crates/ra_syntax/src/ast/generated.rs | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs index 6db2f74ef..7572225b8 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs | |||
@@ -629,11 +629,7 @@ impl ast::TypeParamsOwner for ConstDef {} | |||
629 | impl ast::AttrsOwner for ConstDef {} | 629 | impl ast::AttrsOwner for ConstDef {} |
630 | impl ast::DocCommentsOwner for ConstDef {} | 630 | impl ast::DocCommentsOwner for ConstDef {} |
631 | impl ast::TypeAscriptionOwner for ConstDef {} | 631 | impl ast::TypeAscriptionOwner for ConstDef {} |
632 | impl ConstDef { | 632 | impl ConstDef {} |
633 | pub fn type_ref(&self) -> Option<&TypeRef> { | ||
634 | super::child_opt(self) | ||
635 | } | ||
636 | } | ||
637 | 633 | ||
638 | // ContinueExpr | 634 | // ContinueExpr |
639 | #[derive(Debug, PartialEq, Eq, Hash)] | 635 | #[derive(Debug, PartialEq, Eq, Hash)] |
@@ -1774,10 +1770,6 @@ impl LetStmt { | |||
1774 | super::child_opt(self) | 1770 | super::child_opt(self) |
1775 | } | 1771 | } |
1776 | 1772 | ||
1777 | pub fn type_ref(&self) -> Option<&TypeRef> { | ||
1778 | super::child_opt(self) | ||
1779 | } | ||
1780 | |||
1781 | pub fn initializer(&self) -> Option<&Expr> { | 1773 | pub fn initializer(&self) -> Option<&Expr> { |
1782 | super::child_opt(self) | 1774 | super::child_opt(self) |
1783 | } | 1775 | } |
@@ -2595,11 +2587,7 @@ impl ast::NameOwner for NamedFieldDef {} | |||
2595 | impl ast::AttrsOwner for NamedFieldDef {} | 2587 | impl ast::AttrsOwner for NamedFieldDef {} |
2596 | impl ast::DocCommentsOwner for NamedFieldDef {} | 2588 | impl ast::DocCommentsOwner for NamedFieldDef {} |
2597 | impl ast::TypeAscriptionOwner for NamedFieldDef {} | 2589 | impl ast::TypeAscriptionOwner for NamedFieldDef {} |
2598 | impl NamedFieldDef { | 2590 | impl NamedFieldDef {} |
2599 | pub fn type_ref(&self) -> Option<&TypeRef> { | ||
2600 | super::child_opt(self) | ||
2601 | } | ||
2602 | } | ||
2603 | 2591 | ||
2604 | // NamedFieldDefList | 2592 | // NamedFieldDefList |
2605 | #[derive(Debug, PartialEq, Eq, Hash)] | 2593 | #[derive(Debug, PartialEq, Eq, Hash)] |
@@ -2782,10 +2770,6 @@ impl Param { | |||
2782 | pub fn pat(&self) -> Option<&Pat> { | 2770 | pub fn pat(&self) -> Option<&Pat> { |
2783 | super::child_opt(self) | 2771 | super::child_opt(self) |
2784 | } | 2772 | } |
2785 | |||
2786 | pub fn type_ref(&self) -> Option<&TypeRef> { | ||
2787 | super::child_opt(self) | ||
2788 | } | ||
2789 | } | 2773 | } |
2790 | 2774 | ||
2791 | // ParamList | 2775 | // ParamList |
@@ -3691,10 +3675,6 @@ impl ToOwned for SelfParam { | |||
3691 | 3675 | ||
3692 | impl ast::TypeAscriptionOwner for SelfParam {} | 3676 | impl ast::TypeAscriptionOwner for SelfParam {} |
3693 | impl SelfParam { | 3677 | impl SelfParam { |
3694 | pub fn type_ref(&self) -> Option<&TypeRef> { | ||
3695 | super::child_opt(self) | ||
3696 | } | ||
3697 | |||
3698 | pub fn self_kw(&self) -> Option<&SelfKw> { | 3678 | pub fn self_kw(&self) -> Option<&SelfKw> { |
3699 | super::child_opt(self) | 3679 | super::child_opt(self) |
3700 | } | 3680 | } |
@@ -3826,11 +3806,7 @@ impl ast::TypeParamsOwner for StaticDef {} | |||
3826 | impl ast::AttrsOwner for StaticDef {} | 3806 | impl ast::AttrsOwner for StaticDef {} |
3827 | impl ast::DocCommentsOwner for StaticDef {} | 3807 | impl ast::DocCommentsOwner for StaticDef {} |
3828 | impl ast::TypeAscriptionOwner for StaticDef {} | 3808 | impl ast::TypeAscriptionOwner for StaticDef {} |
3829 | impl StaticDef { | 3809 | impl StaticDef {} |
3830 | pub fn type_ref(&self) -> Option<&TypeRef> { | ||
3831 | super::child_opt(self) | ||
3832 | } | ||
3833 | } | ||
3834 | 3810 | ||
3835 | // Stmt | 3811 | // Stmt |
3836 | #[derive(Debug, PartialEq, Eq, Hash)] | 3812 | #[derive(Debug, PartialEq, Eq, Hash)] |