ReferencesProvider

Trait ReferencesProvider 

Source
pub trait ReferencesProvider<L: Language> {
    // Required method
    fn references(
        &self,
        root: &RedNode<'_, L>,
        position: Position,
        include_declaration: bool,
    ) -> Vec<Location>;
}
Expand description

Trait for languages that support finding references.

Required Methods§

Source

fn references( &self, root: &RedNode<'_, L>, position: Position, include_declaration: bool, ) -> Vec<Location>

Returns the references to the symbol at the given position.

Implementors§