Skip to content

Token<TKind>.IsDirectlyBefore Method

Definition

Returns true if this token ends exactly where other starts, i.e. the tokens are directly adjacent in the file with nothing between them. Both tokens are assumed to come from the same file.

public bool IsDirectlyBefore(in Token<TKind> other);

View source

Parameters

Name Type Description
other Token<TKind> The other token.

Returns

Boolean

true if this token is directly before other, false otherwise.