Skip to content

Token<TKind>.IsDirectlyBefore Method ​

Definition ​

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

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

View source

Parameters ​

NameTypeDescription
otherToken<TKind>The other token.

Returns ​

Boolean

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