1 instantiation of NamingStylePreferences
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
60var preferences = new NamingStylePreferences(
34 references to NamingStylePreferences
Microsoft.CodeAnalysis.Workspaces (31)
Options\DocumentOptionSet.cs (1)
78Contract.ThrowIfTrue(internallyDefinedOption.Type == typeof(NamingStylePreferences));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\CodeGenerationOptions.cs (2)
23[DataMember] public NamingStylePreferences NamingStyle { get; init; } = NamingStylePreferences.Default;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\StructuredAnalyzerConfigOptions.cs (5)
25private readonly Lazy<NamingStylePreferences> _lazyNamingStylePreferences; 31_lazyNamingStylePreferences = new Lazy<NamingStylePreferences>(() => EditorConfigNamingStyleParser.ParseDictionary(_options)); 41public override NamingStylePreferences GetNamingStylePreferences() 45=> _lazyNamingStylePreferences.Value is { IsEmpty: false } nonEmpty ? nonEmpty : _fallback?.GetNamingStylePreferences() ?? NamingStylePreferences.Empty; 50public abstract NamingStylePreferences GetNamingStylePreferences();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalyzerConfigOptionsExtensions.cs (2)
25if (option.Definition.Type == typeof(NamingStylePreferences)) 29var preferences = structuredOptions.GetNamingStylePreferences();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (2)
18public static NamingStylePreferences ParseDictionary(AnalyzerConfigOptions allRawConventions) 60var preferences = new NamingStylePreferences(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleOptions.cs (3)
24internal static PerLanguageOption2<NamingStylePreferences> NamingPreferences { get; } = new( 26defaultValue: NamingStylePreferences.Default, 32: OptionsProvider<NamingStylePreferences>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (10)
26internal sealed class NamingStylePreferences : IEquatable<NamingStylePreferences> 300public static NamingStylePreferences Default { get; } = FromXElement(XElement.Parse(DefaultNamingPreferencesString)); 301public static NamingStylePreferences Empty { get; } = new([], [], []); 328internal static NamingStylePreferences FromXElement(XElement element) 342=> Equals(obj as NamingStylePreferences); 344public bool Equals(NamingStylePreferences other) 354public static bool operator ==(NamingStylePreferences left, NamingStylePreferences right) 368public static bool operator !=(NamingStylePreferences left, NamingStylePreferences right)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
19public static void AppendToEditorConfig(this NamingStylePreferences namingStylePreferences, string language, StringBuilder editorconfig)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (1)
26public NamingRule GetRule(NamingStylePreferences info)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
103type == typeof(NamingStylePreferences) ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\NamingStyles\NamingStylePreferencesProviders.cs (1)
15public static async ValueTask<NamingStylePreferences> GetNamingStylePreferencesAsync(this Document document, CancellationToken cancellationToken)
Workspace\Solution\ProjectState.cs (2)
555public override NamingStylePreferences GetNamingStylePreferences() 556=> NamingStylePreferences.Empty;
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
CodeStyle\NamingStylePreferencesUpgradeTests.cs (1)
21var preferences = NamingStylePreferences.FromXElement(XElement.Parse(serializedPreferences));
EditorConfigStorageLocation\NamingStylePreferenceEditorConfigStorageLocationTests.cs (2)
18var value = options.GetNamingStylePreferences(); 35var value = options.GetNamingStylePreferences();