From aa628f474947c46871e1ec82f87be5fc99974b36 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 21 Dec 2018 11:15:23 +0300 Subject: fix SourceFileEdit name --- crates/ra_analysis/src/imp.rs | 4 ++-- crates/ra_analysis/src/lib.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/ra_analysis/src') 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::{ db, symbol_index::{SymbolIndex, SymbolsDatabase, LibrarySymbolsQuery}, AnalysisChange, RootChange, Cancelable, CrateId, Diagnostic, FileId, - FileSystemEdit, FilePosition, Query, SourceChange, SourceFileNodeEdit, + FileSystemEdit, FilePosition, Query, SourceChange, SourceFileEdit, ReferenceResolution, }; @@ -518,7 +518,7 @@ impl AnalysisImpl { impl SourceChange { pub(crate) fn from_local_edit(file_id: FileId, label: &str, edit: LocalEdit) -> SourceChange { - let file_edit = SourceFileNodeEdit { + let file_edit = SourceFileEdit { file_id, edits: edit.edit.into_atoms(), }; 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 { #[derive(Debug)] pub struct SourceChange { pub label: String, - pub source_file_edits: Vec, + pub source_file_edits: Vec, pub file_system_edits: Vec, pub cursor_position: Option, } #[derive(Debug)] -pub struct SourceFileNodeEdit { +pub struct SourceFileEdit { pub file_id: FileId, pub edits: Vec, } -- cgit v1.2.3