tinymist_analysis::syntax::matcher

Function node_ancestors

Source
pub fn node_ancestors<'a, 'b>(
    node: &'b LinkedNode<'a>,
) -> impl Iterator<Item = &'b LinkedNode<'a>>
Expand description

Returns the ancestor iterator of the given node.