IsToken(TokenKind) Method

Definition

Namespace Tomlyn.Syntax
Assembly Tomlyn.dll

Checks if the specified kind is a token for which ToText(TokenKind) will return not null

public static bool IsToken(this TokenKind kind)

Parameters

kind
TokenKind

A token kind

Returns

Boolean
true if the specified kind is a simple token