CSharpSyntaxTree.ParseText Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ParseText(String, CSharpParseOptions, String, Encoding, ImmutableDictionary<String,ReportDiagnostic>, Nullable<Boolean>, CancellationToken) |
Obsolete.
Produces a syntax tree by parsing the source text. |
ParseText(String, CSharpParseOptions, String, Encoding, ImmutableDictionary<String,ReportDiagnostic>, CancellationToken) |
Obsolete.
Produces a syntax tree by parsing the source text. |
ParseText(SourceText, CSharpParseOptions, String, ImmutableDictionary<String,ReportDiagnostic>, Nullable<Boolean>, CancellationToken) |
Obsolete.
Produces a syntax tree by parsing the source text. |
ParseText(SourceText, CSharpParseOptions, String, CancellationToken) |
Produces a syntax tree by parsing the source text. |
ParseText(SourceText, CSharpParseOptions, String, ImmutableDictionary<String,ReportDiagnostic>, CancellationToken) |
Obsolete.
Produces a syntax tree by parsing the source text. |
ParseText(String, CSharpParseOptions, String, Encoding, CancellationToken) |
Produces a syntax tree by parsing the source text. |
ParseText(String, CSharpParseOptions, String, Encoding, ImmutableDictionary<String,ReportDiagnostic>, Nullable<Boolean>, CancellationToken)
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
Caution
The diagnosticOptions and isGeneratedCode parameters are obsolete due to performance problems, if you are using them use CompilationOptions.SyntaxTreeOptionsProvider instead
Produces a syntax tree by parsing the source text.
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("The diagnosticOptions and isGeneratedCode parameters are obsolete due to performance problems, if you are using them use CompilationOptions.SyntaxTreeOptionsProvider instead", false)]
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (string text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions? options, string path, System.Text.Encoding? encoding, System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic>? diagnosticOptions, bool? isGeneratedCode, System.Threading.CancellationToken cancellationToken);
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (string text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions options = default, string path = "", System.Text.Encoding encoding = default, System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic> diagnosticOptions = default, bool? isGeneratedCode = default, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (string text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions? options = default, string path = "", System.Text.Encoding? encoding = default, System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic>? diagnosticOptions = default, bool? isGeneratedCode = default, System.Threading.CancellationToken cancellationToken = default);
static member ParseText : string * Microsoft.CodeAnalysis.CSharp.CSharpParseOptions * string * System.Text.Encoding * System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> * Nullable<bool> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxTree
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
[<System.Obsolete("The diagnosticOptions and isGeneratedCode parameters are obsolete due to performance problems, if you are using them use CompilationOptions.SyntaxTreeOptionsProvider instead", false)>]
static member ParseText : string * Microsoft.CodeAnalysis.CSharp.CSharpParseOptions * string * System.Text.Encoding * System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> * Nullable<bool> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxTree
Public Shared Function ParseText (text As String, options As CSharpParseOptions, path As String, encoding As Encoding, diagnosticOptions As ImmutableDictionary(Of String, ReportDiagnostic), isGeneratedCode As Nullable(Of Boolean), cancellationToken As CancellationToken) As SyntaxTree
Public Shared Function ParseText (text As String, Optional options As CSharpParseOptions = Nothing, Optional path As String = "", Optional encoding As Encoding = Nothing, Optional diagnosticOptions As ImmutableDictionary(Of String, ReportDiagnostic) = Nothing, Optional isGeneratedCode As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As SyntaxTree
Parameters
- text
- String
- options
- CSharpParseOptions
- path
- String
- encoding
- Encoding
- diagnosticOptions
- ImmutableDictionary<String,ReportDiagnostic>
An obsolete parameter. Diagnostic options should now be passed with SyntaxTreeOptionsProvider
- cancellationToken
- CancellationToken
Returns
- Attributes
Applies to
ParseText(String, CSharpParseOptions, String, Encoding, ImmutableDictionary<String,ReportDiagnostic>, CancellationToken)
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
Caution
The diagnosticOptions parameter is obsolete due to performance problems, if you are passing non-null use CompilationOptions.SyntaxTreeOptionsProvider instead
Produces a syntax tree by parsing the source text.
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (string text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions options = default, string path = "", System.Text.Encoding encoding = default, System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic> diagnosticOptions = default, System.Threading.CancellationToken cancellationToken = default);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("The diagnosticOptions parameter is obsolete due to performance problems, if you are passing non-null use CompilationOptions.SyntaxTreeOptionsProvider instead", false)]
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (string text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions? options, string path, System.Text.Encoding? encoding, System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic>? diagnosticOptions, System.Threading.CancellationToken cancellationToken);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (string text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions options, string path, System.Text.Encoding encoding, System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic> diagnosticOptions, System.Threading.CancellationToken cancellationToken);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (string text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions? options, string path, System.Text.Encoding? encoding, System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic>? diagnosticOptions, System.Threading.CancellationToken cancellationToken);
static member ParseText : string * Microsoft.CodeAnalysis.CSharp.CSharpParseOptions * string * System.Text.Encoding * System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxTree
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
[<System.Obsolete("The diagnosticOptions parameter is obsolete due to performance problems, if you are passing non-null use CompilationOptions.SyntaxTreeOptionsProvider instead", false)>]
static member ParseText : string * Microsoft.CodeAnalysis.CSharp.CSharpParseOptions * string * System.Text.Encoding * System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxTree
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
static member ParseText : string * Microsoft.CodeAnalysis.CSharp.CSharpParseOptions * string * System.Text.Encoding * System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxTree
Public Shared Function ParseText (text As String, Optional options As CSharpParseOptions = Nothing, Optional path As String = "", Optional encoding As Encoding = Nothing, Optional diagnosticOptions As ImmutableDictionary(Of String, ReportDiagnostic) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As SyntaxTree
Public Shared Function ParseText (text As String, options As CSharpParseOptions, path As String, encoding As Encoding, diagnosticOptions As ImmutableDictionary(Of String, ReportDiagnostic), cancellationToken As CancellationToken) As SyntaxTree
Parameters
- text
- String
- options
- CSharpParseOptions
- path
- String
- encoding
- Encoding
- diagnosticOptions
- ImmutableDictionary<String,ReportDiagnostic>
- cancellationToken
- CancellationToken
Returns
- Attributes
Applies to
ParseText(SourceText, CSharpParseOptions, String, ImmutableDictionary<String,ReportDiagnostic>, Nullable<Boolean>, CancellationToken)
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
Caution
The diagnosticOptions and isGeneratedCode parameters are obsolete due to performance problems, if you are using them use CompilationOptions.SyntaxTreeOptionsProvider instead
Produces a syntax tree by parsing the source text.
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("The diagnosticOptions and isGeneratedCode parameters are obsolete due to performance problems, if you are using them use CompilationOptions.SyntaxTreeOptionsProvider instead", false)]
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions? options, string path, System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic>? diagnosticOptions, bool? isGeneratedCode, System.Threading.CancellationToken cancellationToken);
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions options = default, string path = "", System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic> diagnosticOptions = default, bool? isGeneratedCode = default, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions? options = default, string path = "", System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic>? diagnosticOptions = default, bool? isGeneratedCode = default, System.Threading.CancellationToken cancellationToken = default);
static member ParseText : Microsoft.CodeAnalysis.Text.SourceText * Microsoft.CodeAnalysis.CSharp.CSharpParseOptions * string * System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> * Nullable<bool> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxTree
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
[<System.Obsolete("The diagnosticOptions and isGeneratedCode parameters are obsolete due to performance problems, if you are using them use CompilationOptions.SyntaxTreeOptionsProvider instead", false)>]
static member ParseText : Microsoft.CodeAnalysis.Text.SourceText * Microsoft.CodeAnalysis.CSharp.CSharpParseOptions * string * System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> * Nullable<bool> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxTree
Public Shared Function ParseText (text As SourceText, options As CSharpParseOptions, path As String, diagnosticOptions As ImmutableDictionary(Of String, ReportDiagnostic), isGeneratedCode As Nullable(Of Boolean), cancellationToken As CancellationToken) As SyntaxTree
Public Shared Function ParseText (text As SourceText, Optional options As CSharpParseOptions = Nothing, Optional path As String = "", Optional diagnosticOptions As ImmutableDictionary(Of String, ReportDiagnostic) = Nothing, Optional isGeneratedCode As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As SyntaxTree
Parameters
- text
- SourceText
- options
- CSharpParseOptions
- path
- String
- diagnosticOptions
- ImmutableDictionary<String,ReportDiagnostic>
An obsolete parameter. Diagnostic options should now be passed with SyntaxTreeOptionsProvider
- cancellationToken
- CancellationToken
Returns
- Attributes
Applies to
ParseText(SourceText, CSharpParseOptions, String, CancellationToken)
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
Produces a syntax tree by parsing the source text.
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions options = default, string path = "", System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions options, string path, System.Threading.CancellationToken cancellationToken);
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions? options = default, string path = "", System.Threading.CancellationToken cancellationToken = default);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions options, string path, System.Threading.CancellationToken cancellationToken);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions? options, string path, System.Threading.CancellationToken cancellationToken);
static member ParseText : Microsoft.CodeAnalysis.Text.SourceText * Microsoft.CodeAnalysis.CSharp.CSharpParseOptions * string * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxTree
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
static member ParseText : Microsoft.CodeAnalysis.Text.SourceText * Microsoft.CodeAnalysis.CSharp.CSharpParseOptions * string * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxTree
Public Shared Function ParseText (text As SourceText, Optional options As CSharpParseOptions = Nothing, Optional path As String = "", Optional cancellationToken As CancellationToken = Nothing) As SyntaxTree
Public Shared Function ParseText (text As SourceText, options As CSharpParseOptions, path As String, cancellationToken As CancellationToken) As SyntaxTree
Parameters
- text
- SourceText
- options
- CSharpParseOptions
- path
- String
- cancellationToken
- CancellationToken
Returns
- Attributes
Applies to
ParseText(SourceText, CSharpParseOptions, String, ImmutableDictionary<String,ReportDiagnostic>, CancellationToken)
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
Caution
The diagnosticOptions parameter is obsolete due to performance problems, if you are passing non-null use CompilationOptions.SyntaxTreeOptionsProvider instead
Produces a syntax tree by parsing the source text.
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions options = default, string path = "", System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic> diagnosticOptions = default, System.Threading.CancellationToken cancellationToken = default);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("The diagnosticOptions parameter is obsolete due to performance problems, if you are passing non-null use CompilationOptions.SyntaxTreeOptionsProvider instead", false)]
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions? options, string path, System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic>? diagnosticOptions, System.Threading.CancellationToken cancellationToken);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions options, string path, System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic> diagnosticOptions, System.Threading.CancellationToken cancellationToken);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions? options, string path, System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic>? diagnosticOptions, System.Threading.CancellationToken cancellationToken);
static member ParseText : Microsoft.CodeAnalysis.Text.SourceText * Microsoft.CodeAnalysis.CSharp.CSharpParseOptions * string * System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxTree
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
[<System.Obsolete("The diagnosticOptions parameter is obsolete due to performance problems, if you are passing non-null use CompilationOptions.SyntaxTreeOptionsProvider instead", false)>]
static member ParseText : Microsoft.CodeAnalysis.Text.SourceText * Microsoft.CodeAnalysis.CSharp.CSharpParseOptions * string * System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxTree
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
static member ParseText : Microsoft.CodeAnalysis.Text.SourceText * Microsoft.CodeAnalysis.CSharp.CSharpParseOptions * string * System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxTree
Public Shared Function ParseText (text As SourceText, Optional options As CSharpParseOptions = Nothing, Optional path As String = "", Optional diagnosticOptions As ImmutableDictionary(Of String, ReportDiagnostic) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As SyntaxTree
Public Shared Function ParseText (text As SourceText, options As CSharpParseOptions, path As String, diagnosticOptions As ImmutableDictionary(Of String, ReportDiagnostic), cancellationToken As CancellationToken) As SyntaxTree
Parameters
- text
- SourceText
- options
- CSharpParseOptions
- path
- String
- diagnosticOptions
- ImmutableDictionary<String,ReportDiagnostic>
- cancellationToken
- CancellationToken
Returns
- Attributes
Applies to
ParseText(String, CSharpParseOptions, String, Encoding, CancellationToken)
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
- Source:
- CSharpSyntaxTree.cs
Produces a syntax tree by parsing the source text.
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (string text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions options = default, string path = "", System.Text.Encoding encoding = default, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (string text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions options, string path, System.Text.Encoding encoding, System.Threading.CancellationToken cancellationToken);
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (string text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions? options = default, string path = "", System.Text.Encoding? encoding = default, System.Threading.CancellationToken cancellationToken = default);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (string text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions options, string path, System.Text.Encoding encoding, System.Threading.CancellationToken cancellationToken);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static Microsoft.CodeAnalysis.SyntaxTree ParseText (string text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions? options, string path, System.Text.Encoding? encoding, System.Threading.CancellationToken cancellationToken);
static member ParseText : string * Microsoft.CodeAnalysis.CSharp.CSharpParseOptions * string * System.Text.Encoding * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxTree
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
static member ParseText : string * Microsoft.CodeAnalysis.CSharp.CSharpParseOptions * string * System.Text.Encoding * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxTree
Public Shared Function ParseText (text As String, Optional options As CSharpParseOptions = Nothing, Optional path As String = "", Optional encoding As Encoding = Nothing, Optional cancellationToken As CancellationToken = Nothing) As SyntaxTree
Public Shared Function ParseText (text As String, options As CSharpParseOptions, path As String, encoding As Encoding, cancellationToken As CancellationToken) As SyntaxTree
Parameters
- text
- String
- options
- CSharpParseOptions
- path
- String
- encoding
- Encoding
- cancellationToken
- CancellationToken
Returns
- Attributes