aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/src/completion
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-11-27 23:25:03 +0000
committerAleksey Kladov <[email protected]>2018-11-27 23:25:03 +0000
commitec45dfea1e37ba40ea3e2c8c6df0991a3d49213f (patch)
treed3538aa9f79e8145a246656a48c96ed63777171a /crates/ra_analysis/src/completion
parent65c064b2a99fb9c0589672ae6c9848aaa9e0efcf (diff)
rename file_syntax -> source_file
Diffstat (limited to 'crates/ra_analysis/src/completion')
-rw-r--r--crates/ra_analysis/src/completion/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_analysis/src/completion/mod.rs b/crates/ra_analysis/src/completion/mod.rs
index 67ec9a735..844dabb19 100644
--- a/crates/ra_analysis/src/completion/mod.rs
+++ b/crates/ra_analysis/src/completion/mod.rs
@@ -29,7 +29,7 @@ pub(crate) fn completions(
29 db: &db::RootDatabase, 29 db: &db::RootDatabase,
30 position: FilePosition, 30 position: FilePosition,
31) -> Cancelable<Option<Vec<CompletionItem>>> { 31) -> Cancelable<Option<Vec<CompletionItem>>> {
32 let original_file = db.file_syntax(position.file_id); 32 let original_file = db.source_file(position.file_id);
33 // Insert a fake ident to get a valid parse tree 33 // Insert a fake ident to get a valid parse tree
34 let file = { 34 let file = {
35 let edit = AtomEdit::insert(position.offset, "intellijRulezz".to_string()); 35 let edit = AtomEdit::insert(position.offset, "intellijRulezz".to_string());