Partilhar via


SyntaxNodeExtensions.RemoveNode<TRoot> Método

Definição

Cria uma nova árvore de nós com o nó especificado removido.

public:
generic <typename TRoot>
 where TRoot : Microsoft::CodeAnalysis::SyntaxNode[System::Runtime::CompilerServices::Extension]
 static TRoot RemoveNode(TRoot root, Microsoft::CodeAnalysis::SyntaxNode ^ node, Microsoft::CodeAnalysis::SyntaxRemoveOptions options);
public static TRoot RemoveNode<TRoot> (this TRoot root, Microsoft.CodeAnalysis.SyntaxNode node, Microsoft.CodeAnalysis.SyntaxRemoveOptions options) where TRoot : Microsoft.CodeAnalysis.SyntaxNode;
public static TRoot? RemoveNode<TRoot> (this TRoot root, Microsoft.CodeAnalysis.SyntaxNode node, Microsoft.CodeAnalysis.SyntaxRemoveOptions options) where TRoot : Microsoft.CodeAnalysis.SyntaxNode;
static member RemoveNode : 'Root * Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.SyntaxRemoveOptions -> 'Root (requires 'Root :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function RemoveNode(Of TRoot As SyntaxNode) (root As TRoot, node As SyntaxNode, options As SyntaxRemoveOptions) As TRoot

Parâmetros de tipo

TRoot

O tipo do nó raiz.

Parâmetros

root
TRoot

O nó raiz do qual remover um nó descendente.

node
SyntaxNode

O nó a ser removido.

options
SyntaxRemoveOptions

Opções que determinam como as curiosidades do nó são tratadas.

Retornos

TRoot

Nova raiz ou nula se o nó raiz em si for removido.

Aplica-se a