18 references to GetOptionsForSourcePath
Microsoft.CodeAnalysis (5)
CommandLine\AnalyzerConfigOptionsResult.cs (1)
13
/// Holds results from <see cref="AnalyzerConfigSet.
GetOptionsForSourcePath
(string)"/>.
CommandLine\CommonCompiler.cs (4)
931
sourceFileAnalyzerConfigOptions = Arguments.SourceFiles.SelectAsArray(f => analyzerConfigSet.
GetOptionsForSourcePath
(f.Path));
1067
analyzerConfigProvider = analyzerConfigProvider.WithGlobalOptions(new DictionaryAnalyzerConfigOptions(analyzerConfigSet.
GetOptionsForSourcePath
(string.Empty).AnalyzerOptions));
1072
additionalTextFiles.SelectAsArray(f => analyzerConfigSet.
GetOptionsForSourcePath
(f.Path));
1170
analyzerOptionsBuilder.Add(analyzerConfigSet!.
GetOptionsForSourcePath
(tree.FilePath));
Microsoft.CodeAnalysis.UnitTests (13)
Analyzers\AnalyzerConfigTests.cs (13)
112
var sectionOptions = set.
GetOptionsForSourcePath
("/home/foo/src/{releaseid}.cs");
115
sectionOptions = set.
GetOptionsForSourcePath
("/home/foo/src/Pages/#foo/HomePage.cs");
134
var sectionOptions = set.
GetOptionsForSourcePath
(@"c:\goo\file.cs");
137
sectionOptions = set.
GetOptionsForSourcePath
(@"C:\goo\file.cs");
140
sectionOptions = set.
GetOptionsForSourcePath
(@"C:\goo\other.cs");
143
sectionOptions = set.
GetOptionsForSourcePath
(@"c:\goo\other.cs");
146
sectionOptions = set.
GetOptionsForSourcePath
(@"c:\global.cs");
149
sectionOptions = set.
GetOptionsForSourcePath
(@"C:\global.cs");
1228
return filePaths.Select(f => set.
GetOptionsForSourcePath
(f)).ToArray();
2073
var options = new[] { "/test.cs", "/path/to/file.cs" }.Select(f => set.
GetOptionsForSourcePath
(f)).ToArray();
2394
var sectionOptions = set.
GetOptionsForSourcePath
("/path");
2606
var options = configSet.
GetOptionsForSourcePath
(sourcePath);
2634
var options = configSet.
GetOptionsForSourcePath
("/Test.cs");