Move type

This commit is contained in:
Aleksey Kladov 2020-07-16 10:29:21 +02:00
parent 1d63b3efc9
commit bb2613ed4d
2 changed files with 10 additions and 9 deletions

View file

@ -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<usize>,
}
/// Computes parameter information for the given call expression.
pub(crate) fn call_info(db: &RootDatabase, position: FilePosition) -> Option<CallInfo> {

View file

@ -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<T> RangeInfo<T> {
}
}
/// Contains information about a call site. Specifically the
/// `FunctionSignature`and current parameter.
#[derive(Debug)]
pub struct CallInfo {
pub signature: FunctionSignature,
pub active_parameter: Option<usize>,
}
/// `AnalysisHost` stores the current state of the world.
#[derive(Debug)]
pub struct AnalysisHost {