def IsAnyType(self, *token_types):
    if not isinstance(token_types[0], basestring):
      return self.type in token_types[0]
    else:
      return self.type in token_types
Tests if this token is any of the given types.
dataset/ETHPy150Open google/closure-linter/closure_linter/common/tokens.py/Token.IsAnyType