mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Split SymbolKind::Function into Function and Method
This commit is contained in:
parent
c8f6655327
commit
23fff55f0c
20 changed files with 150 additions and 124 deletions
|
@ -68,11 +68,11 @@ fn render(
|
|||
};
|
||||
let has_self_param = func.self_param(db).is_some();
|
||||
let mut item = CompletionItem::new(
|
||||
if has_self_param {
|
||||
CompletionItemKind::Method
|
||||
CompletionItemKind::SymbolKind(if has_self_param {
|
||||
SymbolKind::Method
|
||||
} else {
|
||||
CompletionItemKind::SymbolKind(SymbolKind::Function)
|
||||
},
|
||||
SymbolKind::Function
|
||||
}),
|
||||
ctx.source_range(),
|
||||
call.clone(),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue