mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Cleanup Completions
api a bit
This commit is contained in:
parent
70650897d8
commit
7267749f6b
9 changed files with 70 additions and 77 deletions
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue