3 references to ToReportDiagnostic
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReportDiagnosticExtensions.cs (1)
68
return defaultSeverity.
ToReportDiagnostic
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (2)
46
EnforcementLevel = ((DiagnosticSeverity)Enum.Parse(typeof(DiagnosticSeverity), namingRuleElement.Attribute(nameof(EnforcementLevel))!.Value)).
ToReportDiagnostic
(),
65
EnforcementLevel = ((DiagnosticSeverity)reader.ReadInt32()).
ToReportDiagnostic
(),