diff options
author | Lukas Wirth <[email protected]> | 2021-06-17 14:43:21 +0100 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-06-17 14:43:21 +0100 |
commit | 2a48b532208de413e4e5d39e81c33a4644ecaa22 (patch) | |
tree | 8c8fb1436a64a6bfd56558f41b734a966aa5725e /crates/ide_completion/src/context.rs | |
parent | a9a77671f2405e0cb65160c17268beec5114e259 (diff) |
Correct completions in items tests
Diffstat (limited to 'crates/ide_completion/src/context.rs')
-rw-r--r-- | crates/ide_completion/src/context.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ide_completion/src/context.rs b/crates/ide_completion/src/context.rs index 240cac1de..d7a7e9cca 100644 --- a/crates/ide_completion/src/context.rs +++ b/crates/ide_completion/src/context.rs | |||
@@ -305,6 +305,10 @@ impl<'a> CompletionContext<'a> { | |||
305 | ) | 305 | ) |
306 | } | 306 | } |
307 | 307 | ||
308 | pub(crate) fn has_impl_prev_sibling(&self) -> bool { | ||
309 | matches!(self.prev_sibling, Some(ImmediatePrevSibling::ImplDefType)) | ||
310 | } | ||
311 | |||
308 | pub(crate) fn has_visibility_prev_sibling(&self) -> bool { | 312 | pub(crate) fn has_visibility_prev_sibling(&self) -> bool { |
309 | matches!(self.prev_sibling, Some(ImmediatePrevSibling::Visibility)) | 313 | matches!(self.prev_sibling, Some(ImmediatePrevSibling::Visibility)) |
310 | } | 314 | } |