move typeof to hover

This commit is contained in:
Aleksey Kladov 2019-01-05 17:38:24 +03:00
parent 9f44d4c56d
commit bdbdade036
3 changed files with 18 additions and 18 deletions

View file

@ -450,7 +450,7 @@ impl Analysis {
}
/// Computes the type of the expression at the given position.
pub fn type_of(&self, frange: FileRange) -> Cancelable<Option<String>> {
self.db.type_of(frange)
hover::type_of(&*self.db, frange)
}
/// Returns the edit required to rename reference at the position to the new
/// name.