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