Add testing infrastructure for type inference

- move dir_tests to test_utils for that.
This commit is contained in:
Florian Diebold 2018-12-23 12:05:54 +01:00
parent 3899898d75
commit 7348f7883f
9 changed files with 223 additions and 125 deletions

View file

@ -366,6 +366,9 @@ impl Analysis {
) -> Cancelable<Option<(FnSignatureInfo, Option<usize>)>> {
self.imp.resolve_callable(position)
}
pub fn type_of(&self, file_id: FileId, range: TextRange) -> Cancelable<Option<String>> {
self.imp.type_of(file_id, range)
}
}
pub struct LibraryData {