diff options
author | Aleksey Kladov <[email protected]> | 2018-12-21 08:15:23 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-12-21 08:15:23 +0000 |
commit | aa628f474947c46871e1ec82f87be5fc99974b36 (patch) | |
tree | 3660dc8350495ed59cdab72c31f69e4d377eaf2d /crates/ra_analysis/src | |
parent | f897de5b783bacc3e6ea796ef8f3e60f4b8ac808 (diff) |
fix SourceFileEdit name
Diffstat (limited to 'crates/ra_analysis/src')
-rw-r--r-- | crates/ra_analysis/src/imp.rs | 4 | ||||
-rw-r--r-- | crates/ra_analysis/src/lib.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_analysis/src/imp.rs b/crates/ra_analysis/src/imp.rs index b44d9297a..cefe5a748 100644 --- a/crates/ra_analysis/src/imp.rs +++ b/crates/ra_analysis/src/imp.rs | |||
@@ -25,7 +25,7 @@ use crate::{ | |||
25 | db, | 25 | db, |
26 | symbol_index::{SymbolIndex, SymbolsDatabase, LibrarySymbolsQuery}, | 26 | symbol_index::{SymbolIndex, SymbolsDatabase, LibrarySymbolsQuery}, |
27 | AnalysisChange, RootChange, Cancelable, CrateId, Diagnostic, FileId, | 27 | AnalysisChange, RootChange, Cancelable, CrateId, Diagnostic, FileId, |
28 | FileSystemEdit, FilePosition, Query, SourceChange, SourceFileNodeEdit, | 28 | FileSystemEdit, FilePosition, Query, SourceChange, SourceFileEdit, |
29 | ReferenceResolution, | 29 | ReferenceResolution, |
30 | }; | 30 | }; |
31 | 31 | ||
@@ -518,7 +518,7 @@ impl AnalysisImpl { | |||
518 | 518 | ||
519 | impl SourceChange { | 519 | impl SourceChange { |
520 | pub(crate) fn from_local_edit(file_id: FileId, label: &str, edit: LocalEdit) -> SourceChange { | 520 | pub(crate) fn from_local_edit(file_id: FileId, label: &str, edit: LocalEdit) -> SourceChange { |
521 | let file_edit = SourceFileNodeEdit { | 521 | let file_edit = SourceFileEdit { |
522 | file_id, | 522 | file_id, |
523 | edits: edit.edit.into_atoms(), | 523 | edits: edit.edit.into_atoms(), |
524 | }; | 524 | }; |
diff --git a/crates/ra_analysis/src/lib.rs b/crates/ra_analysis/src/lib.rs index a1d462528..d5725ef2e 100644 --- a/crates/ra_analysis/src/lib.rs +++ b/crates/ra_analysis/src/lib.rs | |||
@@ -159,13 +159,13 @@ impl AnalysisHost { | |||
159 | #[derive(Debug)] | 159 | #[derive(Debug)] |
160 | pub struct SourceChange { | 160 | pub struct SourceChange { |
161 | pub label: String, | 161 | pub label: String, |
162 | pub source_file_edits: Vec<SourceFileNodeEdit>, | 162 | pub source_file_edits: Vec<SourceFileEdit>, |
163 | pub file_system_edits: Vec<FileSystemEdit>, | 163 | pub file_system_edits: Vec<FileSystemEdit>, |
164 | pub cursor_position: Option<FilePosition>, | 164 | pub cursor_position: Option<FilePosition>, |
165 | } | 165 | } |
166 | 166 | ||
167 | #[derive(Debug)] | 167 | #[derive(Debug)] |
168 | pub struct SourceFileNodeEdit { | 168 | pub struct SourceFileEdit { |
169 | pub file_id: FileId, | 169 | pub file_id: FileId, |
170 | pub edits: Vec<AtomTextEdit>, | 170 | pub edits: Vec<AtomTextEdit>, |
171 | } | 171 | } |