From 6f5fd6c9de07a2bcc315acae59845ffb79990bc5 Mon Sep 17 00:00:00 2001 From: Ville Penttinen Date: Tue, 26 Feb 2019 18:56:04 +0200 Subject: Add new type HoverResult to contain the results of hovering This makes testing hovers easier as well as allows us to do more things with the results if needed. --- crates/ra_ide_api/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crates/ra_ide_api/src/lib.rs') diff --git a/crates/ra_ide_api/src/lib.rs b/crates/ra_ide_api/src/lib.rs index 076a8396c..6546d0644 100644 --- a/crates/ra_ide_api/src/lib.rs +++ b/crates/ra_ide_api/src/lib.rs @@ -58,6 +58,7 @@ pub use crate::{ navigation_target::NavigationTarget, references::ReferenceSearchResult, assists::{Assist, AssistId}, + hover::{HoverResult}, }; pub use ra_ide_api_light::{ Fold, FoldKind, HighlightedRange, Severity, StructureNode, LocalEdit, @@ -328,7 +329,7 @@ impl Analysis { } /// Returns a short text describing element at position. - pub fn hover(&self, position: FilePosition) -> Cancelable>> { + pub fn hover(&self, position: FilePosition) -> Cancelable>> { self.with_db(|db| hover::hover(db, position)) } -- cgit v1.2.3