Freigeben über


CSharpSyntaxTree.Create Methode

Definition

Überlädt

Create(CSharpSyntaxNode, CSharpParseOptions, String, Encoding)

Erstellt eine neue Syntaxstruktur aus einem Syntaxknoten.

Create(CSharpSyntaxNode, CSharpParseOptions, String, Encoding, ImmutableDictionary<String,ReportDiagnostic>)
Veraltet.

Erstellt eine neue Syntaxstruktur aus einem Syntaxknoten.

Create(CSharpSyntaxNode, CSharpParseOptions, String, Encoding, ImmutableDictionary<String,ReportDiagnostic>, Nullable<Boolean>)
Veraltet.

Erstellt eine neue Syntaxstruktur aus einem Syntaxknoten.

Create(CSharpSyntaxNode, CSharpParseOptions, String, Encoding)

Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs

Erstellt eine neue Syntaxstruktur aus einem Syntaxknoten.

public static Microsoft.CodeAnalysis.SyntaxTree Create (Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode root, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions options = default, string path = "", System.Text.Encoding encoding = default);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static Microsoft.CodeAnalysis.SyntaxTree Create (Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode root, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions options, string path, System.Text.Encoding encoding);
public static Microsoft.CodeAnalysis.SyntaxTree Create (Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode root, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions? options = default, string path = "", System.Text.Encoding? encoding = default);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static Microsoft.CodeAnalysis.SyntaxTree Create (Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode root, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions? options, string path, System.Text.Encoding? encoding);
public static Microsoft.CodeAnalysis.SyntaxTree Create (Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode root, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions? options = default, string? path = "", System.Text.Encoding? encoding = default);
static member Create : Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode * Microsoft.CodeAnalysis.CSharp.CSharpParseOptions * string * System.Text.Encoding -> Microsoft.CodeAnalysis.SyntaxTree
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
static member Create : Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode * Microsoft.CodeAnalysis.CSharp.CSharpParseOptions * string * System.Text.Encoding -> Microsoft.CodeAnalysis.SyntaxTree
Public Shared Function Create (root As CSharpSyntaxNode, Optional options As CSharpParseOptions = Nothing, Optional path As String = "", Optional encoding As Encoding = Nothing) As SyntaxTree
Public Shared Function Create (root As CSharpSyntaxNode, options As CSharpParseOptions, path As String, encoding As Encoding) As SyntaxTree

Parameter

path
String
encoding
Encoding

Gibt zurück

Attribute

Gilt für:

Create(CSharpSyntaxNode, CSharpParseOptions, String, Encoding, ImmutableDictionary<String,ReportDiagnostic>)

Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs

Achtung

The diagnosticOptions parameter is obsolete due to performance problems, if you are passing non-null use CompilationOptions.SyntaxTreeOptionsProvider instead

Erstellt eine neue Syntaxstruktur aus einem Syntaxknoten.

public static Microsoft.CodeAnalysis.SyntaxTree Create (Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode root, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions options = default, string path = "", System.Text.Encoding encoding = default, System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic> diagnosticOptions = 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 Create (Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode root, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions? options, string path, System.Text.Encoding? encoding, System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic>? diagnosticOptions);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static Microsoft.CodeAnalysis.SyntaxTree Create (Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode root, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions options, string path, System.Text.Encoding encoding, System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic> diagnosticOptions);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static Microsoft.CodeAnalysis.SyntaxTree Create (Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode root, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions? options, string path, System.Text.Encoding? encoding, System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic>? diagnosticOptions);
[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 Create (Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode root, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions? options, string? path, System.Text.Encoding? encoding, System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic>? diagnosticOptions);
static member Create : Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode * Microsoft.CodeAnalysis.CSharp.CSharpParseOptions * string * System.Text.Encoding * System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> -> 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 Create : Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode * Microsoft.CodeAnalysis.CSharp.CSharpParseOptions * string * System.Text.Encoding * System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> -> Microsoft.CodeAnalysis.SyntaxTree
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
static member Create : Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode * Microsoft.CodeAnalysis.CSharp.CSharpParseOptions * string * System.Text.Encoding * System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> -> Microsoft.CodeAnalysis.SyntaxTree
Public Shared Function Create (root As CSharpSyntaxNode, Optional options As CSharpParseOptions = Nothing, Optional path As String = "", Optional encoding As Encoding = Nothing, Optional diagnosticOptions As ImmutableDictionary(Of String, ReportDiagnostic) = Nothing) As SyntaxTree
Public Shared Function Create (root As CSharpSyntaxNode, options As CSharpParseOptions, path As String, encoding As Encoding, diagnosticOptions As ImmutableDictionary(Of String, ReportDiagnostic)) As SyntaxTree

Parameter

path
String
encoding
Encoding

Gibt zurück

Attribute

Gilt für:

Create(CSharpSyntaxNode, CSharpParseOptions, String, Encoding, ImmutableDictionary<String,ReportDiagnostic>, Nullable<Boolean>)

Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs
Quelle:
CSharpSyntaxTree.cs

Achtung

The diagnosticOptions and isGeneratedCode parameters are obsolete due to performance problems, if you are using them use CompilationOptions.SyntaxTreeOptionsProvider instead

Erstellt eine neue Syntaxstruktur aus einem Syntaxknoten.

[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 Create (Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode root, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions? options, string path, System.Text.Encoding? encoding, System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic>? diagnosticOptions, bool? isGeneratedCode);
public static Microsoft.CodeAnalysis.SyntaxTree Create (Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode root, 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);
public static Microsoft.CodeAnalysis.SyntaxTree Create (Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode root, 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.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 Create (Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode root, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions? options, string? path, System.Text.Encoding? encoding, System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic>? diagnosticOptions, bool? isGeneratedCode);
[<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 Create : Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode * Microsoft.CodeAnalysis.CSharp.CSharpParseOptions * string * System.Text.Encoding * System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> * Nullable<bool> -> Microsoft.CodeAnalysis.SyntaxTree
static member Create : Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode * Microsoft.CodeAnalysis.CSharp.CSharpParseOptions * string * System.Text.Encoding * System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> * Nullable<bool> -> Microsoft.CodeAnalysis.SyntaxTree
Public Shared Function Create (root As CSharpSyntaxNode, options As CSharpParseOptions, path As String, encoding As Encoding, diagnosticOptions As ImmutableDictionary(Of String, ReportDiagnostic), isGeneratedCode As Nullable(Of Boolean)) As SyntaxTree
Public Shared Function Create (root As CSharpSyntaxNode, 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) As SyntaxTree

Parameter

path
String
encoding
Encoding
diagnosticOptions
ImmutableDictionary<String,ReportDiagnostic>

Ein veralteter Parameter. Diagnoseoptionen sollten jetzt übergeben werden. SyntaxTreeOptionsProvider

isGeneratedCode
Nullable<Boolean>

Ein veralteter Parameter. Es ist nicht verwendet.

Gibt zurück

Attribute

Gilt für: