Skip to main content

document_links

Function document_links 

Source
pub fn document_links(
    build: &CachedBuild,
    file_uri: &Url,
    source_bytes: &[u8],
) -> Vec<DocumentLink>
Expand description

Extract document links for every node in the current file that references a declaration elsewhere.

For ImportDirective nodes, the link covers the import path string and targets the imported file. For all other nodes with a referencedDeclaration, the link covers the node’s name and targets the declaration’s location.