23 references to SymbolModifiers
Roslyn.Diagnostics.Analyzers (23)
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (8)
63
private static
SymbolModifiers
GetRequiredModifiersOption(
68
SymbolModifiers
defaultValue)
73
private static
SymbolModifiers
GetRequiredModifiersOption(
78
SymbolModifiers
defaultValue)
605
/// 1. If user has explicitly configured candidate <see cref="
SymbolModifiers
"/> in editor config options and
614
SymbolModifiers
defaultRequiredModifiers =
SymbolModifiers
.None)
616
var
requiredModifiers = options.GetRequiredModifiersOption(rule, symbol, compilation, defaultRequiredModifiers);
src\RoslynAnalyzers\Utilities\Compiler\Options\EditorConfigOptionNames.cs (1)
24
/// Allowed option values: One or more fields of flags enum <see cref="
SymbolModifiers
"/> as a comma separated list.
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolModifiers.cs (14)
35
public static bool Contains(this
SymbolModifiers
modifiers,
SymbolModifiers
modifiersToCheck)
38
public static
SymbolModifiers
GetSymbolModifiers(this ISymbol symbol)
40
var
modifiers =
SymbolModifiers
.None;
43
modifiers |=
SymbolModifiers
.Static;
48
modifiers |=
SymbolModifiers
.Const;
53
modifiers |=
SymbolModifiers
.ReadOnly;
58
modifiers |=
SymbolModifiers
.Abstract;
63
modifiers |=
SymbolModifiers
.Virtual;
68
modifiers |=
SymbolModifiers
.Override;
73
modifiers |=
SymbolModifiers
.Sealed;
78
modifiers |=
SymbolModifiers
.Extern;
84
modifiers |=
SymbolModifiers
.Async;