3 types derived from SyntaxTreeOptionsProvider
Microsoft.CodeAnalysis (1)
Compilation\SyntaxTreeOptionsProvider.cs (1)
29internal sealed class CompilerSyntaxTreeOptionsProvider : SyntaxTreeOptionsProvider
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
4263private sealed class CancellingSyntaxTreeOptionsProvider : SyntaxTreeOptionsProvider
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\TestSyntaxTreeOptionsProvider.cs (1)
13public sealed class TestSyntaxTreeOptionsProvider : SyntaxTreeOptionsProvider
40 references to SyntaxTreeOptionsProvider
BuildActionTelemetryTable (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (2)
148(SyntaxTreeOptionsProvider provider, SyntaxTree tree)? providerAndTree = null) 156var provider = providerAndTree.Value.provider;
Microsoft.CodeAnalysis (9)
Compilation\CompilationOptions.cs (4)
200public SyntaxTreeOptionsProvider? SyntaxTreeOptionsProvider { get; protected set; } 290SyntaxTreeOptionsProvider? syntaxTreeOptionsProvider, 466public CompilationOptions WithSyntaxTreeOptionsProvider(SyntaxTreeOptionsProvider? provider) 536protected abstract CompilationOptions CommonWithSyntaxTreeOptionsProvider(SyntaxTreeOptionsProvider? resolver);
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
1355private bool IsAnalyzerSuppressedForTree(DiagnosticAnalyzer analyzer, SyntaxTree tree, SyntaxTreeOptionsProvider? options, CancellationToken cancellationToken) 1365private ImmutableHashSet<DiagnosticAnalyzer> ComputeSuppressedAnalyzersForTree(SyntaxTree tree, SyntaxTreeOptionsProvider? options, CancellationToken cancellationToken)
DiagnosticAnalyzer\AnalyzerExecutor.cs (3)
46private readonly Func<DiagnosticAnalyzer, SyntaxTree, SyntaxTreeOptionsProvider?, CancellationToken, bool> _isAnalyzerSuppressedForTree; 109Func<DiagnosticAnalyzer, SyntaxTree, SyntaxTreeOptionsProvider?, CancellationToken, bool> isAnalyzerSuppressedForTree, 141Func<DiagnosticAnalyzer, SyntaxTree, SyntaxTreeOptionsProvider?, CancellationToken, bool> isAnalyzerSuppressedForTree,
Microsoft.CodeAnalysis.CodeStyle (3)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
191var severityOptionsProvider = compilationOptions.SyntaxTreeOptionsProvider!;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (2)
148(SyntaxTreeOptionsProvider provider, SyntaxTree tree)? providerAndTree = null) 156var provider = providerAndTree.Value.provider;
Microsoft.CodeAnalysis.CSharp (6)
Compilation\CSharpDiagnosticFilter.cs (2)
41SyntaxTreeOptionsProvider? syntaxTreeOptions, 147SyntaxTreeOptionsProvider? syntaxTreeOptions,
CSharpCompilationOptions.cs (3)
209SyntaxTreeOptionsProvider? syntaxTreeOptionsProvider, 582public new CSharpCompilationOptions WithSyntaxTreeOptionsProvider(SyntaxTreeOptionsProvider? provider) 644protected override CompilationOptions CommonWithSyntaxTreeOptionsProvider(SyntaxTreeOptionsProvider? provider)
Syntax\CSharpSyntaxTree.cs (1)
722internal bool IsGeneratedCode(SyntaxTreeOptionsProvider? provider, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
306var compilerTreeOptions = comp.Options.SyntaxTreeOptionsProvider;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\CSharpCompilationOptionsTests.cs (1)
406SyntaxTreeOptionsProvider syntaxTreeOptionsProvider = null;
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
191var severityOptionsProvider = compilationOptions.SyntaxTreeOptionsProvider!;
Microsoft.CodeAnalysis.VisualBasic (5)
Compilation\VisualBasicDiagnosticFilter.vb (2)
33syntaxTreeOptions As SyntaxTreeOptionsProvider, 132syntaxTreeOptions As SyntaxTreeOptionsProvider,
VisualBasicCompilationOptions.vb (3)
243syntaxTreeOptionsProvider As SyntaxTreeOptionsProvider, 949Public Shadows Function WithSyntaxTreeOptionsProvider(provider As SyntaxTreeOptionsProvider) As VisualBasicCompilationOptions 1011Protected Overrides Function CommonWithSyntaxTreeOptionsProvider(provider As SyntaxTreeOptionsProvider) As CompilationOptions
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (2)
148(SyntaxTreeOptionsProvider provider, SyntaxTree tree)? providerAndTree = null) 156var provider = providerAndTree.Value.provider;
Workspace\Solution\ProjectState.cs (1)
559private sealed class ProjectSyntaxTreeOptionsProvider(AnalyzerConfigOptionsCache lazyAnalyzerConfigSet) : SyntaxTreeOptionsProvider
Microsoft.CodeAnalysis.Workspaces.UnitTests (9)
SolutionTests\SolutionTests.cs (9)
339var provider = compilation.Options.SyntaxTreeOptionsProvider!; 1742var originalSyntaxTreeOptionsProvider = solution.Projects.Single().CompilationOptions!.SyntaxTreeOptionsProvider; 1752var newSyntaxTreeOptionsProvider = solution.Projects.Single().CompilationOptions!.SyntaxTreeOptionsProvider; 4698var provider = project.CompilationOptions.SyntaxTreeOptionsProvider; 4727var provider = project.CompilationOptions.SyntaxTreeOptionsProvider; 4767var provider = project.CompilationOptions.SyntaxTreeOptionsProvider; 4801var originalProvider = solution.GetProject(projectId).CompilationOptions.SyntaxTreeOptionsProvider; 4812var newProvider = solution.GetProject(projectId).CompilationOptions.SyntaxTreeOptionsProvider; 4817var finalProvider = solution.GetProject(projectId).CompilationOptions.SyntaxTreeOptionsProvider;