mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 05:38:46 +00:00
Move type
This commit is contained in:
parent
1d63b3efc9
commit
bb2613ed4d
2 changed files with 10 additions and 9 deletions
|
@ -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> {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue