IsHidden(TokenKind, Boolean) Method

Definition

Namespace Tomlyn.Syntax
Assembly Tomlyn.dll

Returns true if the specified token kind is considered as hidden (comments, whitespaces or newline)

public static bool IsHidden(this TokenKind tokenKind, bool hideNewLine = true)

Parameters

tokenKind
TokenKind

The token kind.

hideNewLine
Boolean

Makes the newline hidden by default. Default is true.

Returns

Boolean
true if the specified token kind is considered as hidden; false otherwise