public virtual void VisitBaseList(BaseListSyntax node)
 {
     DefaultVisit(node);
 }
Example #2
0
        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;
        }
Example #3
0
        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;
        }
Example #4
0
        public static BaseListSyntax BaseList(params string[] types)
        {
            var result = new BaseListSyntax();

            if (types != null)
                result.Types.AddRange(ParseNames<TypeSyntax>(types));

            return result;
        }
Example #5
0
        public static BaseListSyntax BaseList(IEnumerable<string> types = null)
        {
            var result = new BaseListSyntax();

            if (types != null)
                result.Types.AddRange(ParseNames<TypeSyntax>(types));

            return result;
        }
Example #6
0
        public static BaseListSyntax BaseList(params TypeSyntax[] types)
        {
            var result = new BaseListSyntax();

            if (types != null)
                result.Types.AddRange(types);

            return result;
        }
Example #7
0
        public static BaseListSyntax BaseList(IEnumerable<TypeSyntax> types = null)
        {
            var result = new BaseListSyntax();

            if (types != null)
                result.Types.AddRange(types);

            return result;
        }
Example #8
0
 public virtual void VisitBaseList(BaseListSyntax node)
 {
     DefaultVisit(node);
 }