다음을 통해 공유


SyntaxNodeExtensions.WithTriviaFrom<TSyntax> 메서드

정의

지정된 노드의 선행 및 후행 퀴즈를 모두 사용하여 이 노드에서 새 노드를 만듭니다.

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

형식 매개 변수

TSyntax

매개 변수

syntax
TSyntax
node
SyntaxNode

반환

TSyntax

적용 대상