mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-18 00:00:03 +00:00
fix completion bugs
This commit is contained in:
parent
488326ffa7
commit
13d2fd32ab
30 changed files with 179 additions and 135 deletions
|
@ -334,6 +334,13 @@ impl PathSegment {
|
|||
};
|
||||
Some(res)
|
||||
}
|
||||
|
||||
pub fn has_colon_colon(&self) -> bool {
|
||||
match self.syntax.first_child().map(|s| s.kind()) {
|
||||
Some(COLONCOLON) => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Path {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue