4 writes to EnforcementLevel
Microsoft.CodeAnalysis.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
74
EnforcementLevel
= rule.EnforcementLevel,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
293
EnforcementLevel
= rule.EnforcementLevel,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (2)
38
EnforcementLevel
= ((DiagnosticSeverity)Enum.Parse(typeof(DiagnosticSeverity), namingRuleElement.Attribute(nameof(EnforcementLevel))!.Value)).ToReportDiagnostic(),
57
EnforcementLevel
= ((DiagnosticSeverity)reader.ReadInt32()).ToReportDiagnostic(),
5 references to EnforcementLevel
Microsoft.CodeAnalysis.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
322
rule.
EnforcementLevel
), (symbolSpecifications, namingStyles)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (4)
29
new XAttribute(nameof(
EnforcementLevel
),
EnforcementLevel
.ToDiagnosticSeverity() ?? DiagnosticSeverity.Hidden));
38
EnforcementLevel = ((DiagnosticSeverity)Enum.Parse(typeof(DiagnosticSeverity), namingRuleElement.Attribute(nameof(
EnforcementLevel
))!.Value)).ToReportDiagnostic(),
48
writer.WriteInt32((int)(
EnforcementLevel
.ToDiagnosticSeverity() ?? DiagnosticSeverity.Hidden));