mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Support path starting with a type
This commit is contained in:
parent
2d79a1ad83
commit
4926bed426
10 changed files with 210 additions and 127 deletions
|
@ -2385,6 +2385,9 @@ impl PathSegment {
|
|||
pub fn ret_type(&self) -> Option<RetType> {
|
||||
AstChildren::new(&self.syntax).next()
|
||||
}
|
||||
pub fn path_type(&self) -> Option<PathType> {
|
||||
AstChildren::new(&self.syntax).next()
|
||||
}
|
||||
}
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
pub struct PathType {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue