public override SyntaxNode VisitDelegateDeclaration(DelegateDeclarationSyntax node)
        {
            bool isPubliclyVisible = node.IsPubliclyVisible();

            node = (DelegateDeclarationSyntax)base.VisitDelegateDeclaration(node);

            if (isPubliclyVisible &&
                !node.HasDocumentationComment())
            {
                return(AddDocumentationComment(node));
            }
            else
            {
                return(node);
            }
        }
Ejemplo n.º 2
0
        public override SyntaxNode VisitDelegateDeclaration(DelegateDeclarationSyntax node)
        {
            bool isPubliclyVisible = node.IsPubliclyVisible();

            node = (DelegateDeclarationSyntax)base.VisitDelegateDeclaration(node);

            if (isPubliclyVisible &&
                !node.HasSingleLineDocumentationComment())
            {
                return(DocumentationCommentGenerator.GenerateAndAttach(node, _settings));
            }
            else
            {
                return(node);
            }
        }