Skip to main content

cross_file_candidates

Function cross_file_candidates 

Source
pub fn cross_file_candidates(
    doc: &DocumentState,
    name: &str,
    include_defs: bool,
) -> Vec<Range>
Expand description

The occurrences of name in ANOTHER open document that belong to a cross-file symbol: unresolved locally (they reach across files), or any occurrence when this document itself defines the symbol. Definition spans ride along when include_defs (rename edits the definition too).