mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Thread more HasSource::source calls through Semantics for caching
This commit is contained in:
parent
72dfbe95de
commit
8520a0c585
10 changed files with 121 additions and 84 deletions
|
@ -226,7 +226,7 @@ fn signature_help_for_call(
|
|||
let mut buf = String::new();
|
||||
for (idx, p) in callable.params().into_iter().enumerate() {
|
||||
buf.clear();
|
||||
if let Some(param) = p.source(sema.db) {
|
||||
if let Some(param) = sema.source(p.clone()) {
|
||||
match param.value {
|
||||
Either::Right(param) => match param.pat() {
|
||||
Some(pat) => format_to!(buf, "{}: ", pat),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue