SyntaxNodeExtensions.WithoutTrailingTrivia<TSyntax>(TSyntax) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從這個節點建立新的節點,並移除尾端的 Trivia。
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