matchesAny method
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;
}