mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
use Source for Function
This commit is contained in:
parent
36865adcb9
commit
4f94af3c4a
10 changed files with 30 additions and 28 deletions
|
@ -100,7 +100,7 @@ impl Completions {
|
|||
) {
|
||||
let sig = func.signature(ctx.db);
|
||||
let name = name.unwrap_or_else(|| sig.name().to_string());
|
||||
let (_, ast_node) = func.source(ctx.db);
|
||||
let ast_node = func.source(ctx.db).ast;
|
||||
let detail = function_label(&ast_node);
|
||||
|
||||
let mut builder = CompletionItem::new(CompletionKind::Reference, ctx.source_range(), name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue