diff options
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 6b2800a0e..535dcc975 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs | |||
@@ -2607,7 +2607,11 @@ impl<R: TreeRoot<RaTypes>> ParenTypeNode<R> { | |||
2607 | } | 2607 | } |
2608 | 2608 | ||
2609 | 2609 | ||
2610 | impl<'a> ParenType<'a> {} | 2610 | impl<'a> ParenType<'a> { |
2611 | pub fn type_ref(self) -> Option<TypeRef<'a>> { | ||
2612 | super::child_opt(self) | ||
2613 | } | ||
2614 | } | ||
2611 | 2615 | ||
2612 | // Pat | 2616 | // Pat |
2613 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] | 2617 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] |
@@ -2972,7 +2976,11 @@ impl<R: TreeRoot<RaTypes>> PointerTypeNode<R> { | |||
2972 | } | 2976 | } |
2973 | 2977 | ||
2974 | 2978 | ||
2975 | impl<'a> PointerType<'a> {} | 2979 | impl<'a> PointerType<'a> { |
2980 | pub fn type_ref(self) -> Option<TypeRef<'a>> { | ||
2981 | super::child_opt(self) | ||
2982 | } | ||
2983 | } | ||
2976 | 2984 | ||
2977 | // PosField | 2985 | // PosField |
2978 | #[derive(Debug, Clone, Copy,)] | 2986 | #[derive(Debug, Clone, Copy,)] |
@@ -3285,7 +3293,11 @@ impl<R: TreeRoot<RaTypes>> ReferenceTypeNode<R> { | |||
3285 | } | 3293 | } |
3286 | 3294 | ||
3287 | 3295 | ||
3288 | impl<'a> ReferenceType<'a> {} | 3296 | impl<'a> ReferenceType<'a> { |
3297 | pub fn type_ref(self) -> Option<TypeRef<'a>> { | ||
3298 | super::child_opt(self) | ||
3299 | } | ||
3300 | } | ||
3289 | 3301 | ||
3290 | // RetType | 3302 | // RetType |
3291 | #[derive(Debug, Clone, Copy,)] | 3303 | #[derive(Debug, Clone, Copy,)] |