private static Attributes GetMemberAttibutes(ComMember member) { var attributes = new Attributes(); if (member.IsEnumerator) { attributes.AddEnumeratorMemberAttribute(member.Name); } else if (member.IsDefault) { attributes.AddDefaultMemberAttribute(member.Name); } else if (member.IsHidden) { attributes.AddHiddenMemberAttribute(member.Name); } else if (member.IsEvaluateFunction) { attributes.AddEvaluateMemberAttribute(member.Name); } else if (!string.IsNullOrEmpty(member.Documentation.DocString)) { attributes.AddMemberDescriptionAttribute(member.Name, member.Documentation.DocString); } return(attributes); }
private static Attributes GetPropertyAttibutes(ComField property) { var attributes = new Attributes(); if (property.Flags.HasFlag(VARFLAGS.VARFLAG_FDEFAULTBIND)) { attributes.AddDefaultMemberAttribute(property.Name); } if (property.Flags.HasFlag(VARFLAGS.VARFLAG_FHIDDEN)) { attributes.AddHiddenMemberAttribute(property.Name); } return(attributes); }
private static Attributes GetMemberAttibutes(ComMember member) { var attributes = new Attributes(); if (member.IsEnumerator) { attributes.AddEnumeratorMemberAttribute(member.Name); } else if (member.IsDefault) { attributes.AddDefaultMemberAttribute(member.Name); } else if (member.IsHidden) { attributes.AddHiddenMemberAttribute(member.Name); } else if (member.IsEvaluateFunction) { attributes.AddEvaluateMemberAttribute(member.Name); } return(attributes); }