From bb2613ed4d23f6104d0a2648352bff111292373a Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 16 Jul 2020 10:29:21 +0200 Subject: Move type --- crates/ra_ide/src/call_info.rs | 10 +++++++++- crates/ra_ide/src/lib.rs | 9 +-------- 2 files changed, 10 insertions(+), 9 deletions(-) (limited to 'crates') diff --git a/crates/ra_ide/src/call_info.rs b/crates/ra_ide/src/call_info.rs index e1d6efb2a..eabe0cb82 100644 --- a/crates/ra_ide/src/call_info.rs +++ b/crates/ra_ide/src/call_info.rs @@ -7,7 +7,15 @@ use ra_syntax::{ }; use test_utils::mark; -use crate::{CallInfo, FilePosition, FunctionSignature}; +use crate::{FilePosition, FunctionSignature}; + +/// Contains information about a call site. Specifically the +/// `FunctionSignature`and current parameter. +#[derive(Debug)] +pub struct CallInfo { + pub signature: FunctionSignature, + pub active_parameter: Option, +} /// Computes parameter information for the given call expression. pub(crate) fn call_info(db: &RootDatabase, position: FilePosition) -> Option { diff --git a/crates/ra_ide/src/lib.rs b/crates/ra_ide/src/lib.rs index 6a4f5cb3d..5d1f64e19 100644 --- a/crates/ra_ide/src/lib.rs +++ b/crates/ra_ide/src/lib.rs @@ -60,6 +60,7 @@ use crate::display::ToNav; pub use crate::{ call_hierarchy::CallItem, + call_info::CallInfo, completion::{ CompletionConfig, CompletionItem, CompletionItemKind, CompletionScore, InsertTextFormat, }, @@ -131,14 +132,6 @@ impl RangeInfo { } } -/// Contains information about a call site. Specifically the -/// `FunctionSignature`and current parameter. -#[derive(Debug)] -pub struct CallInfo { - pub signature: FunctionSignature, - pub active_parameter: Option, -} - /// `AnalysisHost` stores the current state of the world. #[derive(Debug)] pub struct AnalysisHost { -- cgit v1.2.3