cairo_lang_syntax::node::utils

Function parent_kind

Source
pub fn parent_kind(
    db: &dyn SyntaxGroup,
    syntax_node: &SyntaxNode,
) -> Option<SyntaxKind>
Expand description

Gets the kind of the parent of the given node, if it exists.