Пример #1
0
        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);
            }
        }
Пример #2
0
        public override SyntaxNode VisitDestructorDeclaration(DestructorDeclarationSyntax node)
        {
            bool isPubliclyVisible = node.IsPubliclyVisible();

            node = (DestructorDeclarationSyntax)base.VisitDestructorDeclaration(node);

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