matchesAny method

  1. @override
bool matchesAny(
  1. List<TokenType> types
)
inherited

Return true if this token has any one of the given types.

Implementation

@override
bool matchesAny(List<TokenType> types) {
  for (TokenType type in types) {
    if (this.type == type) {
      return true;
    }
  }
  return false;
}