aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_ide/src/call_info.rs10
-rw-r--r--crates/ra_ide/src/lib.rs9
2 files changed, 10 insertions, 9 deletions
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::{
7}; 7};
8use test_utils::mark; 8use test_utils::mark;
9 9
10use crate::{CallInfo, FilePosition, FunctionSignature}; 10use crate::{FilePosition, FunctionSignature};
11
12/// Contains information about a call site. Specifically the
13/// `FunctionSignature`and current parameter.
14#[derive(Debug)]
15pub struct CallInfo {
16 pub signature: FunctionSignature,
17 pub active_parameter: Option<usize>,
18}
11 19
12/// Computes parameter information for the given call expression. 20/// Computes parameter information for the given call expression.
13pub(crate) fn call_info(db: &RootDatabase, position: FilePosition) -> Option<CallInfo> { 21pub(crate) fn call_info(db: &RootDatabase, position: FilePosition) -> Option<CallInfo> {
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;
60 60
61pub use crate::{ 61pub use crate::{
62 call_hierarchy::CallItem, 62 call_hierarchy::CallItem,
63 call_info::CallInfo,
63 completion::{ 64 completion::{
64 CompletionConfig, CompletionItem, CompletionItemKind, CompletionScore, InsertTextFormat, 65 CompletionConfig, CompletionItem, CompletionItemKind, CompletionScore, InsertTextFormat,
65 }, 66 },
@@ -131,14 +132,6 @@ impl<T> RangeInfo<T> {
131 } 132 }
132} 133}
133 134
134/// Contains information about a call site. Specifically the
135/// `FunctionSignature`and current parameter.
136#[derive(Debug)]
137pub struct CallInfo {
138 pub signature: FunctionSignature,
139 pub active_parameter: Option<usize>,
140}
141
142/// `AnalysisHost` stores the current state of the world. 135/// `AnalysisHost` stores the current state of the world.
143#[derive(Debug)] 136#[derive(Debug)]
144pub struct AnalysisHost { 137pub struct AnalysisHost {