diff options
Diffstat (limited to 'crates/ra_syntax/src/ast')
-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 bb223e0dc..7da19d782 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs | |||
@@ -598,7 +598,11 @@ impl ast::NameOwner for ConstDef {} | |||
598 | impl ast::TypeParamsOwner for ConstDef {} | 598 | impl ast::TypeParamsOwner for ConstDef {} |
599 | impl ast::AttrsOwner for ConstDef {} | 599 | impl ast::AttrsOwner for ConstDef {} |
600 | impl ast::DocCommentsOwner for ConstDef {} | 600 | impl ast::DocCommentsOwner for ConstDef {} |
601 | impl ConstDef {} | 601 | impl ConstDef { |
602 | pub fn type_ref(&self) -> Option<&TypeRef> { | ||
603 | super::child_opt(self) | ||
604 | } | ||
605 | } | ||
602 | 606 | ||
603 | // ContinueExpr | 607 | // ContinueExpr |
604 | #[derive(Debug, PartialEq, Eq, Hash)] | 608 | #[derive(Debug, PartialEq, Eq, Hash)] |
@@ -3407,7 +3411,11 @@ impl ast::NameOwner for StaticDef {} | |||
3407 | impl ast::TypeParamsOwner for StaticDef {} | 3411 | impl ast::TypeParamsOwner for StaticDef {} |
3408 | impl ast::AttrsOwner for StaticDef {} | 3412 | impl ast::AttrsOwner for StaticDef {} |
3409 | impl ast::DocCommentsOwner for StaticDef {} | 3413 | impl ast::DocCommentsOwner for StaticDef {} |
3410 | impl StaticDef {} | 3414 | impl StaticDef { |
3415 | pub fn type_ref(&self) -> Option<&TypeRef> { | ||
3416 | super::child_opt(self) | ||
3417 | } | ||
3418 | } | ||
3411 | 3419 | ||
3412 | // Stmt | 3420 | // Stmt |
3413 | #[derive(Debug, PartialEq, Eq, Hash)] | 3421 | #[derive(Debug, PartialEq, Eq, Hash)] |
@@ -3948,7 +3956,11 @@ impl ast::NameOwner for TypeDef {} | |||
3948 | impl ast::TypeParamsOwner for TypeDef {} | 3956 | impl ast::TypeParamsOwner for TypeDef {} |
3949 | impl ast::AttrsOwner for TypeDef {} | 3957 | impl ast::AttrsOwner for TypeDef {} |
3950 | impl ast::DocCommentsOwner for TypeDef {} | 3958 | impl ast::DocCommentsOwner for TypeDef {} |
3951 | impl TypeDef {} | 3959 | impl TypeDef { |
3960 | pub fn type_ref(&self) -> Option<&TypeRef> { | ||
3961 | super::child_opt(self) | ||
3962 | } | ||
3963 | } | ||
3952 | 3964 | ||
3953 | // TypeParam | 3965 | // TypeParam |
3954 | #[derive(Debug, PartialEq, Eq, Hash)] | 3966 | #[derive(Debug, PartialEq, Eq, Hash)] |