1 write to AnalyzerOptions
Microsoft.CodeAnalysis (1)
CommandLine\AnalyzerConfigOptionsResult.cs (1)
41AnalyzerOptions = analyzerOptions;
31 references to AnalyzerOptions
Microsoft.CodeAnalysis (5)
CommandLine\AnalyzerConfigSet.cs (1)
249analyzerOptionsBuilder.AddRange(GlobalConfigOptions.AnalyzerOptions);
CommandLine\CommonCompiler.cs (3)
1027var options = sourceFileAnalyzerConfigOptions[i].AnalyzerOptions; 1042var options = additionalFileOptions[i].AnalyzerOptions; 1067analyzerConfigProvider = analyzerConfigProvider.WithGlobalOptions(new DictionaryAnalyzerConfigOptions(analyzerConfigSet.GetOptionsForSourcePath(string.Empty).AnalyzerOptions));
Compilation\SyntaxTreeOptionsProvider.cs (1)
41IsGenerated = GeneratedCodeUtilities.GetGeneratedCodeKindFromOptions(r.AnalyzerOptions);
Microsoft.CodeAnalysis.UnitTests (25)
Analyzers\AnalyzerConfigTests.cs (25)
113Assert.Equal("abc123", sectionOptions.AnalyzerOptions["build_metadata.compile.toretrieve"]); 116Assert.Equal("def456", sectionOptions.AnalyzerOptions["build_metadata.compile.toretrieve"]); 135Assert.Equal("abc123", sectionOptions.AnalyzerOptions["build_metadata.compile.toretrieve"]); 138Assert.Equal("abc123", sectionOptions.AnalyzerOptions["build_metadata.compile.toretrieve"]); 141Assert.Equal("def456", sectionOptions.AnalyzerOptions["build_metadata.compile.toretrieve"]); 144Assert.Equal("def456", sectionOptions.AnalyzerOptions["build_metadata.compile.toretrieve"]); 147Assert.Equal("global", sectionOptions.AnalyzerOptions["build_metadata.compile.toretrieve"]); 150Assert.Equal("global", sectionOptions.AnalyzerOptions["build_metadata.compile.toretrieve"]); 1247options[i].AnalyzerOptions); 1612Assert.Same(options[0].AnalyzerOptions, options[1].AnalyzerOptions); 1614Assert.Same(options[1].AnalyzerOptions, options[2].AnalyzerOptions); 2235Assert.NotNull(globalOptions.AnalyzerOptions); 2238Assert.Empty(globalOptions.AnalyzerOptions); 2375Assert.Empty(globalOptions.AnalyzerOptions); 2390Assert.Empty(globalOptions.AnalyzerOptions); 2396Assert.Single(sectionOptions.AnalyzerOptions); 2397Assert.Equal("123", sectionOptions.AnalyzerOptions["global_level"]); 2610Assert.Single(options.AnalyzerOptions); 2611Assert.Equal("b", options.AnalyzerOptions["a"]); 2615Assert.Empty(options.AnalyzerOptions); 2636Assert.Equal(2, options.AnalyzerOptions.Count); 2637Assert.Equal("a", options.AnalyzerOptions["a"]); 2638Assert.Equal("b", options.AnalyzerOptions["b"]);
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\AnalyzerConfigData.cs (1)
28_dictionaryConfigOptions = new DictionaryAnalyzerConfigOptions(result.AnalyzerOptions);