diff options
Diffstat (limited to 'crates/ra_syntax/src/ast/generated.rs')
-rw-r--r-- | crates/ra_syntax/src/ast/generated.rs | 36 |
1 files changed, 9 insertions, 27 deletions
diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs index 4e2705d09..7572225b8 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs | |||
@@ -628,11 +628,8 @@ impl ast::NameOwner for ConstDef {} | |||
628 | impl ast::TypeParamsOwner for ConstDef {} | 628 | 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 ConstDef { | 631 | impl ast::TypeAscriptionOwner for ConstDef {} |
632 | pub fn type_ref(&self) -> Option<&TypeRef> { | 632 | impl ConstDef {} |
633 | super::child_opt(self) | ||
634 | } | ||
635 | } | ||
636 | 633 | ||
637 | // ContinueExpr | 634 | // ContinueExpr |
638 | #[derive(Debug, PartialEq, Eq, Hash)] | 635 | #[derive(Debug, PartialEq, Eq, Hash)] |
@@ -1767,15 +1764,12 @@ impl ToOwned for LetStmt { | |||
1767 | } | 1764 | } |
1768 | 1765 | ||
1769 | 1766 | ||
1767 | impl ast::TypeAscriptionOwner for LetStmt {} | ||
1770 | impl LetStmt { | 1768 | impl LetStmt { |
1771 | pub fn pat(&self) -> Option<&Pat> { | 1769 | pub fn pat(&self) -> Option<&Pat> { |
1772 | super::child_opt(self) | 1770 | super::child_opt(self) |
1773 | } | 1771 | } |
1774 | 1772 | ||
1775 | pub fn type_ref(&self) -> Option<&TypeRef> { | ||
1776 | super::child_opt(self) | ||
1777 | } | ||
1778 | |||
1779 | pub fn initializer(&self) -> Option<&Expr> { | 1773 | pub fn initializer(&self) -> Option<&Expr> { |
1780 | super::child_opt(self) | 1774 | super::child_opt(self) |
1781 | } | 1775 | } |
@@ -2592,11 +2586,8 @@ impl ast::VisibilityOwner for NamedFieldDef {} | |||
2592 | impl ast::NameOwner for NamedFieldDef {} | 2586 | impl ast::NameOwner for NamedFieldDef {} |
2593 | impl ast::AttrsOwner for NamedFieldDef {} | 2587 | impl ast::AttrsOwner for NamedFieldDef {} |
2594 | impl ast::DocCommentsOwner for NamedFieldDef {} | 2588 | impl ast::DocCommentsOwner for NamedFieldDef {} |
2595 | impl NamedFieldDef { | 2589 | impl ast::TypeAscriptionOwner for NamedFieldDef {} |
2596 | pub fn type_ref(&self) -> Option<&TypeRef> { | 2590 | impl NamedFieldDef {} |
2597 | super::child_opt(self) | ||
2598 | } | ||
2599 | } | ||
2600 | 2591 | ||
2601 | // NamedFieldDefList | 2592 | // NamedFieldDefList |
2602 | #[derive(Debug, PartialEq, Eq, Hash)] | 2593 | #[derive(Debug, PartialEq, Eq, Hash)] |
@@ -2774,14 +2765,11 @@ impl ToOwned for Param { | |||
2774 | } | 2765 | } |
2775 | 2766 | ||
2776 | 2767 | ||
2768 | impl ast::TypeAscriptionOwner for Param {} | ||
2777 | impl Param { | 2769 | impl Param { |
2778 | pub fn pat(&self) -> Option<&Pat> { | 2770 | pub fn pat(&self) -> Option<&Pat> { |
2779 | super::child_opt(self) | 2771 | super::child_opt(self) |
2780 | } | 2772 | } |
2781 | |||
2782 | pub fn type_ref(&self) -> Option<&TypeRef> { | ||
2783 | super::child_opt(self) | ||
2784 | } | ||
2785 | } | 2773 | } |
2786 | 2774 | ||
2787 | // ParamList | 2775 | // ParamList |
@@ -3685,11 +3673,8 @@ impl ToOwned for SelfParam { | |||
3685 | } | 3673 | } |
3686 | 3674 | ||
3687 | 3675 | ||
3676 | impl ast::TypeAscriptionOwner for SelfParam {} | ||
3688 | impl SelfParam { | 3677 | impl SelfParam { |
3689 | pub fn type_ref(&self) -> Option<&TypeRef> { | ||
3690 | super::child_opt(self) | ||
3691 | } | ||
3692 | |||
3693 | pub fn self_kw(&self) -> Option<&SelfKw> { | 3678 | pub fn self_kw(&self) -> Option<&SelfKw> { |
3694 | super::child_opt(self) | 3679 | super::child_opt(self) |
3695 | } | 3680 | } |
@@ -3820,11 +3805,8 @@ impl ast::NameOwner for StaticDef {} | |||
3820 | impl ast::TypeParamsOwner for StaticDef {} | 3805 | impl ast::TypeParamsOwner for StaticDef {} |
3821 | impl ast::AttrsOwner for StaticDef {} | 3806 | impl ast::AttrsOwner for StaticDef {} |
3822 | impl ast::DocCommentsOwner for StaticDef {} | 3807 | impl ast::DocCommentsOwner for StaticDef {} |
3823 | impl StaticDef { | 3808 | impl ast::TypeAscriptionOwner for StaticDef {} |
3824 | pub fn type_ref(&self) -> Option<&TypeRef> { | 3809 | impl StaticDef {} |
3825 | super::child_opt(self) | ||
3826 | } | ||
3827 | } | ||
3828 | 3810 | ||
3829 | // Stmt | 3811 | // Stmt |
3830 | #[derive(Debug, PartialEq, Eq, Hash)] | 3812 | #[derive(Debug, PartialEq, Eq, Hash)] |