13 instantiations of DictionaryAnalyzerConfigOptions
Microsoft.CodeAnalysis (4)
CommandLine\CommonCompiler.cs (3)
942builder.Add(syntaxTree, new DictionaryAnalyzerConfigOptions(options)); 957builder.Add(additionalFiles[i], new DictionaryAnalyzerConfigOptions(options)); 1004analyzerConfigProvider = analyzerConfigProvider.WithGlobalOptions(new DictionaryAnalyzerConfigOptions(analyzerConfigSet.GetOptionsForSourcePath(string.Empty).AnalyzerOptions));
DiagnosticAnalyzer\DictionaryAnalyzerConfigOptions.cs (1)
15public static DictionaryAnalyzerConfigOptions Empty { get; } = new DictionaryAnalyzerConfigOptions(EmptyDictionary);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (6)
Diagnostics\DiagnosticAnalyzerTests.cs (4)
1507var analyzerConfigOptions = new DictionaryAnalyzerConfigOptions(ImmutableDictionary<string, string>.Empty.Add("generated_code", "true")); 1515analyzerConfigOptions = new DictionaryAnalyzerConfigOptions(ImmutableDictionary<string, string>.Empty.Add("generated_code", "TRUE")); 1521analyzerConfigOptions = new DictionaryAnalyzerConfigOptions(ImmutableDictionary<string, string>.Empty.Add("generated_code", "false")); 1527analyzerConfigOptions = new DictionaryAnalyzerConfigOptions(ImmutableDictionary<string, string>.Empty.Add("generated_code", "auto"));
Diagnostics\GetDiagnosticsTests.cs (2)
497var analyzerConfigOptions = new DictionaryAnalyzerConfigOptions(ImmutableDictionary<string, string>.Empty.Add("dotnet_analyzer_diagnostic.severity", "none")); 543var analyzerConfigOptions = new DictionaryAnalyzerConfigOptions(ImmutableDictionary<string, string>.Empty.Add(options.Value.key, options.Value.value));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
SourceGeneration\GeneratorDriverTests.cs (3)
849var options = new CompilerAnalyzerConfigOptionsProvider(ImmutableDictionary<object, AnalyzerConfigOptions>.Empty, new DictionaryAnalyzerConfigOptions(ImmutableDictionary<string, string>.Empty.Add("a", "abc").Add("b", "def"))); 2336var optionsProvider = new CompilerAnalyzerConfigOptionsProvider(ImmutableDictionary<object, AnalyzerConfigOptions>.Empty, new DictionaryAnalyzerConfigOptions(builder.ToImmutable())); 2373var newOptionsProvider = optionsProvider.WithGlobalOptions(new DictionaryAnalyzerConfigOptions(builder.ToImmutable()));
14 references to DictionaryAnalyzerConfigOptions
Microsoft.CodeAnalysis (7)
CommandLine\AnalyzerConfigSet.cs (1)
310analyzerOptionsBuilder.Count > 0 ? analyzerOptionsBuilder.ToImmutable() : DictionaryAnalyzerConfigOptions.EmptyDictionary,
CommandLine\CommonCompiler.cs (2)
941Debug.Assert(existing.GetOptions(syntaxTree) == DictionaryAnalyzerConfigOptions.Empty); 956Debug.Assert(existing.GetOptions(additionalFiles[i]) == DictionaryAnalyzerConfigOptions.Empty);
DiagnosticAnalyzer\CompilerAnalyzerConfigOptionsProvider.cs (3)
16DictionaryAnalyzerConfigOptions.Empty); 29=> _treeDict.TryGetValue(tree, out var options) ? options : DictionaryAnalyzerConfigOptions.Empty; 32=> _treeDict.TryGetValue(textFile, out var options) ? options : DictionaryAnalyzerConfigOptions.Empty;
DiagnosticAnalyzer\DictionaryAnalyzerConfigOptions.cs (1)
15public static DictionaryAnalyzerConfigOptions Empty { get; } = new DictionaryAnalyzerConfigOptions(EmptyDictionary);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (6)
Diagnostics\DiagnosticAnalyzerTests.cs (2)
1507var analyzerConfigOptions = new DictionaryAnalyzerConfigOptions(ImmutableDictionary<string, string>.Empty.Add("generated_code", "true")); 1530var analyzerConfigOptionsProvider = new CompilerAnalyzerConfigOptionsProvider(analyzerConfigOptionsPerTreeBuilder.ToImmutable(), DictionaryAnalyzerConfigOptions.Empty);
Diagnostics\GetDiagnosticsTests.cs (4)
497var analyzerConfigOptions = new DictionaryAnalyzerConfigOptions(ImmutableDictionary<string, string>.Empty.Add("dotnet_analyzer_diagnostic.severity", "none")); 500DictionaryAnalyzerConfigOptions.Empty); 543var analyzerConfigOptions = new DictionaryAnalyzerConfigOptions(ImmutableDictionary<string, string>.Empty.Add(options.Value.key, options.Value.value)); 546DictionaryAnalyzerConfigOptions.Empty);
Microsoft.CodeAnalysis.UnitTests (1)
Analyzers\DictionaryAnalyzerConfigOptionsTests.cs (1)
26typeof(DictionaryAnalyzerConfigOptions).GetField("Options", BindingFlags.Instance | BindingFlags.NonPublic)?.FieldType);