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) 它不存在。

适用于