19 references to GetOptionsForSourcePath
Microsoft.CodeAnalysis (5)
CommandLine\AnalyzerConfigOptionsResult.cs (1)
13/// Holds results from <see cref="AnalyzerConfigSet.GetOptionsForSourcePath(string)"/>.
CommandLine\CommonCompiler.cs (4)
931sourceFileAnalyzerConfigOptions = Arguments.SourceFiles.SelectAsArray(f => analyzerConfigSet.GetOptionsForSourcePath(f.Path)); 1067analyzerConfigProvider = analyzerConfigProvider.WithGlobalOptions(new DictionaryAnalyzerConfigOptions(analyzerConfigSet.GetOptionsForSourcePath(string.Empty).AnalyzerOptions)); 1072additionalTextFiles.SelectAsArray(f => analyzerConfigSet.GetOptionsForSourcePath(f.Path)); 1170analyzerOptionsBuilder.Add(analyzerConfigSet!.GetOptionsForSourcePath(tree.FilePath));
Microsoft.CodeAnalysis.UnitTests (13)
Analyzers\AnalyzerConfigTests.cs (13)
111var sectionOptions = set.GetOptionsForSourcePath("/home/foo/src/{releaseid}.cs"); 114sectionOptions = set.GetOptionsForSourcePath("/home/foo/src/Pages/#foo/HomePage.cs"); 133var sectionOptions = set.GetOptionsForSourcePath(@"c:\goo\file.cs"); 136sectionOptions = set.GetOptionsForSourcePath(@"C:\goo\file.cs"); 139sectionOptions = set.GetOptionsForSourcePath(@"C:\goo\other.cs"); 142sectionOptions = set.GetOptionsForSourcePath(@"c:\goo\other.cs"); 145sectionOptions = set.GetOptionsForSourcePath(@"c:\global.cs"); 148sectionOptions = set.GetOptionsForSourcePath(@"C:\global.cs"); 1227return filePaths.Select(f => set.GetOptionsForSourcePath(f)).ToArray(); 2072var options = new[] { "/test.cs", "/path/to/file.cs" }.Select(f => set.GetOptionsForSourcePath(f)).ToArray(); 2393var sectionOptions = set.GetOptionsForSourcePath("/path"); 2605var options = configSet.GetOptionsForSourcePath(sourcePath); 2633var options = configSet.GetOptionsForSourcePath("/Test.cs");
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\ProjectState.AnalyzerConfigOptionsCache.cs (1)
27private readonly Func<string, AnalyzerConfigData> _computeFunction = path => new AnalyzerConfigData(configSet.GetOptionsForSourcePath(path), fallbackOptions);