isAtEnd method

bool isAtEnd(
  1. Token t
)

Whether t is the last thing in the source (nothing, not even a space, follows it).

Implementation

bool isAtEnd(Token t) => t.span.end >= _lexer.input.length;