Exemple #1
0
        public override SyntaxNode VisitEnumDeclaration(EnumDeclarationSyntax node)
        {
            bool isPubliclyVisible = IsPubliclyVisible(node);

            node = (EnumDeclarationSyntax)base.VisitEnumDeclaration(node);

            if (isPubliclyVisible &&
                !node.HasDocumentationComment())
            {
                return(AddDocumentationComment(node));
            }
            else
            {
                return(node);
            }
        }