SyntaxNode.GetLastToken(Boolean, Boolean, Boolean, Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得這個節點所根目錄樹狀結構的最後一個標記。 略過零寬度標記。
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)
,如果不存在,則為 。