diff options
Diffstat (limited to 'crates/ra_ide_api/src/lib.rs')
-rw-r--r-- | crates/ra_ide_api/src/lib.rs | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/crates/ra_ide_api/src/lib.rs b/crates/ra_ide_api/src/lib.rs index 7f8f454bc..816bab94f 100644 --- a/crates/ra_ide_api/src/lib.rs +++ b/crates/ra_ide_api/src/lib.rs | |||
@@ -73,6 +73,7 @@ pub use crate::{ | |||
73 | syntax_highlighting::HighlightedRange, | 73 | syntax_highlighting::HighlightedRange, |
74 | structure::{StructureNode, file_structure}, | 74 | structure::{StructureNode, file_structure}, |
75 | diagnostics::Severity, | 75 | diagnostics::Severity, |
76 | display::FunctionSignature, | ||
76 | }; | 77 | }; |
77 | 78 | ||
78 | pub use ra_db::{ | 79 | pub use ra_db::{ |
@@ -248,32 +249,6 @@ pub struct CallInfo { | |||
248 | pub active_parameter: Option<usize>, | 249 | pub active_parameter: Option<usize>, |
249 | } | 250 | } |
250 | 251 | ||
251 | /// Contains information about a function signature | ||
252 | #[derive(Debug)] | ||
253 | pub struct FunctionSignature { | ||
254 | /// Optional visibility | ||
255 | pub visibility: Option<String>, | ||
256 | /// Name of the function | ||
257 | pub name: Option<String>, | ||
258 | /// Documentation for the function | ||
259 | pub doc: Option<Documentation>, | ||
260 | /// Generic parameters | ||
261 | pub generic_parameters: Vec<String>, | ||
262 | /// Parameters of the function | ||
263 | pub parameters: Vec<String>, | ||
264 | /// Optional return type | ||
265 | pub ret_type: Option<String>, | ||
266 | /// Where predicates | ||
267 | pub where_predicates: Vec<String>, | ||
268 | } | ||
269 | |||
270 | impl FunctionSignature { | ||
271 | pub(crate) fn with_doc_opt(mut self, doc: Option<Documentation>) -> Self { | ||
272 | self.doc = doc; | ||
273 | self | ||
274 | } | ||
275 | } | ||
276 | |||
277 | /// `AnalysisHost` stores the current state of the world. | 252 | /// `AnalysisHost` stores the current state of the world. |
278 | #[derive(Debug, Default)] | 253 | #[derive(Debug, Default)] |
279 | pub struct AnalysisHost { | 254 | pub struct AnalysisHost { |