public static AccessorListSyntax AccessorList(params AccessorDeclarationSyntax[] accessors) { var result = new AccessorListSyntax(); if (accessors != null) result.Accessors.AddRange(accessors); return result; }
public static AccessorListSyntax AccessorList(IEnumerable<AccessorDeclarationSyntax> accessors = null) { var result = new AccessorListSyntax(); if (accessors != null) result.Accessors.AddRange(accessors); return result; }
public virtual void VisitAccessorList(AccessorListSyntax 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 IndexerDeclarationSyntax IndexerDeclaration(IEnumerable<AttributeListSyntax> attributeLists = null, Modifiers modifiers = default(Modifiers), TypeSyntax type = null, ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier = null, BracketedParameterListSyntax parameterList = null, AccessorListSyntax accessorList = null) { var result = new IndexerDeclarationSyntax(); if (attributeLists != null) result.AttributeLists.AddRange(attributeLists); result.Modifiers = modifiers; result.Type = type; result.ExplicitInterfaceSpecifier = explicitInterfaceSpecifier; result.ParameterList = parameterList; result.AccessorList = accessorList; return result; }