Skip to main content

find_declaration_cross_file

Function find_declaration_cross_file 

Source
pub fn find_declaration_cross_file(
    src_root: &Path,
    current_uri: &Url,
    name: &str,
) -> Option<CrossFileSymbol>
Expand description

Find name’s declaration in any project file other than current_uri. Walks src_root recursively, parses each .bynk file with recovery, and returns the first hit. Returns None if the name is not found anywhere in the project.

Caller is responsible for trying the open file’s local symbol table first; this function intentionally skips current_uri so the local path remains the fast path.