match(type) {
    const isMatch = this.isTokenType(type);
    if (isMatch) {
      this.consume_();
    }
    return isMatch;
  }
If the given type matches the current token, consume it.
@param {TokenType} type Token type.
@return {boolean} Whether the token matches the given type.