Skip to main content

resolve_attributes

Function resolve_attributes 

Source
pub fn resolve_attributes(
    section_attrs: &[GctfAttribute],
    inherited_attrs: &[GctfAttribute],
) -> Vec<GctfAttribute>
Expand description

Resolve attributes for a section, applying inheritance rules:

  • Attributes from parent sections apply to child sections
  • Child section attributes override parent attributes
  • Attributes with the same name are overridden (not merged)