mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Move renames into ra_analysis
This commit is contained in:
parent
0f95d8523e
commit
c402b007a3
3 changed files with 39 additions and 15 deletions
|
@ -367,6 +367,13 @@ impl Analysis {
|
|||
pub fn type_of(&self, frange: FileRange) -> Cancelable<Option<String>> {
|
||||
self.imp.type_of(frange)
|
||||
}
|
||||
pub fn rename(
|
||||
&self,
|
||||
position: FilePosition,
|
||||
new_name: &str,
|
||||
) -> Cancelable<Vec<SourceFileEdit>> {
|
||||
self.imp.rename(position, new_name)
|
||||
}
|
||||
}
|
||||
|
||||
pub struct LibraryData {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue