SyntaxNodeExtensions.WithTriviaFrom<TSyntax> 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.
Creates a new node from this node with both the leading and trailing trivia of the specified node.
public:
generic <typename TSyntax>
where TSyntax : Microsoft::CodeAnalysis::SyntaxNode[System::Runtime::CompilerServices::Extension]
static TSyntax WithTriviaFrom(TSyntax syntax, Microsoft::CodeAnalysis::SyntaxNode ^ node);
public static TSyntax WithTriviaFrom<TSyntax> (this TSyntax syntax, Microsoft.CodeAnalysis.SyntaxNode node) where TSyntax : Microsoft.CodeAnalysis.SyntaxNode;
static member WithTriviaFrom : 'Syntax * Microsoft.CodeAnalysis.SyntaxNode -> 'Syntax (requires 'Syntax :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function WithTriviaFrom(Of TSyntax As SyntaxNode) (syntax As TSyntax, node As SyntaxNode) As TSyntax
Type Parameters
- TSyntax
Parameters
- syntax
- TSyntax
- node
- SyntaxNode
Returns
TSyntax
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.