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