public virtual void VisitEventDeclaration(EventDeclarationSyntax node) { DefaultVisit(node); }
public static EventDeclarationSyntax EventDeclaration(IEnumerable<AttributeListSyntax> attributeLists = null, Modifiers modifiers = default(Modifiers), string type = null, ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier = null, string identifier = null, AccessorListSyntax accessorList = null) { var result = new EventDeclarationSyntax(); if (attributeLists != null) result.AttributeLists.AddRange(attributeLists); result.Modifiers = modifiers; if (type != null) result.Type = ParseName(type); result.ExplicitInterfaceSpecifier = explicitInterfaceSpecifier; result.Identifier = identifier; result.AccessorList = accessorList; return result; }
public static EventDeclarationSyntax EventDeclaration(string type = null, string identifier = null) { var result = new EventDeclarationSyntax(); if (type != null) result.Type = ParseName(type); result.Identifier = identifier; return result; }
public static EventDeclarationSyntax EventDeclaration(TypeSyntax type = null, string identifier = null) { var result = new EventDeclarationSyntax(); result.Type = type; result.Identifier = identifier; return result; }