3 types derived from AnalyzerConfigOptionsProvider
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\CompilerAnalyzerConfigOptionsProvider.cs (1)
9internal sealed class CompilerAnalyzerConfigOptionsProvider : AnalyzerConfigOptionsProvider
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueTestAnalyzerConfigOptionsProvider.cs (1)
10internal class EditAndContinueTestAnalyzerConfigOptionsProvider : AnalyzerConfigOptionsProvider
System.Windows.Forms.Analyzers.CSharp.Tests (1)
CompilerAnalyzerConfigOptionsProvider.cs (1)
14internal sealed class CompilerAnalyzerConfigOptionsProvider : AnalyzerConfigOptionsProvider
59 references to AnalyzerConfigOptionsProvider
Microsoft.Analyzers.Extra.Tests (1)
Resources\RoslynTestUtils.cs (1)
178AnalyzerConfigOptionsProvider? optionsProvider = null,
Microsoft.Analyzers.Local.Tests (1)
Resources\RoslynTestUtils.cs (1)
178AnalyzerConfigOptionsProvider? optionsProvider = null,
Microsoft.CodeAnalysis (17)
CommandLine\CommonCompiler.cs (3)
818AnalyzerConfigOptionsProvider analyzerConfigOptionsProvider, 877private protected abstract GeneratorDriver CreateGeneratorDriver(string baseDirectory, ParseOptions parseOptions, ImmutableArray<ISourceGenerator> generators, AnalyzerConfigOptionsProvider analyzerConfigOptionsProvider, ImmutableArray<AdditionalText> additionalTexts); 1545AnalyzerConfigOptionsProvider analyzerConfigOptionsProvider)
DiagnosticAnalyzer\AnalyzerOptions.cs (2)
27public AnalyzerConfigOptionsProvider AnalyzerConfigOptionsProvider { get; } 34public AnalyzerOptions(ImmutableArray<AdditionalText> additionalFiles, AnalyzerConfigOptionsProvider optionsProvider)
SourceGeneration\GeneratorAdaptor.cs (1)
83public Diagnostics.AnalyzerConfigOptionsProvider? ConfigOptions;
SourceGeneration\GeneratorContexts.cs (2)
24internal GeneratorExecutionContext(Compilation compilation, ParseOptions parseOptions, ImmutableArray<AdditionalText> additionalTexts, AnalyzerConfigOptionsProvider optionsProvider, ISyntaxContextReceiver? syntaxReceiver, string sourceExtension, CancellationToken cancellationToken = default) 60public AnalyzerConfigOptionsProvider AnalyzerConfigOptions { get; }
SourceGeneration\GeneratorDriver.cs (2)
37internal GeneratorDriver(ParseOptions parseOptions, ImmutableArray<ISourceGenerator> generators, AnalyzerConfigOptionsProvider optionsProvider, ImmutableArray<AdditionalText> additionalTexts, GeneratorDriverOptions driverOptions) 168public GeneratorDriver WithUpdatedAnalyzerConfigOptions(AnalyzerConfigOptionsProvider newOptions) => newOptions is object
SourceGeneration\GeneratorDriverState.cs (3)
15AnalyzerConfigOptionsProvider optionsProvider, 76internal readonly AnalyzerConfigOptionsProvider OptionsProvider; 113AnalyzerConfigOptionsProvider? optionsProvider = null,
SourceGeneration\IncrementalContexts.cs (2)
64public IncrementalValueProvider<AnalyzerConfigOptionsProvider> AnalyzerConfigOptionsProvider => new IncrementalValueProvider<AnalyzerConfigOptionsProvider>(SharedInputNodes.AnalyzerConfigOptions.WithRegisterOutput(RegisterOutput).WithTrackingName(WellKnownGeneratorInputs.AnalyzerConfigOptions), CatchAnalyzerExceptions);
SourceGeneration\Nodes\SharedInputNodes.cs (2)
28public static readonly InputNode<AnalyzerConfigOptionsProvider> AnalyzerConfigOptions = new InputNode<AnalyzerConfigOptionsProvider>(b => ImmutableArray.Create(b.DriverState.OptionsProvider));
Microsoft.CodeAnalysis.CSharp (6)
CommandLine\CSharpCompiler.cs (1)
376private protected override GeneratorDriver CreateGeneratorDriver(string baseDirectory, ParseOptions parseOptions, ImmutableArray<ISourceGenerator> generators, AnalyzerConfigOptionsProvider analyzerConfigOptionsProvider, ImmutableArray<AdditionalText> additionalTexts)
SourceGeneration\CSharpGeneratorDriver.cs (5)
25/// <param name="optionsProvider">An <see cref="AnalyzerConfigOptionsProvider"/> that can be used to retrieve analyzer config values by the generators in this driver.</param> 27internal CSharpGeneratorDriver(CSharpParseOptions parseOptions, ImmutableArray<ISourceGenerator> generators, AnalyzerConfigOptionsProvider optionsProvider, ImmutableArray<AdditionalText> additionalTexts, GeneratorDriverOptions driverOptions) 59/// <param name="optionsProvider">An <see cref="AnalyzerConfigOptionsProvider"/> that can be used to retrieve analyzer config values by the generators in this driver, or <c>null</c> if there are none.</param> 62public static CSharpGeneratorDriver Create(IEnumerable<ISourceGenerator> generators, IEnumerable<AdditionalText>? additionalTexts = null, CSharpParseOptions? parseOptions = null, AnalyzerConfigOptionsProvider? optionsProvider = null, GeneratorDriverOptions driverOptions = default) 67public static CSharpGeneratorDriver Create(IEnumerable<ISourceGenerator> generators, IEnumerable<AdditionalText>? additionalTexts, CSharpParseOptions? parseOptions, AnalyzerConfigOptionsProvider? optionsProvider)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
SourceGeneration\GeneratorDriverTests.cs (2)
857AnalyzerConfigOptionsProvider? passedIn = null; 3929IncrementalValueProvider<AnalyzerConfigOptionsProvider> configOptionsProvider = default;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
MockCSharpCompiler.cs (1)
96AnalyzerConfigOptionsProvider analyzerConfigOptionsProvider)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Workspace\LanguageServices\CSharpCompilationFactoryService.cs (1)
56GeneratorDriver ICompilationFactoryService.CreateGeneratorDriver(ParseOptions parseOptions, ImmutableArray<ISourceGenerator> generators, AnalyzerConfigOptionsProvider optionsProvider, ImmutableArray<AdditionalText> additionalTexts, string? generatedFilesBaseDirectory)
Microsoft.CodeAnalysis.VisualBasic (4)
CommandLine\VisualBasicCompiler.vb (1)
300Private Protected Overrides Function CreateGeneratorDriver(baseDirectory As String, parseOptions As ParseOptions, generators As ImmutableArray(Of ISourceGenerator), analyzerConfigOptionsProvider As AnalyzerConfigOptionsProvider, additionalTexts As ImmutableArray(Of AdditionalText)) As GeneratorDriver
SourceGeneration\VisualBasicGeneratorDriver.vb (3)
22Friend Sub New(parseOptions As VisualBasicParseOptions, generators As ImmutableArray(Of ISourceGenerator), optionsProvider As AnalyzerConfigOptionsProvider, additionalTexts As ImmutableArray(Of AdditionalText), driverOptions As GeneratorDriverOptions) 40Public Shared Function Create(generators As ImmutableArray(Of ISourceGenerator), Optional additionalTexts As ImmutableArray(Of AdditionalText) = Nothing, Optional parseOptions As VisualBasicParseOptions = Nothing, Optional analyzerConfigOptionsProvider As AnalyzerConfigOptionsProvider = Nothing, Optional driverOptions As GeneratorDriverOptions = Nothing) As VisualBasicGeneratorDriver 46Public Shared Function Create(generators As ImmutableArray(Of ISourceGenerator), additionalTexts As ImmutableArray(Of AdditionalText), parseOptions As VisualBasicParseOptions, analyzerConfigOptionsProvider As AnalyzerConfigOptionsProvider) As VisualBasicGeneratorDriver
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
MockVisualBasicCompiler.vb (1)
85analyzerConfigOptionsProvider As AnalyzerConfigOptionsProvider) As AnalyzerOptions
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Workspace\LanguageServices\VisualBasicCompilationFactoryService.vb (1)
66optionsProvider As AnalyzerConfigOptionsProvider,
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\Host\CompilationFactory\ICompilationFactoryService.cs (1)
18GeneratorDriver CreateGeneratorDriver(ParseOptions parseOptions, ImmutableArray<ISourceGenerator> generators, AnalyzerConfigOptionsProvider optionsProvider, ImmutableArray<AdditionalText> additionalTexts, string? generatedFilesBaseDirectory);
Workspace\Solution\ProjectState.cs (2)
362internal sealed class ProjectAnalyzerConfigOptionsProvider(ProjectState projectState) : AnalyzerConfigOptionsProvider 432internal sealed class ProjectHostAnalyzerConfigOptionsProvider(ProjectState projectState) : AnalyzerConfigOptionsProvider
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Host\LanguageServices\TestCSharpCompilationFactoryServiceWithIncrementalGeneratorTracking.cs (1)
58GeneratorDriver ICompilationFactoryService.CreateGeneratorDriver(ParseOptions parseOptions, ImmutableArray<ISourceGenerator> generators, AnalyzerConfigOptionsProvider optionsProvider, ImmutableArray<AdditionalText> additionalTexts, string? generatedFilesBaseDirectory)
Microsoft.Gen.ComplianceReports.Unit.Tests (3)
GeneratorTests.cs (1)
199private sealed class OptionsProvider(Dictionary<string, string>? analyzerOptions) : AnalyzerConfigOptionsProvider
test\Generators\Shared\RoslynTestUtils.cs (2)
248AnalyzerConfigOptionsProvider? optionsProvider = null, 263AnalyzerConfigOptionsProvider? optionsProvider = null,
Microsoft.Gen.ContextualOptions.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
248AnalyzerConfigOptionsProvider? optionsProvider = null, 263AnalyzerConfigOptionsProvider? optionsProvider = null,
Microsoft.Gen.Logging.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
248AnalyzerConfigOptionsProvider? optionsProvider = null, 263AnalyzerConfigOptionsProvider? optionsProvider = null,
Microsoft.Gen.Metrics.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
248AnalyzerConfigOptionsProvider? optionsProvider = null, 263AnalyzerConfigOptionsProvider? optionsProvider = null,
Microsoft.Gen.MetricsReports.Unit.Tests (3)
GeneratorTests.cs (1)
189private sealed class OptionsProvider(Dictionary<string, string>? analyzerOptions) : AnalyzerConfigOptionsProvider
test\Generators\Shared\RoslynTestUtils.cs (2)
248AnalyzerConfigOptionsProvider? optionsProvider = null, 263AnalyzerConfigOptionsProvider? optionsProvider = null,
System.Windows.Forms.Analyzers (1)
System\Windows\Forms\Analyzers\AnalyzerConfigOptionsProviderExtensions.cs (1)
17public static bool GetMSBuildProperty(this AnalyzerConfigOptionsProvider analyzerConfigOptions, string name, out string? value)
System.Windows.Forms.Analyzers.CSharp (4)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ProjectFileReader.cs (4)
14public static IncrementalValueProvider<(ApplicationConfig? ApplicationConfig, Diagnostic? Diagnostic)> ReadApplicationConfig(IncrementalValueProvider<AnalyzerConfigOptionsProvider> configOptionsProvider) => 39private static bool TryReadBool(AnalyzerConfigOptionsProvider configOptions, string propertyName, bool defaultValue, out bool value, out Diagnostic? diagnostic) 65private static bool TryReadFont(AnalyzerConfigOptionsProvider configOptions, out FontDescriptor? font, out Diagnostic? diagnostic) 99private static bool TryReadHighDpiMode(AnalyzerConfigOptionsProvider configOptions, out HighDpiMode highDpiMode, out Diagnostic? diagnostic)
System.Windows.Forms.Analyzers.CSharp.Tests (3)
Generators\ProjectFileReaderTests.cs (3)
21private static bool TryReadBool(AnalyzerConfigOptionsProvider configOptions, string propertyName, bool defaultValue, out bool value, out Diagnostic? diagnostic) 24private static bool TryReadFont(AnalyzerConfigOptionsProvider configOptions, out FontDescriptor? font, out Diagnostic? diagnostic) 27private static bool TryReadHighDpiMode(AnalyzerConfigOptionsProvider configOptions, out HighDpiMode highDpiMode, out Diagnostic? diagnostic)