cairo_lang_semantic::items::feature_kind

Function extract_feature_config

Source
pub fn extract_feature_config(
    db: &dyn SemanticGroup,
    element_id: &impl LanguageElementId,
    syntax: &impl QueryAttrs,
    diagnostics: &mut SemanticDiagnostics,
) -> FeatureConfig
Expand description

Extracts the allowed features of an element, considering its parent modules as well as its attributes.