Compartir a través de


CSharpSyntaxTree.Create Método

Definición

Sobrecargas

Create(CSharpSyntaxNode, CSharpParseOptions, String, Encoding)

Crea un nuevo árbol de sintaxis a partir de un nodo de sintaxis.

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

Crea un nuevo árbol de sintaxis a partir de un nodo de sintaxis.

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

Crea un nuevo árbol de sintaxis a partir de un nodo de sintaxis.

Create(CSharpSyntaxNode, CSharpParseOptions, String, Encoding)

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

Crea un nuevo árbol de sintaxis a partir de un nodo de sintaxis.

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

Parámetros

path
String
encoding
Encoding

Devoluciones

Atributos

Se aplica a

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

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

Precaución

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

Crea un nuevo árbol de sintaxis a partir de un nodo de sintaxis.

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

Parámetros

path
String
encoding
Encoding

Devoluciones

Atributos

Se aplica a

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

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

Precaución

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

Crea un nuevo árbol de sintaxis a partir de un nodo de sintaxis.

[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);
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
[<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
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

Parámetros

path
String
encoding
Encoding
diagnosticOptions
ImmutableDictionary<String,ReportDiagnostic>

Un parámetro obsoleto. Ahora se deben pasar las opciones de diagnóstico con SyntaxTreeOptionsProvider

isGeneratedCode
Nullable<Boolean>

Un parámetro obsoleto. No se usa.

Devoluciones

Atributos

Se aplica a