From d3ce69aee3297e683691ec0123f5a2584a8075a0 Mon Sep 17 00:00:00 2001 From: Ville Penttinen Date: Wed, 27 Feb 2019 14:00:08 +0200 Subject: Remove `TypeRef` from item opts which implement TypeAscriptionOwner --- crates/ra_syntax/src/ast/generated.rs | 30 +++--------------------------- 1 file changed, 3 insertions(+), 27 deletions(-) (limited to 'crates/ra_syntax/src/ast/generated.rs') 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 {} impl ast::AttrsOwner for ConstDef {} impl ast::DocCommentsOwner for ConstDef {} impl ast::TypeAscriptionOwner for ConstDef {} -impl ConstDef { - pub fn type_ref(&self) -> Option<&TypeRef> { - super::child_opt(self) - } -} +impl ConstDef {} // ContinueExpr #[derive(Debug, PartialEq, Eq, Hash)] @@ -1774,10 +1770,6 @@ impl LetStmt { super::child_opt(self) } - pub fn type_ref(&self) -> Option<&TypeRef> { - super::child_opt(self) - } - pub fn initializer(&self) -> Option<&Expr> { super::child_opt(self) } @@ -2595,11 +2587,7 @@ impl ast::NameOwner for NamedFieldDef {} impl ast::AttrsOwner for NamedFieldDef {} impl ast::DocCommentsOwner for NamedFieldDef {} impl ast::TypeAscriptionOwner for NamedFieldDef {} -impl NamedFieldDef { - pub fn type_ref(&self) -> Option<&TypeRef> { - super::child_opt(self) - } -} +impl NamedFieldDef {} // NamedFieldDefList #[derive(Debug, PartialEq, Eq, Hash)] @@ -2782,10 +2770,6 @@ impl Param { pub fn pat(&self) -> Option<&Pat> { super::child_opt(self) } - - pub fn type_ref(&self) -> Option<&TypeRef> { - super::child_opt(self) - } } // ParamList @@ -3691,10 +3675,6 @@ impl ToOwned for SelfParam { impl ast::TypeAscriptionOwner for SelfParam {} impl SelfParam { - pub fn type_ref(&self) -> Option<&TypeRef> { - super::child_opt(self) - } - pub fn self_kw(&self) -> Option<&SelfKw> { super::child_opt(self) } @@ -3826,11 +3806,7 @@ impl ast::TypeParamsOwner for StaticDef {} impl ast::AttrsOwner for StaticDef {} impl ast::DocCommentsOwner for StaticDef {} impl ast::TypeAscriptionOwner for StaticDef {} -impl StaticDef { - pub fn type_ref(&self) -> Option<&TypeRef> { - super::child_opt(self) - } -} +impl StaticDef {} // Stmt #[derive(Debug, PartialEq, Eq, Hash)] -- cgit v1.2.3