Click or drag to resize

CSharpSyntaxNodeGetLastToken Method



Gets the last non-zero-width token of the tree rooted by this node.

Namespace:  Microsoft.CodeAnalysis.CSharp
Assembly:  Microsoft.CodeAnalysis.CSharp (in Microsoft.CodeAnalysis.CSharp.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public SyntaxToken GetLastToken(
	bool includeZeroWidth = false,
	bool includeSkipped = false,
	bool includeDirectives = false,
	bool includeDocumentationComments = false
)

Parameters

includeZeroWidth (Optional)
Type: SystemBoolean
True if zero width tokens should be included, false by default.
includeSkipped (Optional)
Type: SystemBoolean
True if skipped tokens should be included, false by default.
includeDirectives (Optional)
Type: SystemBoolean
True if directives should be included, false by default.
includeDocumentationComments (Optional)
Type: SystemBoolean
True if documentation comments should be included, false by default.

Return Value

Type: SyntaxToken
See Also