public override object VisitEventDeclaration(EventDeclaration eventDeclaration) { if (!copyAllMembers) { eventDeclaration.Remove(); } return(base.VisitEventDeclaration(eventDeclaration)); }
public override void VisitEventDeclaration(EventDeclaration eventDeclaration) { if (eventDeclaration.IsPublic()) { base.VisitEventDeclaration(eventDeclaration); } else { eventDeclaration.Remove(); } }
public override void VisitEventDeclaration(EventDeclaration d) { if (d.Modifiers.HasFlag(Modifiers.Private) || d.Modifiers.HasFlag(Modifiers.Internal) || d.Modifiers.HasFlag(Modifiers.Override)) { d.Remove(); } else { RemoveAttributes(d.Attributes); base.VisitEventDeclaration(d); } }