mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Add testing infrastructure for type inference
- move dir_tests to test_utils for that.
This commit is contained in:
parent
3899898d75
commit
7348f7883f
9 changed files with 223 additions and 125 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue