mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Allow interpreting consts and statics with interpret function command
This commit is contained in:
parent
20ab9708b4
commit
78f3112626
12 changed files with 114 additions and 86 deletions
|
@ -33,7 +33,7 @@ mod goto_type_definition;
|
|||
mod highlight_related;
|
||||
mod hover;
|
||||
mod inlay_hints;
|
||||
mod interpret_function;
|
||||
mod interpret;
|
||||
mod join_lines;
|
||||
mod markdown_remove;
|
||||
mod matching_brace;
|
||||
|
@ -350,7 +350,7 @@ impl Analysis {
|
|||
}
|
||||
|
||||
pub fn interpret_function(&self, position: FilePosition) -> Cancellable<String> {
|
||||
self.with_db(|db| interpret_function::interpret_function(db, position))
|
||||
self.with_db(|db| interpret::interpret(db, position))
|
||||
}
|
||||
|
||||
pub fn view_item_tree(&self, file_id: FileId) -> Cancellable<String> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue