SyntaxNode.ReplaceCore<TNode> Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Crea un nuovo albero di nodi con i nodi, i token o i trivia specificati sostituiti.
protected internal abstract Microsoft.CodeAnalysis.SyntaxNode ReplaceCore<TNode> (System.Collections.Generic.IEnumerable<TNode> nodes = default, Func<TNode,TNode,Microsoft.CodeAnalysis.SyntaxNode> computeReplacementNode = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxToken> tokens = default, Func<Microsoft.CodeAnalysis.SyntaxToken,Microsoft.CodeAnalysis.SyntaxToken,Microsoft.CodeAnalysis.SyntaxToken> computeReplacementToken = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxTrivia> trivia = default, Func<Microsoft.CodeAnalysis.SyntaxTrivia,Microsoft.CodeAnalysis.SyntaxTrivia,Microsoft.CodeAnalysis.SyntaxTrivia> computeReplacementTrivia = default) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
protected internal abstract Microsoft.CodeAnalysis.SyntaxNode ReplaceCore<TNode> (System.Collections.Generic.IEnumerable<TNode>? nodes = default, Func<TNode,TNode,Microsoft.CodeAnalysis.SyntaxNode>? computeReplacementNode = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxToken>? tokens = default, Func<Microsoft.CodeAnalysis.SyntaxToken,Microsoft.CodeAnalysis.SyntaxToken,Microsoft.CodeAnalysis.SyntaxToken>? computeReplacementToken = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxTrivia>? trivia = default, Func<Microsoft.CodeAnalysis.SyntaxTrivia,Microsoft.CodeAnalysis.SyntaxTrivia,Microsoft.CodeAnalysis.SyntaxTrivia>? computeReplacementTrivia = default) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
abstract member ReplaceCore : seq<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> * Func<'Node, 'Node, Microsoft.CodeAnalysis.SyntaxNode (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode and 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> * seq<Microsoft.CodeAnalysis.SyntaxToken> * Func<Microsoft.CodeAnalysis.SyntaxToken, Microsoft.CodeAnalysis.SyntaxToken, Microsoft.CodeAnalysis.SyntaxToken> * seq<Microsoft.CodeAnalysis.SyntaxTrivia> * Func<Microsoft.CodeAnalysis.SyntaxTrivia, Microsoft.CodeAnalysis.SyntaxTrivia, Microsoft.CodeAnalysis.SyntaxTrivia> -> Microsoft.CodeAnalysis.SyntaxNode (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
Protected Friend MustOverride Function ReplaceCore(Of TNode As SyntaxNode) (Optional nodes As IEnumerable(Of TNode) = Nothing, Optional computeReplacementNode As Func(Of TNode, TNode, SyntaxNode) = Nothing, Optional tokens As IEnumerable(Of SyntaxToken) = Nothing, Optional computeReplacementToken As Func(Of SyntaxToken, SyntaxToken, SyntaxToken) = Nothing, Optional trivia As IEnumerable(Of SyntaxTrivia) = Nothing, Optional computeReplacementTrivia As Func(Of SyntaxTrivia, SyntaxTrivia, SyntaxTrivia) = Nothing) As SyntaxNode
Parametri di tipo
- TNode
Parametri
- nodes
- IEnumerable<TNode>
- computeReplacementNode
- Func<TNode,TNode,SyntaxNode>
- tokens
- IEnumerable<SyntaxToken>
- computeReplacementToken
- Func<SyntaxToken,SyntaxToken,SyntaxToken>
- trivia
- IEnumerable<SyntaxTrivia>
- computeReplacementTrivia
- Func<SyntaxTrivia,SyntaxTrivia,SyntaxTrivia>
Restituisce
Si applica a
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.