3 references to ToDiagnosticSeverity
Microsoft.CodeAnalysis.Workspaces (3)
CodeStyle\NotificationOption.cs (1)
40get => Severity.ToDiagnosticSeverity() ?? DiagnosticSeverity.Hidden;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (2)
39new XAttribute(nameof(EnforcementLevel), EnforcementLevel.ToDiagnosticSeverity() ?? DiagnosticSeverity.Hidden)); 58writer.WriteInt32((int)(EnforcementLevel.ToDiagnosticSeverity() ?? DiagnosticSeverity.Hidden));