7 instantiations of ModifierKind
Microsoft.CodeAnalysis.CodeStyle (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (5)
297
private static readonly ModifierKind s_abstractModifierKind =
new
(ModifierKindEnum.IsAbstract);
298
private static readonly ModifierKind s_asyncModifierKind =
new
(ModifierKindEnum.IsAsync);
299
private static readonly ModifierKind s_constModifierKind =
new
(ModifierKindEnum.IsConst);
300
private static readonly ModifierKind s_readonlyModifierKind =
new
(ModifierKindEnum.IsReadOnly);
301
private 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)
39
EditorConfigOption<ImmutableArray<
ModifierKind
>> Modifiers);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (13)
74
(ImmutableArray<
ModifierKind
> modifiers, TData data),
282
private static (ImmutableArray<
ModifierKind
> modifiers, TData data) GetSymbolsRequiredModifiers<T, TData>(
294
return (ImmutableArray<
ModifierKind
>.Empty, defaultValue());
297
private static readonly
ModifierKind
s_abstractModifierKind = new(ModifierKindEnum.IsAbstract);
298
private static readonly
ModifierKind
s_asyncModifierKind = new(ModifierKindEnum.IsAsync);
299
private static readonly
ModifierKind
s_constModifierKind = new(ModifierKindEnum.IsConst);
300
private static readonly
ModifierKind
s_readonlyModifierKind = new(ModifierKindEnum.IsReadOnly);
301
private static readonly
ModifierKind
s_staticModifierKind = new(ModifierKindEnum.IsStatic);
302
private static readonly ImmutableArray<
ModifierKind
> _allModifierKind = [s_abstractModifierKind, s_asyncModifierKind, s_constModifierKind, s_readonlyModifierKind, s_staticModifierKind];
304
private static ImmutableArray<
ModifierKind
> ParseModifiers(string symbolSpecRequiredModifiers)
316
var builder = ArrayBuilder<
ModifierKind
>.GetInstance();
503
public static string ToEditorConfigString(this ImmutableArray<
ModifierKind
> modifiers, string languageName)
518
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);
445
public readonly struct ModifierKind : IEquatable<
ModifierKind
>
529
=> new(nameof(
ModifierKind
), ModifierKindWrapper);
531
internal static
ModifierKind
FromXElement(XElement modifierElement)
537
public static
ModifierKind
ReadFrom(ObjectReader reader)
541
=> obj is
ModifierKind
kind && Equals(kind);
546
public bool Equals(
ModifierKind
other)