Lines Matching refs:Type

38 Type = javascripttokens.JavaScriptTokenType
93 Type.START_PAREN, Type.START_PARAMETERS)
145 if token_type == Type.END_PAREN:
146 self._PopTo(Type.START_PAREN)
148 elif token_type == Type.END_PARAMETERS:
149 self._PopTo(Type.START_PARAMETERS)
151 elif token_type == Type.END_BRACKET:
152 self._PopTo(Type.START_BRACKET)
154 elif token_type == Type.END_BLOCK:
155 start_token = self._PopTo(Type.START_BLOCK)
181 elif token_type == Type.KEYWORD and token.string in ('case', 'default'):
182 self._Add(self._PopTo(Type.START_BLOCK))
191 elif token_type == Type.SEMICOLON:
194 not_binary_operator = (token_type != Type.OPERATOR or
198 Type.COMMENT, Type.DOC_PREFIX, Type.STRING_TEXT):
212 if token_type in Type.COMMENT_TYPES:
213 next_code = tokenutil.SearchExcept(token, Type.NON_CODE_TYPES)
214 if next_code and next_code.type == Type.END_BLOCK:
215 next_code = tokenutil.SearchExcept(next_code, Type.NON_CODE_TYPES)
232 if token_type == Type.START_BRACKET:
237 elif token_type == Type.START_BLOCK or token.metadata.is_implied_block:
240 elif token_type in (Type.START_PAREN, Type.START_PARAMETERS):
243 elif token_type == Type.KEYWORD and token.string == 'return':
257 if token_type == Type.OPERATOR:
293 and token_type in (Type.IDENTIFIER, Type.NORMAL)):
295 elif token_type == Type.PARAMETERS and token.string.endswith(','):
319 _HARD_STOP_TYPES = (Type.START_PAREN, Type.START_PARAMETERS,
320 Type.START_BRACKET)
383 if (token.type in (Type.START_PAREN, Type.START_PARAMETERS) and
390 elif token.type == Type.START_BRACKET:
415 if token.type == Type.WHITESPACE:
420 elif token.type == Type.PARAMETERS:
434 if token.type in (Type.WHITESPACE, Type.BLANK_LINE):
439 token.previous.type == Type.WHITESPACE)
450 if token.type in Type.NON_CODE_TYPES:
457 if token.type not in Type.NON_CODE_TYPES:
470 if token_info.is_block or token_info.token.type == Type.START_PAREN:
482 if (token_info.token.type == Type.START_BLOCK and
484 stack_token.type in (Type.IDENTIFIER, Type.START_PAREN))):
495 elif (token_info.token.type == Type.START_BLOCK and
498 stack_token.type == Type.IDENTIFIER)):
520 if token_info.token.type not in (Type.START_BLOCK, Type.START_BRACKET):
529 if token_info.token.type == Type.START_BRACKET:
530 goal_type = Type.END_BRACKET
532 goal_type = Type.END_BLOCK