30 references to SuppressMessageInfo
Microsoft.CodeAnalysis (30)
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (30)
31private static bool TryGetTargetScope(SuppressMessageInfo info, out TargetScope scope)
36private readonly ConcurrentDictionary<ISymbol, ImmutableDictionary<string, SuppressMessageInfo>> _localSuppressionsBySymbol;
42private readonly Dictionary<string, SuppressMessageInfo> _compilationWideSuppressions = new Dictionary<string, SuppressMessageInfo>();
43private readonly Dictionary<ISymbol, Dictionary<string, SuppressMessageInfo>> _globalSymbolSuppressions = new Dictionary<ISymbol, Dictionary<string, SuppressMessageInfo>>();
45public void AddCompilationWideSuppression(SuppressMessageInfo info)
50public void AddGlobalSymbolSuppression(ISymbol symbol, SuppressMessageInfo info)
52Dictionary<string, SuppressMessageInfo>? suppressions;
59suppressions = new Dictionary<string, SuppressMessageInfo>() { { info.Id, info } };
64public bool HasCompilationWideSuppression(string id, out SuppressMessageInfo info)
69public bool HasGlobalSymbolSuppression(ISymbol symbol, string id, bool isImmediatelyContainingSymbol, out SuppressMessageInfo info)
72Dictionary<string, SuppressMessageInfo>? suppressions;
96info = default(SuppressMessageInfo);
104_localSuppressionsBySymbol = new ConcurrentDictionary<ISymbol, ImmutableDictionary<string, SuppressMessageInfo>>();
115SuppressMessageInfo info;
127SuppressMessageInfo info;
138private bool IsDiagnosticSuppressed(Diagnostic diagnostic, out SuppressMessageInfo info)
208private bool IsDiagnosticGloballySuppressed(string id, ISymbol? symbolOpt, bool isImmediatelyContainingSymbol, out SuppressMessageInfo info)
215private bool IsDiagnosticLocallySuppressed(string id, ISymbol symbol, out SuppressMessageInfo info)
273private ImmutableDictionary<string, SuppressMessageInfo> DecodeLocalSuppressMessageAttributes(ISymbol symbol)
279private static ImmutableDictionary<string, SuppressMessageInfo> DecodeLocalSuppressMessageAttributes(IEnumerable<AttributeData> attributes)
281var builder = ImmutableDictionary.CreateBuilder<string, SuppressMessageInfo>();
284SuppressMessageInfo info;
296private static void AddOrUpdate(SuppressMessageInfo info, IDictionary<string, SuppressMessageInfo> builder)
300SuppressMessageInfo currentInfo;
319SuppressMessageInfo info;
370private static bool TryDecodeSuppressMessageAttributeData(AttributeData attribute, out SuppressMessageInfo info)
372info = default(SuppressMessageInfo);