isTokenType(type) {
    return this.token_.type == type;
  }
Tests if the given type matches the type of the current token.
@param {TokenType} type Token type.
@return {boolean} Whether the token matches the given type.