2 instantiations of AnalyzerConfigOptionsResult
Microsoft.CodeAnalysis (2)
CommandLine\AnalyzerConfigSet.cs (2)
297result = new AnalyzerConfigOptionsResult( 382var options = new AnalyzerConfigOptionsResult(
51 references to AnalyzerConfigOptionsResult
Microsoft.CodeAnalysis (28)
CommandLine\AnalyzerConfigSet.cs (10)
51private readonly ConcurrentCache<List<Section>, AnalyzerConfigOptionsResult> _optionsCache = 52new ConcurrentCache<List<Section>, AnalyzerConfigOptionsResult>(50, SequenceEqualComparer.Instance); // arbitrary size 62private SingleInitNullable<AnalyzerConfigOptionsResult> _lazyConfigOptions; 166/// Gets an <see cref="AnalyzerConfigOptionsResult"/> that contain the options that apply globally 168public AnalyzerConfigOptionsResult GlobalConfigOptions 172/// Returns a <see cref="AnalyzerConfigOptionsResult"/> for a source file. This computes which <see cref="AnalyzerConfig"/> rules applies to this file, and correctly applies 177public AnalyzerConfigOptionsResult GetOptionsForSourcePath(string sourcePath) 241if (!_optionsCache.TryGetValue(sectionKey, out var result)) 369private AnalyzerConfigOptionsResult ParseGlobalConfigOptions() 382var options = new AnalyzerConfigOptionsResult(
CommandLine\CommonCompiler.cs (12)
99ImmutableArray<AnalyzerConfigOptionsResult> analyzerConfigOptions, 100AnalyzerConfigOptionsResult globalConfigOptions); 918ImmutableArray<AnalyzerConfigOptionsResult> sourceFileAnalyzerConfigOptions = default; 919AnalyzerConfigOptionsResult globalConfigOptions = default; 933foreach (var sourceFileAnalyzerConfigOption in sourceFileAnalyzerConfigOptions) 1018ImmutableArray<AnalyzerConfigOptionsResult> sourceFileAnalyzerConfigOptions, 1020ImmutableArray<AnalyzerConfigOptionsResult> additionalFileOptions = default) 1061ImmutableArray<AnalyzerConfigOptionsResult> sourceFileAnalyzerConfigOptions) 1071ImmutableArray<AnalyzerConfigOptionsResult> additionalFileAnalyzerOptions = 1074foreach (var result in additionalFileAnalyzerOptions) 1101ImmutableArray<AnalyzerConfigOptionsResult> sourceFileAnalyzerConfigOptions, 1155var analyzerOptionsBuilder = hasAnalyzerConfigs ? ArrayBuilder<AnalyzerConfigOptionsResult>.GetInstance(generatedSyntaxTrees.Count) : null;
Compilation\SyntaxTreeOptionsProvider.cs (6)
36public Options(AnalyzerConfigOptionsResult? result) 38if (result is AnalyzerConfigOptionsResult r) 53private readonly AnalyzerConfigOptionsResult _globalOptions; 57ImmutableArray<AnalyzerConfigOptionsResult> results, 58AnalyzerConfigOptionsResult globalResults) 67new Options(results.IsDefault ? null : (AnalyzerConfigOptionsResult?)results[i]));
Microsoft.CodeAnalysis.CSharp (2)
CommandLine\CSharpCompiler.cs (2)
42ImmutableArray<AnalyzerConfigOptionsResult> analyzerConfigOptions, 43AnalyzerConfigOptionsResult globalConfigOptions)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
MockCSharpCompiler.cs (2)
81ImmutableArray<AnalyzerConfigOptionsResult> syntaxDiagOptionsOpt, 82AnalyzerConfigOptionsResult globalDiagnosticOptionsOpt)
Microsoft.CodeAnalysis.UnitTests (12)
Analyzers\AnalyzerConfigTests.cs (12)
112var sectionOptions = set.GetOptionsForSourcePath("/home/foo/src/{releaseid}.cs"); 134var sectionOptions = set.GetOptionsForSourcePath(@"c:\goo\file.cs"); 989var options = GetAnalyzerConfigOptions([prefixSource + "test.cs"], configs); 1225private AnalyzerConfigOptionsResult[] GetAnalyzerConfigOptions(string[] filePaths, ArrayBuilder<AnalyzerConfig> configs) 1233AnalyzerConfigOptionsResult[] options) 1254AnalyzerConfigOptionsResult[] options) 2233var globalOptions = set.GlobalConfigOptions; 2373var globalOptions = set.GlobalConfigOptions; 2388var globalOptions = set.GlobalConfigOptions; 2394var sectionOptions = set.GetOptionsForSourcePath("/path"); 2606var options = configSet.GetOptionsForSourcePath(sourcePath); 2634var options = configSet.GetOptionsForSourcePath("/Test.cs");
Microsoft.CodeAnalysis.VisualBasic (2)
CommandLine\VisualBasicCompiler.vb (2)
89analyzerConfigOptions As ImmutableArray(Of AnalyzerConfigOptionsResult), 90globalAnalyzerConfigOptions As AnalyzerConfigOptionsResult) As Compilation
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (3)
MockVisualBasicCompiler.vb (3)
69Public Overloads Function CreateCompilation(consoleOutput As TextWriter, touchedFilesLogger As TouchedFileLogger, errorLogger As ErrorLogger, syntaxTreeDiagnosticOptionsOpt As ImmutableArray(Of AnalyzerConfigOptionsResult)) As Compilation 73Public Overrides Function CreateCompilation(consoleOutput As TextWriter, touchedFilesLogger As TouchedFileLogger, errorLogger As ErrorLogger, syntaxTreeDiagnosticOptionsOpt As ImmutableArray(Of AnalyzerConfigOptionsResult), globalConfigOptions As AnalyzerConfigOptionsResult) As Compilation
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\AnalyzerConfigData.cs (1)
26public AnalyzerConfigData(AnalyzerConfigOptionsResult result, StructuredAnalyzerConfigOptions fallbackOptions)
Workspace\Solution\SolutionInfo.cs (1)
47/// Per-language analyzer config options that are used as a fallback if the option is not present in <see cref="AnalyzerConfigOptionsResult"/> produced by the compiler.