13 references to GetOptionsForSourcePath
Microsoft.CodeAnalysis (5)
CommandLine\AnalyzerConfigOptionsResult.cs (1)
13/// Holds results from <see cref="AnalyzerConfigSet.GetOptionsForSourcePath(string)"/>.
CommandLine\CommonCompiler.cs (4)
846sourceFileAnalyzerConfigOptions = Arguments.SourceFiles.SelectAsArray(f => analyzerConfigSet.GetOptionsForSourcePath(f.Path)); 1004analyzerConfigProvider = analyzerConfigProvider.WithGlobalOptions(new DictionaryAnalyzerConfigOptions(analyzerConfigSet.GetOptionsForSourcePath(string.Empty).AnalyzerOptions)); 1009additionalTextFiles.SelectAsArray(f => analyzerConfigSet.GetOptionsForSourcePath(f.Path)); 1048analyzerOptionsBuilder.Add(analyzerConfigSet!.GetOptionsForSourcePath(tree.FilePath));
Microsoft.CodeAnalysis.UnitTests (7)
Analyzers\AnalyzerConfigTests.cs (7)
111var sectionOptions = set.GetOptionsForSourcePath("/home/foo/src/{releaseid}.cs"); 114sectionOptions = set.GetOptionsForSourcePath("/home/foo/src/Pages/#foo/HomePage.cs"); 1144return filePaths.Select(f => set.GetOptionsForSourcePath(f)).ToArray(); 1989var options = new[] { "/test.cs", "/path/to/file.cs" }.Select(f => set.GetOptionsForSourcePath(f)).ToArray(); 2310var sectionOptions = set.GetOptionsForSourcePath("/path"); 2522var options = configSet.GetOptionsForSourcePath(sourcePath); 2550var options = configSet.GetOptionsForSourcePath("/Test.cs");
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\ProjectState.cs (1)
506_computeFunction = path => new AnalyzerConfigData(configSet.GetOptionsForSourcePath(path));