mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Comments
This commit is contained in:
parent
5c68dd6b59
commit
caeddff543
@ -1,6 +1,7 @@
|
|||||||
//! FIXME: write short doc here
|
//! Completes references after dot (fields and method calls).
|
||||||
|
|
||||||
use hir::{HasVisibility, Type};
|
use hir::{HasVisibility, Type};
|
||||||
|
use rustc_hash::FxHashSet;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
completion::{
|
completion::{
|
||||||
@ -9,7 +10,6 @@ use crate::{
|
|||||||
},
|
},
|
||||||
CompletionItem,
|
CompletionItem,
|
||||||
};
|
};
|
||||||
use rustc_hash::FxHashSet;
|
|
||||||
|
|
||||||
/// Complete dot accesses, i.e. fields or methods (and .await syntax).
|
/// Complete dot accesses, i.e. fields or methods (and .await syntax).
|
||||||
pub(super) fn complete_dot(acc: &mut Completions, ctx: &CompletionContext) {
|
pub(super) fn complete_dot(acc: &mut Completions, ctx: &CompletionContext) {
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
//! This modules takes care of rendering various definitions as completion items.
|
//! This modules takes care of rendering various definitions as completion items.
|
||||||
|
//! It also handles scoring (sorting) completions.
|
||||||
|
|
||||||
use hir::{Docs, HasAttrs, HasSource, HirDisplay, ModPath, ScopeDef, StructKind, Type};
|
use hir::{Docs, HasAttrs, HasSource, HirDisplay, ModPath, ScopeDef, StructKind, Type};
|
||||||
use ra_syntax::ast::NameOwner;
|
use ra_syntax::ast::NameOwner;
|
||||||
|
Loading…
Reference in New Issue
Block a user