diff options
author | Aleksey Kladov <[email protected]> | 2019-05-28 16:46:11 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-05-28 16:46:11 +0100 |
commit | 61e1474ab35deb7d54cc2f5d710b901f200b6467 (patch) | |
tree | 158afa2f165a70fdcb5870c940cc9653854e59fa /crates/ra_ide_api/src/references.rs | |
parent | c8bcfe6a05d82e151d459bcd2bd8a7b2742f7a66 (diff) |
fix typos in mbe tests
Diffstat (limited to 'crates/ra_ide_api/src/references.rs')
-rw-r--r-- | crates/ra_ide_api/src/references.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/references.rs b/crates/ra_ide_api/src/references.rs index d5c2b08ca..a75042b76 100644 --- a/crates/ra_ide_api/src/references.rs +++ b/crates/ra_ide_api/src/references.rs | |||
@@ -60,7 +60,7 @@ pub(crate) fn find_all_refs( | |||
60 | db: &RootDatabase, | 60 | db: &RootDatabase, |
61 | position: FilePosition, | 61 | position: FilePosition, |
62 | ) -> Option<ReferenceSearchResult> { | 62 | ) -> Option<ReferenceSearchResult> { |
63 | let file = db.parse(position.file_id); | 63 | let file = db.parse(position.file_id).tree; |
64 | let (binding, analyzer) = find_binding(db, &file, position)?; | 64 | let (binding, analyzer) = find_binding(db, &file, position)?; |
65 | let declaration = NavigationTarget::from_bind_pat(position.file_id, binding); | 65 | let declaration = NavigationTarget::from_bind_pat(position.file_id, binding); |
66 | 66 | ||
@@ -99,7 +99,7 @@ pub(crate) fn rename( | |||
99 | position: FilePosition, | 99 | position: FilePosition, |
100 | new_name: &str, | 100 | new_name: &str, |
101 | ) -> Option<SourceChange> { | 101 | ) -> Option<SourceChange> { |
102 | let source_file = db.parse(position.file_id); | 102 | let source_file = db.parse(position.file_id).tree; |
103 | let syntax = source_file.syntax(); | 103 | let syntax = source_file.syntax(); |
104 | 104 | ||
105 | if let Some((ast_name, ast_module)) = find_name_and_module_at_offset(syntax, position) { | 105 | if let Some((ast_name, ast_module)) = find_name_and_module_at_offset(syntax, position) { |