Skip to main content

find_references

Function find_references 

Source
pub(super) fn find_references(
    parts: &[String],
    file_uri: &Url,
    root: &Path,
    project_cache: &ProjectCache,
    include_declaration: bool,
) -> Vec<Location>
Expand description

Find all project objects that reference the identified object.

Queries the ProjectCache for dependents of the resolved object. Returns a Location for each dependent’s source file. If include_declaration is true, the defining file itself is included as the first result.

Returns an empty vec if the identifier cannot be resolved or has no dependents.