共用方式為


SyntaxNode.GetLastToken(Boolean, Boolean, Boolean, Boolean) 方法

定義

取得這個節點所根目錄樹狀結構的最後一個標記。 略過零寬度標記。

public Microsoft.CodeAnalysis.SyntaxToken GetLastToken (bool includeZeroWidth = false, bool includeSkipped = false, bool includeDirectives = false, bool includeDocumentationComments = false);
member this.GetLastToken : bool * bool * bool * bool -> Microsoft.CodeAnalysis.SyntaxToken
Public Function GetLastToken (Optional includeZeroWidth As Boolean = false, Optional includeSkipped As Boolean = false, Optional includeDirectives As Boolean = false, Optional includeDocumentationComments As Boolean = false) As SyntaxToken

參數

includeZeroWidth
Boolean
includeSkipped
Boolean
includeDirectives
Boolean
includeDocumentationComments
Boolean

傳回

最後一個權杖 default(SyntaxToken) ,如果不存在,則為 。

適用於