internal static DiagnosticId GetDiagnosticId(this ICompilationAnalyzer analyzer)
        {
            var diagnosticAnalyzerAttribute = analyzer.GetSupportedDiagnosticAttribute();

            DiagnosticId diagnosticId;

            Enum.TryParse(diagnosticAnalyzerAttribute.Code, out diagnosticId);

            return(diagnosticId);
        }
        internal static DiagnosticDescriptor GetDiagnosticDescriptor(this ICompilationAnalyzer analyzer)
        {
            var diagnosticAnalyzerAttribute = analyzer.GetSupportedDiagnosticAttribute();

            return(diagnosticAnalyzerAttribute.GetDescriptor());
        }