mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-30 23:27:24 +00:00
Remove EscapedName
This commit is contained in:
parent
53ec791dc6
commit
4322cf7f5b
11 changed files with 26 additions and 73 deletions
|
@ -52,10 +52,10 @@ fn render(
|
|||
|
||||
let (call, escaped_call) = match &func_kind {
|
||||
FuncKind::Method(_, Some(receiver)) => (
|
||||
format!("{}.{}", receiver, &name).into(),
|
||||
format!("{}.{}", receiver.escaped(), name.escaped()).into(),
|
||||
format!("{}.{}", receiver.unescaped(), name.unescaped()).into(),
|
||||
format!("{}.{}", receiver, name).into(),
|
||||
),
|
||||
_ => (name.to_smol_str(), name.escaped().to_smol_str()),
|
||||
_ => (name.unescaped().to_smol_str(), name.to_smol_str()),
|
||||
};
|
||||
let mut item = CompletionItem::new(
|
||||
if func.self_param(db).is_some() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue