internal FirstDiagnosticResult(Microsoft.CodeAnalysis.CodeFixes.FirstDiagnosticResult inner) { _inner = inner; Diagnostic = new DiagnosticData(inner.Diagnostic); }
private static Color GetDiagnosticsColor(DiagnosticData diagnosticData) { switch (diagnosticData.Severity) { case DiagnosticSeverity.Info: return Colors.LimeGreen; case DiagnosticSeverity.Warning: return Colors.DodgerBlue; case DiagnosticSeverity.Error: return Colors.Red; default: throw new ArgumentOutOfRangeException(); } }