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); } }
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); } }