diff options
author | Aleksey Kladov <[email protected]> | 2019-01-26 08:51:36 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-26 08:51:36 +0000 |
commit | 9457b1f0e64d38e7dc24d8c66a52ffef759d4dbf (patch) | |
tree | a9703f8d4338d3b0be55b170ae4fff3d8441ab9d /crates/ra_ide_api/src/rename.rs | |
parent | ac757e114e9dcbc70600803dd4adc4f99ecde78e (diff) |
rename source_file -> parse
Diffstat (limited to 'crates/ra_ide_api/src/rename.rs')
-rw-r--r-- | crates/ra_ide_api/src/rename.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/rename.rs b/crates/ra_ide_api/src/rename.rs index 81ca0537c..db5ccf969 100644 --- a/crates/ra_ide_api/src/rename.rs +++ b/crates/ra_ide_api/src/rename.rs | |||
@@ -25,7 +25,7 @@ pub(crate) fn rename( | |||
25 | position: FilePosition, | 25 | position: FilePosition, |
26 | new_name: &str, | 26 | new_name: &str, |
27 | ) -> Option<SourceChange> { | 27 | ) -> Option<SourceChange> { |
28 | let source_file = db.source_file(position.file_id); | 28 | let source_file = db.parse(position.file_id); |
29 | let syntax = source_file.syntax(); | 29 | let syntax = source_file.syntax(); |
30 | 30 | ||
31 | if let Some((ast_name, ast_module)) = find_name_and_module_at_offset(syntax, position) { | 31 | if let Some((ast_name, ast_module)) = find_name_and_module_at_offset(syntax, position) { |