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