30 references to ModifierKindEnum
Microsoft.CodeAnalysis.CodeStyle (30)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (10)
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); 522case ModifierKindEnum.IsAbstract: 532case ModifierKindEnum.IsStatic: 542case ModifierKindEnum.IsAsync: 545case ModifierKindEnum.IsReadOnly: 548case ModifierKindEnum.IsConst:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (20)
137case ModifierKindEnum.IsAbstract: 140case ModifierKindEnum.IsStatic: 143case ModifierKindEnum.IsAsync: 146case ModifierKindEnum.IsReadOnly: 149case ModifierKindEnum.IsConst: 448public readonly ModifierKindEnum ModifierKindWrapper; 458ModifierKindWrapper = ModifierKindEnum.IsAbstract; 462ModifierKindWrapper = ModifierKindEnum.IsStatic; 466ModifierKindWrapper = ModifierKindEnum.IsAsync; 470ModifierKindWrapper = ModifierKindEnum.IsReadOnly; 474ModifierKindWrapper = ModifierKindEnum.IsConst; 482public ModifierKind(ModifierKindEnum modifierKind) 487isAbstract: ModifierKindWrapper == ModifierKindEnum.IsAbstract, 488isStatic: ModifierKindWrapper == ModifierKindEnum.IsStatic, 489isAsync: ModifierKindWrapper == ModifierKindEnum.IsAsync, 490isReadOnly: ModifierKindWrapper == ModifierKindEnum.IsReadOnly, 491isConst: ModifierKindWrapper == ModifierKindEnum.IsConst); 532=> new((ModifierKindEnum)Enum.Parse(typeof(ModifierKindEnum), modifierElement.Value)); 538=> new((ModifierKindEnum)reader.ReadInt32());