Lines Matching defs:TokenType

25 TokenType = javascripttokens.JavaScriptTokenType
326 if token_type == TokenType.START_PAREN:
334 elif token_type == TokenType.END_PAREN:
342 next_code = tokenutil.SearchExcept(token, TokenType.NON_CODE_TYPES)
343 if next_code.type != TokenType.START_BLOCK:
348 pre_keyword_token.type == TokenType.END_BLOCK):
362 elif (token_type == TokenType.KEYWORD and
364 next_code = tokenutil.SearchExcept(token, TokenType.NON_CODE_TYPES)
365 if (next_code.type != TokenType.START_BLOCK and
366 (next_code.type != TokenType.KEYWORD or next_code.string != 'if')):
370 elif token_type == TokenType.START_PARAMETERS:
373 elif token_type == TokenType.END_PARAMETERS:
376 elif token_type == TokenType.START_BRACKET:
378 self._last_code.type in TokenType.EXPRESSION_ENDER_TYPES):
383 elif token_type == TokenType.END_BRACKET:
386 elif token_type == TokenType.START_BLOCK:
387 if (self._last_code.type in (TokenType.END_PAREN,
388 TokenType.END_PARAMETERS) or
401 elif token_type == TokenType.END_BLOCK:
413 elif (token_type == TokenType.KEYWORD and
459 elif token_type == TokenType.SEMICOLON:
488 if token.type == TokenType.OPERATOR:
492 if token.type != TokenType.SEMICOLON:
493 next_code = tokenutil.SearchExcept(token, TokenType.NON_CODE_TYPES)
498 is_continued_identifier = (token.type == TokenType.IDENTIFIER and
500 is_continued_operator = (token.type == TokenType.OPERATOR and
503 next_code_is_operator = next_code and next_code.type == TokenType.OPERATOR
506 token.type == TokenType.END_BLOCK and
508 is_multiline_string = token.type == TokenType.STRING_TEXT
511 (next_code.type in [TokenType.IDENTIFIER,
512 TokenType.SIMPLE_LVALUE]) and
514 next_code_is_block = next_code and next_code.type == TokenType.START_BLOCK
563 if token.string in TokenType.UNARY_OPERATORS:
567 if not last_code or last_code.type == TokenType.END_BLOCK:
570 if (token.string in TokenType.UNARY_POST_OPERATORS and
571 last_code.type in TokenType.EXPRESSION_ENDER_TYPES):
574 if (token.string in TokenType.UNARY_OK_OPERATORS and
575 last_code.type not in TokenType.EXPRESSION_ENDER_TYPES and
576 last_code.string not in TokenType.UNARY_POST_OPERATORS):