Skip to main content

find_references_with_use

Function find_references_with_use 

Source
pub fn find_references_with_use(
    word: &str,
    all_docs: &[(Url, Arc<ParsedDoc>)],
    include_declaration: bool,
) -> Vec<Location>
Expand description

Like find_references but also includes use statement spans. Used by rename so that use Foo; statements are also updated. Always uses the general walker (rename must update all occurrence kinds).