TokenKindExtensions Class
Helper functions for TokenKind
public static class TokenKindExtensionsMethods
| Name | Description |
|---|---|
| IsDateTime(TokenKind) | Checks if the specified kind is a datetime. |
| IsFloat(TokenKind) | Checks if the specified kind is a float. |
| IsHidden(TokenKind, bool) | Returns true if the specified token kind is considered as hidden (comments, whitespaces or newline) |
| IsInteger(TokenKind) | Checks if the specified kind is an integer |
| IsString(TokenKind) | Checks if the specified kind is a string. |
| IsToken(TokenKind) | Checks if the specified kind is a token for which TokenKindExtensions.ToText will return not null |
| IsTrivia(TokenKind) | Checks if the specified kind is a trivia. |
| ToText(TokenKind) | Gets a textual representation of a token kind or null if not applicable (e.g TokenKind.Integer) |
IsDateTime(TokenKind)
TokenKindExtensions.csIsFloat(TokenKind)
TokenKindExtensions.csIsHidden(TokenKind, bool)
TokenKindExtensions.csReturns true if the specified token kind is considered as hidden (comments, whitespaces or newline)
IsInteger(TokenKind)
TokenKindExtensions.csIsString(TokenKind)
TokenKindExtensions.csIsToken(TokenKind)
TokenKindExtensions.csChecks if the specified kind is a token for which TokenKindExtensions.ToText will return not null