4 instantiations of SuppressMessageAttributeState
Microsoft.CodeAnalysis (4)
Diagnostic\Diagnostic.cs (1)
356
var suppressMessageState = new
SuppressMessageAttributeState
(compilation);
DiagnosticAnalyzer\AnalyzerDriver.CompilationData.cs (1)
16
SuppressMessageAttributeState = new
SuppressMessageAttributeState
(compilation);
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
1194
var suppressMessageState = new
SuppressMessageAttributeState
(compilation);
SourceGeneration\GeneratorDriver.cs (1)
426
var suppressMessageState = new
SuppressMessageAttributeState
(compilation);
18 references to SuppressMessageAttributeState
Microsoft.CodeAnalysis (6)
Diagnostic\Diagnostic.cs (1)
356
var
suppressMessageState = new SuppressMessageAttributeState(compilation);
DiagnosticAnalyzer\AnalyzerDriver.CompilationData.cs (1)
20
public
SuppressMessageAttributeState
SuppressMessageAttributeState { get; }
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
875
var
suppressMessageState = CurrentCompilationData.SuppressMessageAttributeState;
1198
SuppressMessageAttributeState
suppressMessageState)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
1194
var
suppressMessageState = new SuppressMessageAttributeState(compilation);
SourceGeneration\GeneratorDriver.cs (1)
426
var
suppressMessageState = new SuppressMessageAttributeState(compilation);
Microsoft.CodeAnalysis.UnitTests (12)
Diagnostics\SuppressMessageTargetSymbolResolverTests.cs (12)
384
_ =
SuppressMessageAttributeState
.ResolveTargetSymbols(compilation, "E.",
SuppressMessageAttributeState
.TargetScope.Member);
1277
VerifyResolution(markup, fxCopFullyQualifiedNames,
SuppressMessageAttributeState
.TargetScope.Namespace, language, rootNamespaceName);
1288
VerifyNoResolution(markup, fxCopFullyQualifiedNames,
SuppressMessageAttributeState
.TargetScope.Namespace, language, rootNamespaceName);
1299
VerifyResolution(markup, fxCopFullyQualifiedNames,
SuppressMessageAttributeState
.TargetScope.Type, language, rootNamespaceName);
1310
VerifyNoResolution(markup, fxCopFullyQualifiedNames,
SuppressMessageAttributeState
.TargetScope.Type, language, rootNamespaceName);
1321
VerifyResolution(markup, fxCopFullyQualifiedNames,
SuppressMessageAttributeState
.TargetScope.Member, language, rootNamespaceName);
1332
VerifyNoResolution(markup, fxCopFullyQualifiedNames,
SuppressMessageAttributeState
.TargetScope.Member, language, rootNamespaceName);
1335
private static void VerifyResolution(string markup, string[] fxCopFullyQualifiedNames,
SuppressMessageAttributeState
.TargetScope scope, string language, string rootNamespace)
1365
var symbols =
SuppressMessageAttributeState
.ResolveTargetSymbols(compilation, fxCopName, scope);
1411
private static void VerifyNoResolution(string source, string[] fxCopFullyQualifiedNames,
SuppressMessageAttributeState
.TargetScope scope, string language, string rootNamespace)
1417
var symbols =
SuppressMessageAttributeState
.ResolveTargetSymbols(compilation, fxCopName, scope);