ide_db::active_parameter

Function callable_for_token

source
pub fn callable_for_token(
    sema: &Semantics<'_, RootDatabase>,
    token: SyntaxToken,
) -> Option<(Callable, Option<usize>)>
Expand description

Returns a hir::Callable this token is a part of and its argument index of said callable.