net10.0
namespace Microsoft.CodeAnalysis.CSharp
{
    public abstract class CSharpSyntaxTree : SyntaxTree
    {
        [EditorBrowsable(EditorBrowsableState.Never)]
        [Obsolete("The diagnosticOptions parameter is obsolete due to performance problems, if you are passing non-null use CompilationOptions.SyntaxTreeOptionsProvider instead", false)]
        public static SyntaxTree! ParseText(SourceText! text, CSharpParseOptions? options, string! path, ImmutableDictionary<string!, ReportDiagnostic>? diagnosticOptions, CancellationToken cancellationToken);
    }
}
nuget.org
0.0 %
Reference this API
.NET
8.09.010.0
Information specific to net10.0
Assembly

Microsoft.CodeAnalysis.CSharp , Version=5.0.0.0, PublicKeyToken=31bf3856ad364e35

Referencing

Your project needs a package reference to Microsoft.CodeAnalysis.CSharp.

Package Microsoft.CodeAnalysis.CSharp (5.0.0) net9.0
Obsolete The diagnosticOptions parameter is obsolete due to performance problems, if you are passing non-null use CompilationOptions.SyntaxTreeOptionsProvider instead
Platform Restrictions

This API is supported on all platforms.

  • Built-in API
  • Package-provided API