public static EnumDeclarationSyntax ToBaseType(this EnumDeclarationSyntax syntax, EnumBaseType baseType)
        {
            if (baseType == EnumBaseType.None)
            {
                return(syntax.WithBaseList(null));
            }

            SyntaxKind           keyword    = enumBaseTypeMap[baseType];
            PredefinedTypeSyntax typeSyntax = SyntaxFactory.PredefinedType(SyntaxFactory.Token(keyword));
            SeparatedSyntaxList <BaseTypeSyntax> baseTypes =
                SyntaxFactory.SingletonSeparatedList <BaseTypeSyntax>(SyntaxFactory.SimpleBaseType(typeSyntax));

            return(syntax.WithBaseList(SyntaxFactory.BaseList(baseTypes)));
        }