def parse_types_ref(self, parent: TypeCollection, element):
    'parse composite / ref'
    attributes = self.parse_common_attributes(element, attributes=REF_ATTRIBUTES_LIST)
    sbe_ref = createRef(**attributes)
    reference_type = parent.lookupName(sbe_ref.type)
    if (not reference_type):
        raise UnknownReference(f'composite {parent.name} ref {sbe_ref.name} references unknown encodingType {sbe_ref.type}')
    parent.addType(sbe_ref)
parse composite / ref
def parse_types_ref(self, parent: TypeCollection, element):
    
    attributes = self.parse_common_attributes(element, attributes=REF_ATTRIBUTES_LIST)
    sbe_ref = createRef(**attributes)
    reference_type = parent.lookupName(sbe_ref.type)
    if (not reference_type):
        raise UnknownReference(f'composite {parent.name} ref {sbe_ref.name} references unknown encodingType {sbe_ref.type}')
    parent.addType(sbe_ref)