7 references to ToDiagnosticSeverity
Microsoft.CodeAnalysis.CodeStyle (7)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (3)
177return notification.Value.Severity.ToDiagnosticSeverity() < _minimumReportedSeverity.Value; 214if (configuredReportDiagnostic.ToDiagnosticSeverity() is { } configuredSeverity 247&& effectiveReportDiagnostic.ToDiagnosticSeverity() is { } effectiveSeverity
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
274effectiveSeverity.ToDiagnosticSeverity() ?? descriptor.DefaultSeverity,
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
220var effectiveSeverity = severity.ToDiagnosticSeverity() ?? s_removeUnnecessarySuppressionDescriptor.DefaultSeverity;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (2)
37new XAttribute(nameof(EnforcementLevel), EnforcementLevel.ToDiagnosticSeverity() ?? DiagnosticSeverity.Hidden)); 56writer.WriteInt32((int)(EnforcementLevel.ToDiagnosticSeverity() ?? DiagnosticSeverity.Hidden));