aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-04 09:03:27 +0100
committerAleksey Kladov <[email protected]>2020-07-04 09:03:27 +0100
commitcaeddff5435d9cf604aac7af7b53cc4ac8bb4a13 (patch)
treee6d79d3fd1dea37c22f04c0e8315f34bef09fdcf /crates
parent5c68dd6b59cd5006a96280217bc88a6e26f90f1f (diff)
Comments
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_ide/src/completion/complete_dot.rs4
-rw-r--r--crates/ra_ide/src/completion/presentation.rs1
2 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_ide/src/completion/complete_dot.rs b/crates/ra_ide/src/completion/complete_dot.rs
index ee4e24fca..520652a37 100644
--- a/crates/ra_ide/src/completion/complete_dot.rs
+++ b/crates/ra_ide/src/completion/complete_dot.rs
@@ -1,6 +1,7 @@
1//! FIXME: write short doc here 1//! Completes references after dot (fields and method calls).
2 2
3use hir::{HasVisibility, Type}; 3use hir::{HasVisibility, Type};
4use rustc_hash::FxHashSet;
4 5
5use crate::{ 6use crate::{
6 completion::{ 7 completion::{
@@ -9,7 +10,6 @@ use crate::{
9 }, 10 },
10 CompletionItem, 11 CompletionItem,
11}; 12};
12use rustc_hash::FxHashSet;
13 13
14/// Complete dot accesses, i.e. fields or methods (and .await syntax). 14/// Complete dot accesses, i.e. fields or methods (and .await syntax).
15pub(super) fn complete_dot(acc: &mut Completions, ctx: &CompletionContext) { 15pub(super) fn complete_dot(acc: &mut Completions, ctx: &CompletionContext) {
diff --git a/crates/ra_ide/src/completion/presentation.rs b/crates/ra_ide/src/completion/presentation.rs
index ee810b59f..bd48156b0 100644
--- a/crates/ra_ide/src/completion/presentation.rs
+++ b/crates/ra_ide/src/completion/presentation.rs
@@ -1,4 +1,5 @@
1//! This modules takes care of rendering various definitions as completion items. 1//! This modules takes care of rendering various definitions as completion items.
2//! It also handles scoring (sorting) completions.
2 3
3use hir::{Docs, HasAttrs, HasSource, HirDisplay, ModPath, ScopeDef, StructKind, Type}; 4use hir::{Docs, HasAttrs, HasSource, HirDisplay, ModPath, ScopeDef, StructKind, Type};
4use ra_syntax::ast::NameOwner; 5use ra_syntax::ast::NameOwner;