def IsCode(self):
    return self.type not in JavaScriptTokenType.NON_CODE_TYPES
Tests if this token is code, as opposed to a comment or whitespace.
dataset/ETHPy150Open google/closure-linter/closure_linter/javascripttokens.py/JavaScriptToken.IsCode