def IsComment(self):
    return self.type in JavaScriptTokenType.COMMENT_TYPES
Tests if this token is any part of a comment.
dataset/ETHPy150Open google/closure-linter/closure_linter/javascripttokens.py/JavaScriptToken.IsComment