From fbbee537228538f448a335bb0b2dabec2b3d443e Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 31 Oct 2018 02:08:54 +0300 Subject: Add ModuleScope as a query This is a first step towards queryifing completion and resolve. Some code currently duplicates ra_editor: the plan is to move all completion from ra_editor, but it'll take more than one commit. --- crates/ra_editor/src/completion.rs | 2 ++ crates/ra_editor/src/scope/mod_scope.rs | 6 ++++++ 2 files changed, 8 insertions(+) (limited to 'crates/ra_editor/src') diff --git a/crates/ra_editor/src/completion.rs b/crates/ra_editor/src/completion.rs index a0b168bc6..20c8546a4 100644 --- a/crates/ra_editor/src/completion.rs +++ b/crates/ra_editor/src/completion.rs @@ -1,3 +1,5 @@ +/// FIXME: move completion from ra_editor to ra_analysis + use rustc_hash::{FxHashMap, FxHashSet}; use ra_syntax::{ diff --git a/crates/ra_editor/src/scope/mod_scope.rs b/crates/ra_editor/src/scope/mod_scope.rs index 956ee0e2f..818749a12 100644 --- a/crates/ra_editor/src/scope/mod_scope.rs +++ b/crates/ra_editor/src/scope/mod_scope.rs @@ -1,3 +1,9 @@ +/// FIXME: this is now moved to ra_analysis::descriptors::module::scope. +/// +/// Current copy will be deleted as soon as we move the rest of the completion +/// to the analyezer. + + use ra_syntax::{ ast::{self, AstChildren}, AstNode, SmolStr, SyntaxNode, SyntaxNodeRef, -- cgit v1.2.3