public override SyntaxNode VisitDestructorDeclaration(DestructorDeclarationSyntax node) { bool isPubliclyVisible = node.IsPubliclyVisible(); node = (DestructorDeclarationSyntax)base.VisitDestructorDeclaration(node); if (isPubliclyVisible && !node.HasDocumentationComment()) { return(AddDocumentationComment(node)); } else { return(node); } }
public override SyntaxNode VisitDestructorDeclaration(DestructorDeclarationSyntax node) { bool isPubliclyVisible = node.IsPubliclyVisible(); node = (DestructorDeclarationSyntax)base.VisitDestructorDeclaration(node); if (isPubliclyVisible && !node.HasSingleLineDocumentationComment()) { return(DocumentationCommentGenerator.GenerateAndAttach(node, _settings)); } else { return(node); } }