Lines Matching defs:TokenType

25 TokenType = javascripttokens.JavaScriptTokenType
279 if token_type == TokenType.START_PAREN:
287 elif token_type == TokenType.END_PAREN:
295 next_code = tokenutil.SearchExcept(token, TokenType.NON_CODE_TYPES)
296 if next_code.type != TokenType.START_BLOCK:
301 pre_keyword_token.type == TokenType.END_BLOCK):
315 elif (token_type == TokenType.KEYWORD and
317 next_code = tokenutil.SearchExcept(token, TokenType.NON_CODE_TYPES)
318 if (next_code.type != TokenType.START_BLOCK and
319 (next_code.type != TokenType.KEYWORD or next_code.string != 'if')):
323 elif token_type == TokenType.START_PARAMETERS:
326 elif token_type == TokenType.END_PARAMETERS:
329 elif token_type == TokenType.START_BRACKET:
331 self._last_code.type in TokenType.EXPRESSION_ENDER_TYPES):
336 elif token_type == TokenType.END_BRACKET:
339 elif token_type == TokenType.START_BLOCK:
340 if (self._last_code.type in (TokenType.END_PAREN,
341 TokenType.END_PARAMETERS) or
354 elif token_type == TokenType.END_BLOCK:
366 elif (token_type == TokenType.KEYWORD and
408 elif token_type == TokenType.SEMICOLON:
437 if token.type == TokenType.OPERATOR:
441 if token.type != TokenType.SEMICOLON:
442 next_code = tokenutil.SearchExcept(token, TokenType.NON_CODE_TYPES)
447 is_continued_identifier = (token.type == TokenType.IDENTIFIER and
449 is_continued_operator = (token.type == TokenType.OPERATOR and
452 next_code_is_operator = next_code and next_code.type == TokenType.OPERATOR
454 is_end_of_block = (token.type == TokenType.END_BLOCK and
456 is_multiline_string = token.type == TokenType.STRING_TEXT
457 next_code_is_block = next_code and next_code.type == TokenType.START_BLOCK
505 if token.string in TokenType.UNARY_OPERATORS:
509 if not last_code or last_code.type == TokenType.END_BLOCK:
512 if (token.string in TokenType.UNARY_POST_OPERATORS and
513 last_code.type in TokenType.EXPRESSION_ENDER_TYPES):
516 if (token.string in TokenType.UNARY_OK_OPERATORS and
517 last_code.type not in TokenType.EXPRESSION_ENDER_TYPES and
518 last_code.string not in TokenType.UNARY_POST_OPERATORS):