mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
introduce variable
This commit is contained in:
parent
47e8b80e9b
commit
bb64edf8ba
6 changed files with 72 additions and 10 deletions
|
@ -209,8 +209,8 @@ impl Analysis {
|
|||
let file = self.file_syntax(file_id);
|
||||
libeditor::scope_completion(&file, offset)
|
||||
}
|
||||
pub fn assists(&self, file_id: FileId, offset: TextUnit) -> Vec<SourceChange> {
|
||||
self.imp.assists(file_id, offset)
|
||||
pub fn assists(&self, file_id: FileId, range: TextRange) -> Vec<SourceChange> {
|
||||
self.imp.assists(file_id, range)
|
||||
}
|
||||
pub fn diagnostics(&self, file_id: FileId) -> Vec<Diagnostic> {
|
||||
self.imp.diagnostics(file_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue