- SyntaxTreeAnalysisContext - SyntaxTreeAnalysisContext(SyntaxTree, AnalyzerOptions, Action<Diagnostic>, Func<Diagnostic, Boolean>, CancellationToken) 
- CancellationToken 
- FilterSpan 
- IsGeneratedCode 
- Options 
- Tree 
- ReportDiagnostic(Diagnostic) 
 
net9.0
    namespace Microsoft.CodeAnalysis.Diagnostics
{
    public readonly struct SyntaxTreeAnalysisContext
    {
        [Obsolete("Use CompilationWithAnalyzers instead. See https://github.com/dotnet/roslyn/issues/63440 for more details.")]
        public SyntaxTreeAnalysisContext(SyntaxTree! tree, AnalyzerOptions! options, Action<Diagnostic!>! reportDiagnostic, Func<Diagnostic!, bool>! isSupportedDiagnostic, CancellationToken cancellationToken);
    }
}
            | nuget.org | 0.0 % Reference this API | 
|---|---|
| .NET | 5.06.07.08.09.010.0 | 
| .NET Core | 2.02.12.23.03.1 | 
| .NET Framework | 4.6.14.6.24.74.7.14.7.24.84.8.1 | 
| .NET Standard | 2.02.1 | 
| Information specific to net9.0 | |
| Assembly | Microsoft.CodeAnalysis , Version=4.13.0.0, PublicKeyToken=31bf3856ad364e35 | 
| Referencing | Your project needs a package reference to  | 
| Package | Microsoft.CodeAnalysis.Common (4.13.0) net9.0 | 
| Obsolete | Use CompilationWithAnalyzers instead. See https://github.com/dotnet/roslyn/issues/63440 for more details. | 
| Platform Restrictions | This API is supported on all platforms. | 
- Built-in API
- Package-provided API