7 instantiations of ModifierKind
Microsoft.CodeAnalysis.Workspaces (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (5)
246private static readonly ModifierKind s_abstractModifierKind = new(ModifierKindEnum.IsAbstract); 247private static readonly ModifierKind s_asyncModifierKind = new(ModifierKindEnum.IsAsync); 248private static readonly ModifierKind s_constModifierKind = new(ModifierKindEnum.IsConst); 249private static readonly ModifierKind s_readonlyModifierKind = new(ModifierKindEnum.IsReadOnly); 250private static readonly ModifierKind s_staticModifierKind = new(ModifierKindEnum.IsStatic);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
541=> new((ModifierKindEnum)Enum.Parse(typeof(ModifierKindEnum), modifierElement.Value)); 547=> new((ModifierKindEnum)reader.ReadInt32());
25 references to ModifierKind
Microsoft.CodeAnalysis.Workspaces (25)
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 (11)
82out Property<ImmutableArray<ModifierKind>> modifiers) 246private static readonly ModifierKind s_abstractModifierKind = new(ModifierKindEnum.IsAbstract); 247private static readonly ModifierKind s_asyncModifierKind = new(ModifierKindEnum.IsAsync); 248private static readonly ModifierKind s_constModifierKind = new(ModifierKindEnum.IsConst); 249private static readonly ModifierKind s_readonlyModifierKind = new(ModifierKindEnum.IsReadOnly); 250private static readonly ModifierKind s_staticModifierKind = new(ModifierKindEnum.IsStatic); 251private static readonly ImmutableArray<ModifierKind> _allModifierKind = [s_abstractModifierKind, s_asyncModifierKind, s_constModifierKind, s_readonlyModifierKind, s_staticModifierKind]; 253private static ImmutableArray<ModifierKind> ParseModifiers(string symbolSpecRequiredModifiers) 265var builder = ArrayBuilder<ModifierKind>.GetInstance(); 452public static string ToEditorConfigString(this ImmutableArray<ModifierKind> modifiers, string languageName) 467private 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); 454public readonly struct ModifierKind : IEquatable<ModifierKind> 538=> new(nameof(ModifierKind), ModifierKindWrapper); 540internal static ModifierKind FromXElement(XElement modifierElement) 546public static ModifierKind ReadFrom(ObjectReader reader) 550=> obj is ModifierKind kind && Equals(kind); 555public bool Equals(ModifierKind other)