aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_editor/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-10-30 23:08:54 +0000
committerAleksey Kladov <[email protected]>2018-10-30 23:08:54 +0000
commitfbbee537228538f448a335bb0b2dabec2b3d443e (patch)
treedb676e2c84585c13179e0116b018a3e67b550190 /crates/ra_editor/src
parentd10214581e18a3c98760ecf8ebbd27aaf48ec9ae (diff)
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.
Diffstat (limited to 'crates/ra_editor/src')
-rw-r--r--crates/ra_editor/src/completion.rs2
-rw-r--r--crates/ra_editor/src/scope/mod_scope.rs6
2 files changed, 8 insertions, 0 deletions
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 @@
1/// FIXME: move completion from ra_editor to ra_analysis
2
1use rustc_hash::{FxHashMap, FxHashSet}; 3use rustc_hash::{FxHashMap, FxHashSet};
2 4
3use ra_syntax::{ 5use 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 @@
1/// FIXME: this is now moved to ra_analysis::descriptors::module::scope.
2///
3/// Current copy will be deleted as soon as we move the rest of the completion
4/// to the analyezer.
5
6
1use ra_syntax::{ 7use ra_syntax::{
2 ast::{self, AstChildren}, 8 ast::{self, AstChildren},
3 AstNode, SmolStr, SyntaxNode, SyntaxNodeRef, 9 AstNode, SmolStr, SyntaxNode, SyntaxNodeRef,