diff options
author | uHOOCCOOHu <[email protected]> | 2019-09-11 19:01:07 +0100 |
---|---|---|
committer | uHOOCCOOHu <[email protected]> | 2019-09-15 12:40:32 +0100 |
commit | 4926bed42680d329f906be93450bec6b2ba0e99b (patch) | |
tree | 455c0bc9d839a18fffda6d018bf41d1c58ebfa52 /crates/ra_syntax/src/ast | |
parent | 2d79a1ad83cc39075c7c9e3230973013c8c58b17 (diff) |
Support path starting with a type
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r-- | crates/ra_syntax/src/ast/generated.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs index 591ac8ca3..dc1f8c82c 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs | |||
@@ -2385,6 +2385,9 @@ impl PathSegment { | |||
2385 | pub fn ret_type(&self) -> Option<RetType> { | 2385 | pub fn ret_type(&self) -> Option<RetType> { |
2386 | AstChildren::new(&self.syntax).next() | 2386 | AstChildren::new(&self.syntax).next() |
2387 | } | 2387 | } |
2388 | pub fn path_type(&self) -> Option<PathType> { | ||
2389 | AstChildren::new(&self.syntax).next() | ||
2390 | } | ||
2388 | } | 2391 | } |
2389 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2392 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2390 | pub struct PathType { | 2393 | pub struct PathType { |