SyntaxFactory.ParseSyntaxTree メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
ParseSyntaxTree(SourceText, ParseOptions, String, CancellationToken) |
ソース テキストを解析して構文ツリーを生成します。 |
ParseSyntaxTree(SourceText, ParseOptions, String, ImmutableDictionary<String,ReportDiagnostic>, CancellationToken) |
古い.
ソース テキストを解析して構文ツリーを生成します。 |
ParseSyntaxTree(String, ParseOptions, String, Encoding, CancellationToken) |
ソース テキストを解析して構文ツリーを生成します。 |
ParseSyntaxTree(SourceText, ParseOptions, String, ImmutableDictionary<String,ReportDiagnostic>, Nullable<Boolean>, CancellationToken) |
古い.
ソース テキストを解析して構文ツリーを生成します。 |
ParseSyntaxTree(String, ParseOptions, String, Encoding, ImmutableDictionary<String,ReportDiagnostic>, CancellationToken) |
古い.
ソース テキストを解析して構文ツリーを生成します。 |
ParseSyntaxTree(String, ParseOptions, String, Encoding, ImmutableDictionary<String,ReportDiagnostic>, Nullable<Boolean>, CancellationToken) |
古い.
ソース テキストを解析して構文ツリーを生成します。 |
ParseSyntaxTree(SourceText, ParseOptions, String, CancellationToken)
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
ソース テキストを解析して構文ツリーを生成します。
public static Microsoft.CodeAnalysis.SyntaxTree ParseSyntaxTree (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.ParseOptions options = default, string path = "", System.Threading.CancellationToken cancellationToken = default);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static Microsoft.CodeAnalysis.SyntaxTree ParseSyntaxTree (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.ParseOptions options, string path, System.Threading.CancellationToken cancellationToken);
public static Microsoft.CodeAnalysis.SyntaxTree ParseSyntaxTree (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.ParseOptions? options = default, string path = "", System.Threading.CancellationToken cancellationToken = default);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static Microsoft.CodeAnalysis.SyntaxTree ParseSyntaxTree (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.ParseOptions? options, string path, System.Threading.CancellationToken cancellationToken);
static member ParseSyntaxTree : Microsoft.CodeAnalysis.Text.SourceText * Microsoft.CodeAnalysis.ParseOptions * string * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxTree
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
static member ParseSyntaxTree : Microsoft.CodeAnalysis.Text.SourceText * Microsoft.CodeAnalysis.ParseOptions * string * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxTree
Public Shared Function ParseSyntaxTree (text As SourceText, Optional options As ParseOptions = Nothing, Optional path As String = "", Optional cancellationToken As CancellationToken = Nothing) As SyntaxTree
Public Shared Function ParseSyntaxTree (text As SourceText, options As ParseOptions, path As String, cancellationToken As CancellationToken) As SyntaxTree
パラメーター
- text
- SourceText
- options
- ParseOptions
- path
- String
- cancellationToken
- CancellationToken
戻り値
- 属性
適用対象
ParseSyntaxTree(SourceText, ParseOptions, String, ImmutableDictionary<String,ReportDiagnostic>, CancellationToken)
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
注意事項
The diagnosticOptions parameter is obsolete due to performance problems, if you are passing non-null use CompilationOptions.SyntaxTreeOptionsProvider instead
ソース テキストを解析して構文ツリーを生成します。
public static Microsoft.CodeAnalysis.SyntaxTree ParseSyntaxTree (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.ParseOptions 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 ParseSyntaxTree (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.ParseOptions? 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 ParseSyntaxTree (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.ParseOptions 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 ParseSyntaxTree (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.ParseOptions? options, string path, System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic>? diagnosticOptions, System.Threading.CancellationToken cancellationToken);
static member ParseSyntaxTree : Microsoft.CodeAnalysis.Text.SourceText * Microsoft.CodeAnalysis.ParseOptions * 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 ParseSyntaxTree : Microsoft.CodeAnalysis.Text.SourceText * Microsoft.CodeAnalysis.ParseOptions * string * System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxTree
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
static member ParseSyntaxTree : Microsoft.CodeAnalysis.Text.SourceText * Microsoft.CodeAnalysis.ParseOptions * string * System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxTree
Public Shared Function ParseSyntaxTree (text As SourceText, Optional options As ParseOptions = Nothing, Optional path As String = "", Optional diagnosticOptions As ImmutableDictionary(Of String, ReportDiagnostic) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As SyntaxTree
Public Shared Function ParseSyntaxTree (text As SourceText, options As ParseOptions, path As String, diagnosticOptions As ImmutableDictionary(Of String, ReportDiagnostic), cancellationToken As CancellationToken) As SyntaxTree
パラメーター
- text
- SourceText
- options
- ParseOptions
- path
- String
- diagnosticOptions
- ImmutableDictionary<String,ReportDiagnostic>
- cancellationToken
- CancellationToken
戻り値
- 属性
適用対象
ParseSyntaxTree(String, ParseOptions, String, Encoding, CancellationToken)
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
ソース テキストを解析して構文ツリーを生成します。
public static Microsoft.CodeAnalysis.SyntaxTree ParseSyntaxTree (string text, Microsoft.CodeAnalysis.ParseOptions 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 ParseSyntaxTree (string text, Microsoft.CodeAnalysis.ParseOptions options, string path, System.Text.Encoding encoding, System.Threading.CancellationToken cancellationToken);
public static Microsoft.CodeAnalysis.SyntaxTree ParseSyntaxTree (string text, Microsoft.CodeAnalysis.ParseOptions? 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 ParseSyntaxTree (string text, Microsoft.CodeAnalysis.ParseOptions? options, string path, System.Text.Encoding? encoding, System.Threading.CancellationToken cancellationToken);
static member ParseSyntaxTree : string * Microsoft.CodeAnalysis.ParseOptions * string * System.Text.Encoding * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxTree
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
static member ParseSyntaxTree : string * Microsoft.CodeAnalysis.ParseOptions * string * System.Text.Encoding * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxTree
Public Shared Function ParseSyntaxTree (text As String, Optional options As ParseOptions = Nothing, Optional path As String = "", Optional encoding As Encoding = Nothing, Optional cancellationToken As CancellationToken = Nothing) As SyntaxTree
Public Shared Function ParseSyntaxTree (text As String, options As ParseOptions, path As String, encoding As Encoding, cancellationToken As CancellationToken) As SyntaxTree
パラメーター
- text
- String
- options
- ParseOptions
- path
- String
- encoding
- Encoding
- cancellationToken
- CancellationToken
戻り値
- 属性
適用対象
ParseSyntaxTree(SourceText, ParseOptions, String, ImmutableDictionary<String,ReportDiagnostic>, Nullable<Boolean>, CancellationToken)
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
注意事項
The diagnosticOptions and isGeneratedCode parameters are obsolete due to performance problems, if you are using them use CompilationOptions.SyntaxTreeOptionsProvider instead
ソース テキストを解析して構文ツリーを生成します。
[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 ParseSyntaxTree (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.ParseOptions? options, string path, System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic>? diagnosticOptions, bool? isGeneratedCode, System.Threading.CancellationToken cancellationToken);
public static Microsoft.CodeAnalysis.SyntaxTree ParseSyntaxTree (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.ParseOptions 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 ParseSyntaxTree (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.ParseOptions? options = default, string path = "", System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic>? diagnosticOptions = default, bool? isGeneratedCode = default, System.Threading.CancellationToken cancellationToken = default);
static member ParseSyntaxTree : Microsoft.CodeAnalysis.Text.SourceText * Microsoft.CodeAnalysis.ParseOptions * 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 ParseSyntaxTree : Microsoft.CodeAnalysis.Text.SourceText * Microsoft.CodeAnalysis.ParseOptions * string * System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> * Nullable<bool> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxTree
Public Shared Function ParseSyntaxTree (text As SourceText, options As ParseOptions, path As String, diagnosticOptions As ImmutableDictionary(Of String, ReportDiagnostic), isGeneratedCode As Nullable(Of Boolean), cancellationToken As CancellationToken) As SyntaxTree
Public Shared Function ParseSyntaxTree (text As SourceText, Optional options As ParseOptions = 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
パラメーター
- text
- SourceText
- options
- ParseOptions
- path
- String
- diagnosticOptions
- ImmutableDictionary<String,ReportDiagnostic>
- cancellationToken
- CancellationToken
戻り値
- 属性
適用対象
ParseSyntaxTree(String, ParseOptions, String, Encoding, ImmutableDictionary<String,ReportDiagnostic>, CancellationToken)
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
注意事項
The diagnosticOptions parameter is obsolete due to performance problems, if you are passing non-null use CompilationOptions.SyntaxTreeOptionsProvider instead
ソース テキストを解析して構文ツリーを生成します。
public static Microsoft.CodeAnalysis.SyntaxTree ParseSyntaxTree (string text, Microsoft.CodeAnalysis.ParseOptions 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 ParseSyntaxTree (string text, Microsoft.CodeAnalysis.ParseOptions? 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 ParseSyntaxTree (string text, Microsoft.CodeAnalysis.ParseOptions 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 ParseSyntaxTree (string text, Microsoft.CodeAnalysis.ParseOptions? options, string path, System.Text.Encoding? encoding, System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic>? diagnosticOptions, System.Threading.CancellationToken cancellationToken);
static member ParseSyntaxTree : string * Microsoft.CodeAnalysis.ParseOptions * 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 ParseSyntaxTree : string * Microsoft.CodeAnalysis.ParseOptions * 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 ParseSyntaxTree : string * Microsoft.CodeAnalysis.ParseOptions * string * System.Text.Encoding * System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxTree
Public Shared Function ParseSyntaxTree (text As String, Optional options As ParseOptions = 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 ParseSyntaxTree (text As String, options As ParseOptions, path As String, encoding As Encoding, diagnosticOptions As ImmutableDictionary(Of String, ReportDiagnostic), cancellationToken As CancellationToken) As SyntaxTree
パラメーター
- text
- String
- options
- ParseOptions
- path
- String
- encoding
- Encoding
- diagnosticOptions
- ImmutableDictionary<String,ReportDiagnostic>
- cancellationToken
- CancellationToken
戻り値
- 属性
適用対象
ParseSyntaxTree(String, ParseOptions, String, Encoding, ImmutableDictionary<String,ReportDiagnostic>, Nullable<Boolean>, CancellationToken)
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
注意事項
The diagnosticOptions and isGeneratedCode parameters are obsolete due to performance problems, if you are using them use CompilationOptions.SyntaxTreeOptionsProvider instead
ソース テキストを解析して構文ツリーを生成します。
[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 ParseSyntaxTree (string text, Microsoft.CodeAnalysis.ParseOptions? 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 ParseSyntaxTree (string text, Microsoft.CodeAnalysis.ParseOptions 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 ParseSyntaxTree (string text, Microsoft.CodeAnalysis.ParseOptions? 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 ParseSyntaxTree : string * Microsoft.CodeAnalysis.ParseOptions * 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 ParseSyntaxTree : string * Microsoft.CodeAnalysis.ParseOptions * string * System.Text.Encoding * System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> * Nullable<bool> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxTree
Public Shared Function ParseSyntaxTree (text As String, options As ParseOptions, 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 ParseSyntaxTree (text As String, Optional options As ParseOptions = 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
パラメーター
- text
- String
- options
- ParseOptions
- path
- String
- encoding
- Encoding
- diagnosticOptions
- ImmutableDictionary<String,ReportDiagnostic>
- cancellationToken
- CancellationToken
戻り値
- 属性
適用対象
.NET