Compartilhar via


SyntaxNode.GetLastToken(Boolean, Boolean, Boolean, Boolean) Método

Definição

Obtém o último token da árvore com raiz por esse nó. Ignora tokens de largura zero.

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

Parâmetros

includeZeroWidth
Boolean
includeSkipped
Boolean
includeDirectives
Boolean
includeDocumentationComments
Boolean

Retornos

O último token ou default(SyntaxToken) se ele não existe.

Aplica-se a