7 instantiations of ModifierKind
Microsoft.CodeAnalysis.Workspaces (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (5)
246
private static readonly ModifierKind s_abstractModifierKind =
new
(ModifierKindEnum.IsAbstract);
247
private static readonly ModifierKind s_asyncModifierKind =
new
(ModifierKindEnum.IsAsync);
248
private static readonly ModifierKind s_constModifierKind =
new
(ModifierKindEnum.IsConst);
249
private static readonly ModifierKind s_readonlyModifierKind =
new
(ModifierKindEnum.IsReadOnly);
250
private 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)
39
EditorConfigOption<ImmutableArray<
ModifierKind
>> Modifiers);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (11)
82
out Property<ImmutableArray<
ModifierKind
>> modifiers)
246
private static readonly
ModifierKind
s_abstractModifierKind = new(ModifierKindEnum.IsAbstract);
247
private static readonly
ModifierKind
s_asyncModifierKind = new(ModifierKindEnum.IsAsync);
248
private static readonly
ModifierKind
s_constModifierKind = new(ModifierKindEnum.IsConst);
249
private static readonly
ModifierKind
s_readonlyModifierKind = new(ModifierKindEnum.IsReadOnly);
250
private static readonly
ModifierKind
s_staticModifierKind = new(ModifierKindEnum.IsStatic);
251
private static readonly ImmutableArray<
ModifierKind
> _allModifierKind = [s_abstractModifierKind, s_asyncModifierKind, s_constModifierKind, s_readonlyModifierKind, s_staticModifierKind];
253
private static ImmutableArray<
ModifierKind
> ParseModifiers(string symbolSpecRequiredModifiers)
265
var builder = ArrayBuilder<
ModifierKind
>.GetInstance();
452
public static string ToEditorConfigString(this ImmutableArray<
ModifierKind
> modifiers, string languageName)
467
private static string ToEditorConfigString(this
ModifierKind
modifier, string languageName)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (13)
50
public ImmutableArray<
ModifierKind
> RequiredModifierList { get; } = modifiers.IsDefault ? DefaultSymbolSpecificationTemplate.RequiredModifierList : modifiers;
125
private static DeclarationModifiers CollapseModifiers(ImmutableArray<
ModifierKind
> requiredModifierList)
133
foreach (
var
modifier in requiredModifierList)
243
reader.ReadArray(
ModifierKind
.ReadFrom));
317
private static ImmutableArray<
ModifierKind
> GetModifierListFromXElement(XElement modifierListElement)
318
=> modifierListElement.Elements(nameof(
ModifierKind
)).SelectAsArray(
ModifierKind
.FromXElement);
454
public readonly struct ModifierKind : IEquatable<
ModifierKind
>
538
=> new(nameof(
ModifierKind
), ModifierKindWrapper);
540
internal static
ModifierKind
FromXElement(XElement modifierElement)
546
public static
ModifierKind
ReadFrom(ObjectReader reader)
550
=> obj is
ModifierKind
kind && Equals(kind);
555
public bool Equals(
ModifierKind
other)