isEOF method

bool isEOF()

Implementation

bool isEOF() {
  final token = peek();
  return token == null || token is EOFToken;
}