pub trait StructureProvider<L: Language> {
// Required method
fn structure(&self, root: &RedNode<'_, L>) -> Vec<StructureItem>;
}Expand description
Trait for languages that support structure view and navigation.
Benchmarked against IntelliJ’s Structure View and LSP’s textDocument/documentSymbol.
Required Methods§
Sourcefn structure(&self, root: &RedNode<'_, L>) -> Vec<StructureItem>
fn structure(&self, root: &RedNode<'_, L>) -> Vec<StructureItem>
Returns the hierarchical structure of the document.