SyntaxGenerator.PreserveTrivia<TNode> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Colabore connosco no GitHub
A origem deste conteúdo pode ser encontrada no GitHub, onde também pode criar e rever problemas e pedidos Pull. Para mais informações, consulte o nosso guia do contribuidor.