public virtual void VisitBaseList(BaseListSyntax node) { DefaultVisit(node); }
public static ClassDeclarationSyntax ClassDeclaration(IEnumerable<AttributeListSyntax> attributeLists = null, Modifiers modifiers = default(Modifiers), string identifier = null, TypeParameterListSyntax typeParameterList = null, BaseListSyntax baseList = null, IEnumerable<TypeParameterConstraintClauseSyntax> constraintClauses = null, IEnumerable<MemberDeclarationSyntax> members = null) { var result = new ClassDeclarationSyntax(); if (attributeLists != null) result.AttributeLists.AddRange(attributeLists); result.Modifiers = modifiers; result.Identifier = identifier; result.TypeParameterList = typeParameterList; result.BaseList = baseList; if (constraintClauses != null) result.ConstraintClauses.AddRange(constraintClauses); if (members != null) result.Members.AddRange(members); return result; }
public static EnumDeclarationSyntax EnumDeclaration(IEnumerable<AttributeListSyntax> attributeLists = null, Modifiers modifiers = default(Modifiers), string identifier = null, BaseListSyntax baseList = null, IEnumerable<EnumMemberDeclarationSyntax> members = null) { var result = new EnumDeclarationSyntax(); if (attributeLists != null) result.AttributeLists.AddRange(attributeLists); result.Modifiers = modifiers; result.Identifier = identifier; result.BaseList = baseList; if (members != null) result.Members.AddRange(members); return result; }
public static BaseListSyntax BaseList(params string[] types) { var result = new BaseListSyntax(); if (types != null) result.Types.AddRange(ParseNames<TypeSyntax>(types)); return result; }
public static BaseListSyntax BaseList(IEnumerable<string> types = null) { var result = new BaseListSyntax(); if (types != null) result.Types.AddRange(ParseNames<TypeSyntax>(types)); return result; }
public static BaseListSyntax BaseList(params TypeSyntax[] types) { var result = new BaseListSyntax(); if (types != null) result.Types.AddRange(types); return result; }
public static BaseListSyntax BaseList(IEnumerable<TypeSyntax> types = null) { var result = new BaseListSyntax(); if (types != null) result.Types.AddRange(types); return result; }