7 instantiations of ModifierKind
Microsoft.CodeAnalysis.CodeStyle (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (5)
297private static readonly ModifierKind s_abstractModifierKind = new(ModifierKindEnum.IsAbstract); 298private static readonly ModifierKind s_asyncModifierKind = new(ModifierKindEnum.IsAsync); 299private static readonly ModifierKind s_constModifierKind = new(ModifierKindEnum.IsConst); 300private static readonly ModifierKind s_readonlyModifierKind = new(ModifierKindEnum.IsReadOnly); 301private static readonly ModifierKind s_staticModifierKind = new(ModifierKindEnum.IsStatic);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
532=> new((ModifierKindEnum)Enum.Parse(typeof(ModifierKindEnum), modifierElement.Value)); 538=> new((ModifierKindEnum)reader.ReadInt32());
27 references to ModifierKind
Microsoft.CodeAnalysis.CodeStyle (27)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\NamingStyles\NamingStyleOption.cs (1)
39EditorConfigOption<ImmutableArray<ModifierKind>> Modifiers);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (13)
74(ImmutableArray<ModifierKind> modifiers, TData data), 282private static (ImmutableArray<ModifierKind> modifiers, TData data) GetSymbolsRequiredModifiers<T, TData>( 294return (ImmutableArray<ModifierKind>.Empty, defaultValue()); 297private static readonly ModifierKind s_abstractModifierKind = new(ModifierKindEnum.IsAbstract); 298private static readonly ModifierKind s_asyncModifierKind = new(ModifierKindEnum.IsAsync); 299private static readonly ModifierKind s_constModifierKind = new(ModifierKindEnum.IsConst); 300private static readonly ModifierKind s_readonlyModifierKind = new(ModifierKindEnum.IsReadOnly); 301private static readonly ModifierKind s_staticModifierKind = new(ModifierKindEnum.IsStatic); 302private static readonly ImmutableArray<ModifierKind> _allModifierKind = [s_abstractModifierKind, s_asyncModifierKind, s_constModifierKind, s_readonlyModifierKind, s_staticModifierKind]; 304private static ImmutableArray<ModifierKind> ParseModifiers(string symbolSpecRequiredModifiers) 316var builder = ArrayBuilder<ModifierKind>.GetInstance(); 503public static string ToEditorConfigString(this ImmutableArray<ModifierKind> modifiers, string languageName) 518private static string ToEditorConfigString(this ModifierKind modifier, string languageName)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (13)
50public ImmutableArray<ModifierKind> RequiredModifierList { get; } = modifiers.IsDefault ? DefaultSymbolSpecificationTemplate.RequiredModifierList : modifiers; 125private static DeclarationModifiers CollapseModifiers(ImmutableArray<ModifierKind> requiredModifierList) 133foreach (var modifier in requiredModifierList) 243reader.ReadArray(ModifierKind.ReadFrom)); 317private static ImmutableArray<ModifierKind> GetModifierListFromXElement(XElement modifierListElement) 318=> modifierListElement.Elements(nameof(ModifierKind)).SelectAsArray(ModifierKind.FromXElement); 445public readonly struct ModifierKind : IEquatable<ModifierKind> 529=> new(nameof(ModifierKind), ModifierKindWrapper); 531internal static ModifierKind FromXElement(XElement modifierElement) 537public static ModifierKind ReadFrom(ObjectReader reader) 541=> obj is ModifierKind kind && Equals(kind); 546public bool Equals(ModifierKind other)