src\Analyzers\Core\Analyzers\IDEDiagnosticIdToOptionMappingHelper.cs (10)
23private static readonly ConcurrentDictionary<string, ImmutableHashSet<IOption2>> s_diagnosticIdToOptionMap = new();
24private static readonly ConcurrentDictionary<string, ConcurrentDictionary<string, ImmutableHashSet<IOption2>>> s_diagnosticIdToLanguageSpecificOptionsMap = new();
27public static bool TryGetMappedOptions(string diagnosticId, string language, [NotNullWhen(true)] out ImmutableHashSet<IOption2>? options)
39public static void AddOptionMapping(string diagnosticId, ImmutableHashSet<IOption2> options)
45var multipleLanguagesOptionsBuilder = ImmutableHashSet.CreateBuilder<IOption2>();
50foreach (var perLanguageValuedOption in group)
64foreach (var option in languageGroup)
71var map = s_diagnosticIdToLanguageSpecificOptionsMap.GetOrAdd(language, _ => new ConcurrentDictionary<string, ImmutableHashSet<IOption2>>());
84private static void AddOptionMapping(ConcurrentDictionary<string, ImmutableHashSet<IOption2>> map, string diagnosticId, ImmutableHashSet<IOption2> options)