mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +00:00
Pass test
This commit is contained in:
parent
7ec43ee07a
commit
cdc6af6bda
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ pub(crate) fn call_info(db: &RootDatabase, position: FilePosition) -> Option<Cal
|
||||||
// Find the calling expression and it's NameRef
|
// Find the calling expression and it's NameRef
|
||||||
let calling_node = FnCallNode::with_node(&token.value.parent())?;
|
let calling_node = FnCallNode::with_node(&token.value.parent())?;
|
||||||
let name_ref = calling_node.name_ref()?;
|
let name_ref = calling_node.name_ref()?;
|
||||||
let name_ref = hir::InFile::new(position.file_id.into(), name_ref.syntax());
|
let name_ref = token.with_value(name_ref.syntax());
|
||||||
|
|
||||||
let analyzer = hir::SourceAnalyzer::new(db, name_ref, None);
|
let analyzer = hir::SourceAnalyzer::new(db, name_ref, None);
|
||||||
let (mut call_info, has_self) = match &calling_node {
|
let (mut call_info, has_self) = match &calling_node {
|
||||||
|
|
Loading…
Reference in a new issue