in src/js/object-mona-parser/object-parser-common.js [193:212]
function foundAttributeFromParsedSequences(comments, parsedAnnotations, attributeNameValuePair) {
const attributeTypeReferenceSection = attributeNameValuePair.attributeTypeReferenceSection;
const isIdType = attributeTypeReferenceSection.typeReference === 'id';
const isNSObject = attributeNameValuePair.isPointer || isIdType;
const typeReference = (isNSObject && !isIdType) ? attributeTypeReferenceSection.typeReference + '*' : attributeTypeReferenceSection.typeReference;
return {
comments: comments,
name: attributeNameValuePair.attributeNameSection,
annotations: hashWithoutKeys(parsedAnnotations, {'singleAttributeSubtype': true}),
type: {
name: attributeTypeReferenceSection.typeName,
reference: typeReference,
underlyingType: attributeTypeReferenceSection.underlyingType,
conformingProtocol: attributeTypeReferenceSection.conformingProtocol,
referencedGenericTypes: attributeTypeReferenceSection.referencedGenericTypes.map(
foundReferencedGenericTypeFromParsedSequence
)
},
};
}