Cleanup Completions api a bit

This commit is contained in:
Lukas Wirth 2022-02-02 12:05:21 +01:00
parent 70650897d8
commit 7267749f6b
9 changed files with 70 additions and 77 deletions

View file

@ -34,7 +34,7 @@ pub(crate) enum PatternRefutability {
Refutable,
Irrefutable,
}
pub enum Visible {
pub(crate) enum Visible {
Yes,
Editable,
No,
@ -108,7 +108,7 @@ pub(crate) struct CompletionContext<'a> {
pub(super) token: SyntaxToken,
/// The crate of the current file.
pub(super) krate: Option<hir::Crate>,
/// The crate of the `scope`.
/// The module of the `scope`.
pub(super) module: Option<hir::Module>,
pub(super) expected_name: Option<NameOrNameRef>,
pub(super) expected_type: Option<Type>,