SyntaxNodeExtensions.WithoutTrailingTrivia<TSyntax>(TSyntax) 方法

定义

从此节点创建新节点,并删除尾随琐事。

public:
generic <typename TSyntax>
 where TSyntax : Microsoft::CodeAnalysis::SyntaxNode[System::Runtime::CompilerServices::Extension]
 static TSyntax WithoutTrailingTrivia(TSyntax node);
public static TSyntax WithoutTrailingTrivia<TSyntax> (this TSyntax node) where TSyntax : Microsoft.CodeAnalysis.SyntaxNode;
static member WithoutTrailingTrivia : 'Syntax -> 'Syntax (requires 'Syntax :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function WithoutTrailingTrivia(Of TSyntax As SyntaxNode) (node As TSyntax) As TSyntax

类型参数

TSyntax

参数

node
TSyntax

返回

TSyntax

适用于