共用方式為


SyntaxNodeExtensions.WithoutLeadingTrivia<TSyntax>(TSyntax) 方法

定義

從這個節點建立新的節點,並移除前置小道。

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

類型參數

TSyntax

參數

node
TSyntax

傳回

TSyntax

適用於