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;
46private readonly Dictionary<string, SuppressMessageInfo> _compilationWideSuppressions = new Dictionary<string, SuppressMessageInfo>();
47private readonly Dictionary<ISymbol, Dictionary<string, SuppressMessageInfo>> _globalSymbolSuppressions = new Dictionary<ISymbol, Dictionary<string, SuppressMessageInfo>>();
49public void AddCompilationWideSuppression(SuppressMessageInfo info)
54public void AddGlobalSymbolSuppression(ISymbol symbol, SuppressMessageInfo info)
56Dictionary<string, SuppressMessageInfo>? suppressions;
63suppressions = new Dictionary<string, SuppressMessageInfo>() { { info.Id, info } };
68public bool HasCompilationWideSuppression(string id, out SuppressMessageInfo info)
73public bool HasGlobalSymbolSuppression(ISymbol symbol, string id, bool isImmediatelyContainingSymbol, out SuppressMessageInfo info)
76Dictionary<string, SuppressMessageInfo>? suppressions;
100info = default(SuppressMessageInfo);
108_localSuppressionsBySymbol = new ConcurrentDictionary<ISymbol, ImmutableDictionary<string, SuppressMessageInfo>>();
119SuppressMessageInfo info;
131SuppressMessageInfo info;
142private bool IsDiagnosticSuppressed(Diagnostic diagnostic, out SuppressMessageInfo info)
212private bool IsDiagnosticGloballySuppressed(string id, ISymbol? symbolOpt, bool isImmediatelyContainingSymbol, out SuppressMessageInfo info)
219private bool IsDiagnosticLocallySuppressed(string id, ISymbol symbol, out SuppressMessageInfo info)
277private ImmutableDictionary<string, SuppressMessageInfo> DecodeLocalSuppressMessageAttributes(ISymbol symbol)
283private static ImmutableDictionary<string, SuppressMessageInfo> DecodeLocalSuppressMessageAttributes(IEnumerable<AttributeData> attributes)
285var builder = ImmutableDictionary.CreateBuilder<string, SuppressMessageInfo>();
288SuppressMessageInfo info;
300private static void AddOrUpdate(SuppressMessageInfo info, IDictionary<string, SuppressMessageInfo> builder)
304SuppressMessageInfo currentInfo;
323SuppressMessageInfo info;
374private static bool TryDecodeSuppressMessageAttributeData(AttributeData attribute, out SuppressMessageInfo info)
376info = default(SuppressMessageInfo);