diff options
author | Aleksey Kladov <[email protected]> | 2020-07-16 09:29:21 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-16 09:29:21 +0100 |
commit | bb2613ed4d23f6104d0a2648352bff111292373a (patch) | |
tree | 200c03cdf33711140cc53edb629bd63ea5da174e /crates | |
parent | 1d63b3efc918d8d72273b90935e4ddd51400be22 (diff) |
Move type
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_ide/src/call_info.rs | 10 | ||||
-rw-r--r-- | crates/ra_ide/src/lib.rs | 9 |
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 | }; |
8 | use test_utils::mark; | 8 | use test_utils::mark; |
9 | 9 | ||
10 | use crate::{CallInfo, FilePosition, FunctionSignature}; | 10 | use crate::{FilePosition, FunctionSignature}; |
11 | |||
12 | /// Contains information about a call site. Specifically the | ||
13 | /// `FunctionSignature`and current parameter. | ||
14 | #[derive(Debug)] | ||
15 | pub 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. |
13 | pub(crate) fn call_info(db: &RootDatabase, position: FilePosition) -> Option<CallInfo> { | 21 | pub(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 | ||
61 | pub use crate::{ | 61 | pub 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)] | ||
137 | pub 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)] |
144 | pub struct AnalysisHost { | 137 | pub struct AnalysisHost { |