30 references to EditorConfigSeverityStrings
Microsoft.CodeAnalysis.CodeStyle (30)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
246if (EditorConfigSeverityStrings.TryParse(editorConfigSeverity!, out var effectiveReportDiagnostic)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (6)
99case EditorConfigSeverityStrings.None: 103case EditorConfigSeverityStrings.Refactoring: 104case EditorConfigSeverityStrings.Silent: 108case EditorConfigSeverityStrings.Suggestion: notification = NotificationOption2.Suggestion; return true; 109case EditorConfigSeverityStrings.Warning: notification = NotificationOption2.Warning; return true; 110case EditorConfigSeverityStrings.Error: notification = NotificationOption2.Error; return true;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (8)
102EditorConfigSeverityStrings.TryParse(value, out var severity)) 122EditorConfigSeverityStrings.TryParse(value, out severity)) 130EditorConfigSeverityStrings.TryParse(value, out severity)) 168EditorConfigSeverityStrings.TryParse(value, out severity)) 189EditorConfigSeverityStrings.TryParse(value, out severity)) 197EditorConfigSeverityStrings.TryParse(value, out severity)) 234EditorConfigSeverityStrings.TryParse(value, out severity)) 242EditorConfigSeverityStrings.TryParse(value, out severity))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions_Shared.cs (4)
36DiagnosticSeverity.Hidden => EditorConfigSeverityStrings.Silent, 37DiagnosticSeverity.Info => EditorConfigSeverityStrings.Suggestion, 38DiagnosticSeverity.Warning => EditorConfigSeverityStrings.Warning, 39DiagnosticSeverity.Error => EditorConfigSeverityStrings.Error,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReportDiagnosticExtensions.cs (5)
75ReportDiagnostic.Suppress => EditorConfigSeverityStrings.None, 76ReportDiagnostic.Hidden => EditorConfigSeverityStrings.Silent, 77ReportDiagnostic.Info => EditorConfigSeverityStrings.Suggestion, 78ReportDiagnostic.Warn => EditorConfigSeverityStrings.Warning, 79ReportDiagnostic.Error => EditorConfigSeverityStrings.Error,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingRule.cs (6)
81case EditorConfigSeverityStrings.None: 84case EditorConfigSeverityStrings.Refactoring: 85case EditorConfigSeverityStrings.Silent: 88case EditorConfigSeverityStrings.Suggestion: return ReportDiagnostic.Info; 89case EditorConfigSeverityStrings.Warning: return ReportDiagnostic.Warn; 90case EditorConfigSeverityStrings.Error: return ReportDiagnostic.Error;