Skip to main content

goto_definition

Function goto_definition 

Source
pub fn goto_definition(
    uri: &Url,
    source: &str,
    doc: &ParsedDoc,
    other_docs: &[(Url, Arc<ParsedDoc>)],
    position: Position,
) -> Option<Location>
Expand description

Find the definition of the symbol under position. Searches the current document first, then other_docs for cross-file resolution.