fn inherit_hack_xhp_attrs_only(class: &FoldedClass<R>) -> Self {
        // Filter out properties that are not XHP attributes.
        Inherited {
            props: class
                .props
                .iter()
                .filter(|(_, prop)| prop.get_xhp_attr().is_some())
                .map(|(name, prop)| (name.clone(), prop.clone()))
                .collect(),
            ..Default::default()
        }
    }
// This logic deals with importing XHP attributes from an XHP class via the
// "attribute :foo;" syntax.
This logic deals with importing XHP attributes from an XHP class via the
"attribute :foo;" syntax.
This logic deals with importing XHP attributes from an XHP class via the " attribute : foo ; " syntax .
fn inherit_hack_xhp_attrs_only(class: &FoldedClass<R>) -> Self {
        // Filter out properties that are not XHP attributes.
        Inherited {
            props: class
                .props
                .iter()
                .filter(|(_, prop)| prop.get_xhp_attr().is_some())
                .map(|(name, prop)| (name.clone(), prop.clone()))
                .collect(),
            ..Default::default()
        }
    }
fn inherit_hack_xhp_attrs_only ( class : & FoldedClass < R > ) -> Self { // Filter out properties that are not XHP attributes. Inherited { props : class . props . iter ( ) . filter ( | ( _ , prop ) | prop . get_xhp_attr ( ) . is_some ( ) ) . map ( | ( name , prop ) | ( name . clone ( ) , prop . clone ( ) ) ) . collect ( ) , .. Default :: default ( ) } }
This logic deals with importing XHP attributes from an XHP class via the
"attribute :foo;" syntax.
This logic deals with importing XHP attributes from an XHP class via the " attribute : foo ; " syntax .
class
&FoldedClass<R>