parents_match

Function parents_match 

Source
fn parents_match(
    node: NodeOrToken<SyntaxNode, SyntaxToken>,
    kinds: &[SyntaxKind],
) -> bool
Expand description

Returns true if the parent nodes of node all match the SyntaxKinds in kinds exactly.