cairo_lang_syntax::node::key_fields

Function get_key_fields

source
pub fn get_key_fields(kind: SyntaxKind, children: &[GreenId]) -> Vec<GreenId>
Expand description

Gets the vector of children ids that are the indexing key for this SyntaxKind.

Each SyntaxKind has some children that are defined in the spec to be its indexing key for its stable pointer. See super::stable_ptr.