]> git.lizzy.rs Git - rust.git/commitdiff
Comments
authorAleksey Kladov <aleksey.kladov@gmail.com>
Sat, 4 Jul 2020 08:03:27 +0000 (10:03 +0200)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Sat, 4 Jul 2020 08:03:27 +0000 (10:03 +0200)
crates/ra_ide/src/completion/complete_dot.rs
crates/ra_ide/src/completion/presentation.rs

index ee4e24fcab50d7973564d39da93f7e1bc7ff5493..520652a37388bfb644c5f4715afe6d3b63dfce89 100644 (file)
@@ -1,6 +1,7 @@
-//! FIXME: write short doc here
+//! Completes references after dot (fields and method calls).
 
 use hir::{HasVisibility, Type};
+use rustc_hash::FxHashSet;
 
 use crate::{
     completion::{
@@ -9,7 +10,6 @@
     },
     CompletionItem,
 };
-use rustc_hash::FxHashSet;
 
 /// Complete dot accesses, i.e. fields or methods (and .await syntax).
 pub(super) fn complete_dot(acc: &mut Completions, ctx: &CompletionContext) {
index ee810b59f3b1abad2de0a7eb6dcced559fe8392a..bd48156b026119789a59c35b264fc78efdaf5d8c 100644 (file)
@@ -1,4 +1,5 @@
 //! 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 ra_syntax::ast::NameOwner;