22 references to TargetScope
Microsoft.CodeAnalysis.CodeStyle (22)
AbstractRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (1)
83
if (!SuppressMessageAttributeState.HasValidScope(namedAttributeArguments, out
var
targetScope))
SuppressMessageAttributeState.cs (14)
21
private static readonly ImmutableDictionary<string,
TargetScope
> s_targetScopesMap = CreateTargetScopesMap();
32
private static ImmutableDictionary<string,
TargetScope
> CreateTargetScopesMap()
34
var builder = ImmutableDictionary.CreateBuilder<string,
TargetScope
>(StringComparer.OrdinalIgnoreCase);
37
foreach (
TargetScope
targetScope in Enum.GetValues(typeof(
TargetScope
)))
40
if (targetScope ==
TargetScope
.None)
79
public static bool HasValidScope(ImmutableArray<(string name, IOperation value)> namedAttributeArguments, out
TargetScope
targetScope)
85
targetScope =
TargetScope
.Module;
89
targetScope =
TargetScope
.None;
98
TargetScope
targetScope,
109
if (targetScope ==
TargetScope
.Resource)
120
if (targetScope ==
TargetScope
.Module)
125
else if (targetScope ==
TargetScope
.NamespaceAndDescendants)
128
targetScope =
TargetScope
.Namespace;
SuppressMessageAttributeState.TargetSymbolResolver.cs (7)
38
private readonly
TargetScope
_scope;
42
public TargetSymbolResolver(Compilation compilation,
TargetScope
scope, string fullyQualifiedName)
129
if (_scope !=
TargetScope
.Namespace && PeekNextChar() == '`')
181
if (_scope ==
TargetScope
.Member && !isIndexerProperty && parameters != null)
202
case
TargetScope
.Namespace:
206
case
TargetScope
.Type:
210
case
TargetScope
.Member: