Allow interpreting consts and statics with interpret function command

This commit is contained in:
Lukas Wirth 2024-11-03 14:18:06 +01:00
parent 20ab9708b4
commit 78f3112626
12 changed files with 114 additions and 86 deletions

View file

@ -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> {