コード例 #1
0
        public override SyntaxNode VisitConversionOperatorDeclaration(ConversionOperatorDeclarationSyntax node)
        {
            bool isPubliclyVisible = node.IsPubliclyVisible();

            node = (ConversionOperatorDeclarationSyntax)base.VisitConversionOperatorDeclaration(node);

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