共用方式為


SyntaxGenerator.PreserveTrivia<TNode> Method

Definition

protected:
generic <typename TNode>
 where TNode : Microsoft::CodeAnalysis::SyntaxNode static Microsoft::CodeAnalysis::SyntaxNode ^ PreserveTrivia(TNode node, Func<TNode, Microsoft::CodeAnalysis::SyntaxNode ^> ^ nodeChanger);
protected static Microsoft.CodeAnalysis.SyntaxNode PreserveTrivia<TNode> (TNode node, Func<TNode,Microsoft.CodeAnalysis.SyntaxNode> nodeChanger) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
protected static Microsoft.CodeAnalysis.SyntaxNode? PreserveTrivia<TNode> (TNode? node, Func<TNode,Microsoft.CodeAnalysis.SyntaxNode> nodeChanger) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member PreserveTrivia : 'Node * Func<'Node, Microsoft.CodeAnalysis.SyntaxNode (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> -> Microsoft.CodeAnalysis.SyntaxNode (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
Protected Shared Function PreserveTrivia(Of TNode As SyntaxNode) (node As TNode, nodeChanger As Func(Of TNode, SyntaxNode)) As SyntaxNode

Type Parameters

TNode

Parameters

node
TNode
nodeChanger
Func<TNode,SyntaxNode>

Returns

Applies to