Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide_db/src/call_info.rs')
| -rw-r--r-- | crates/ide_db/src/call_info.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/crates/ide_db/src/call_info.rs b/crates/ide_db/src/call_info.rs index 016b001439..3d32fddd93 100644 --- a/crates/ide_db/src/call_info.rs +++ b/crates/ide_db/src/call_info.rs @@ -154,15 +154,6 @@ pub struct ActiveParameter { } impl ActiveParameter { - pub fn at(db: &RootDatabase, position: FilePosition) -> Option<Self> { - let sema = Semantics::new(db); - let file = sema.parse(position.file_id); - let file = file.syntax(); - let token = file.token_at_offset(position.offset).next()?; - let token = sema.descend_into_macros(token); - Self::at_token(&sema, token) - } - pub fn at_token(sema: &Semantics<RootDatabase>, token: SyntaxToken) -> Option<Self> { let (signature, active_parameter) = call_info_impl(sema, token)?; |