SyntaxNodeExtensions.ReplaceNode Método

Definição

Sobrecargas

ReplaceNode<TRoot>(TRoot, SyntaxNode, SyntaxNode)

Cria uma nova árvore de nós com o nó antigo especificado substituído por um novo nó.

ReplaceNode<TRoot>(TRoot, SyntaxNode, IEnumerable<SyntaxNode>)

Cria uma nova árvore de nós com um nó antigo especificado substituído por um novo nós.

ReplaceNode<TRoot>(TRoot, SyntaxNode, SyntaxNode)

Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs

Cria uma nova árvore de nós com o nó antigo especificado substituído por um novo nó.

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

Parâmetros de tipo

TRoot

O tipo do nó raiz.

Parâmetros

root
TRoot

O nó raiz da árvore de nós.

oldNode
SyntaxNode

O nó a ser substituído; um descendente do nó raiz.

newNode
SyntaxNode

O novo nó a ser usado na nova árvore no lugar do nó antigo.

Retornos

TRoot

Aplica-se a

ReplaceNode<TRoot>(TRoot, SyntaxNode, IEnumerable<SyntaxNode>)

Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs

Cria uma nova árvore de nós com um nó antigo especificado substituído por um novo nós.

public:
generic <typename TRoot>
 where TRoot : Microsoft::CodeAnalysis::SyntaxNode[System::Runtime::CompilerServices::Extension]
 static TRoot ReplaceNode(TRoot root, Microsoft::CodeAnalysis::SyntaxNode ^ oldNode, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxNode ^> ^ newNodes);
public static TRoot ReplaceNode<TRoot> (this TRoot root, Microsoft.CodeAnalysis.SyntaxNode oldNode, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> newNodes) where TRoot : Microsoft.CodeAnalysis.SyntaxNode;
static member ReplaceNode : 'Root * Microsoft.CodeAnalysis.SyntaxNode * seq<Microsoft.CodeAnalysis.SyntaxNode> -> 'Root (requires 'Root :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function ReplaceNode(Of TRoot As SyntaxNode) (root As TRoot, oldNode As SyntaxNode, newNodes As IEnumerable(Of SyntaxNode)) As TRoot

Parâmetros de tipo

TRoot

O tipo do nó raiz.

Parâmetros

root
TRoot

A raiz da árvore de nós.

oldNode
SyntaxNode

O nó a ser substituído; um descendente do nó raiz e um elemento de um membro de lista.

newNodes
IEnumerable<SyntaxNode>

Uma sequência de nós a serem usados na árvore no lugar do nó antigo.

Retornos

TRoot

Aplica-se a