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