tinymist_query::syntax::matcher

Function first_ancestor_expr

Source
pub fn first_ancestor_expr(node: LinkedNode<'_>) -> Option<LinkedNode<'_>>
Expand description

Finds the first ancestor node that is an expression.