mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
rename ModuleDescriptor -> Module
This commit is contained in:
parent
16f67ee384
commit
36b1d20c16
5 changed files with 34 additions and 35 deletions
|
@ -11,7 +11,7 @@ use crate::{
|
|||
db::RootDatabase,
|
||||
completion::CompletionItem,
|
||||
hir::{
|
||||
ModuleDescriptor,
|
||||
self,
|
||||
FnScopes,
|
||||
Def,
|
||||
Path,
|
||||
|
@ -22,7 +22,7 @@ use crate::{
|
|||
pub(super) fn completions(
|
||||
acc: &mut Vec<CompletionItem>,
|
||||
db: &RootDatabase,
|
||||
module: &ModuleDescriptor,
|
||||
module: &hir::Module,
|
||||
file: &SourceFileNode,
|
||||
name_ref: ast::NameRef,
|
||||
) -> Cancelable<()> {
|
||||
|
@ -150,7 +150,7 @@ fn complete_fn(name_ref: ast::NameRef, scopes: &FnScopes, acc: &mut Vec<Completi
|
|||
fn complete_path(
|
||||
acc: &mut Vec<CompletionItem>,
|
||||
db: &RootDatabase,
|
||||
module: &ModuleDescriptor,
|
||||
module: &hir::Module,
|
||||
mut path: Path,
|
||||
) -> Cancelable<()> {
|
||||
if path.segments.is_empty() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue