cairo_lang_syntax::node::utils

Function is_grandparent_of_kind

Source
pub fn is_grandparent_of_kind(
    db: &dyn SyntaxGroup,
    node: &SyntaxNode,
    kind: SyntaxKind,
) -> bool
Expand description

Checks whether the given node has a grandparent of the given kind.