Searched refs:tok_name (Results 1 - 17 of 17) sorted by relevance
/external/python/cpython2/Lib/lib2to3/pgen2/ |
H A D | token.py | 70 tok_name = {} variable 73 tok_name[_value] = _name
|
H A D | driver.py | 70 token.tok_name[type], value, prefix)
|
H A D | pgen.py | 78 assert itoken in token.tok_name, label 326 #print token.tok_name[self.type], repr(self.value)
|
H A D | tokenize.py | 158 (srow, scol, erow, ecol, tok_name[type], repr(token))
|
/external/python/cpython3/Lib/lib2to3/pgen2/ |
H A D | token.py | 72 tok_name = {} variable 75 tok_name[_value] = _name
|
H A D | driver.py | 70 token.tok_name[type], value, prefix)
|
H A D | pgen.py | 78 assert itoken in token.tok_name, label 326 #print token.tok_name[self.type], repr(self.value)
|
H A D | tokenize.py | 158 (srow, scol, erow, ecol, tok_name[type], repr(token)))
|
/external/python/cpython2/Lib/ |
H A D | token.py | 68 tok_name = {} variable 71 tok_name[_value] = _name
|
H A D | tokenize.py | 40 tok_name[COMMENT] = 'COMMENT' 42 tok_name[NL] = 'NL' 154 (srow, scol, erow, ecol, tok_name[type], repr(token))
|
/external/python/cpython3/Lib/ |
H A D | token.py | 3 __all__ = ['tok_name', 'ISTERMINAL', 'ISNONTERMINAL', 'ISEOF'] 74 tok_name = {value: name variable 77 __all__.extend(tok_name.values())
|
H A D | tokenize.py | 46 tok_name[COMMENT] = 'COMMENT' 48 tok_name[NL] = 'NL' 50 tok_name[ENCODING] = 'ENCODING' 101 annotated_type = '%d (%s)' % (self.type, tok_name[self.type]) 775 (token_range, tok_name[token_type], token.string))
|
/external/chromium-trace/catapult/common/py_utils/py_utils/refactor/ |
H A D | offset_token.py | 37 return token.tok_name[self._type]
|
H A D | snippet.py | 117 return token.tok_name[self.type]
|
/external/python/cpython2/Lib/test/ |
H A D | test_tokenize.py | 3 STRING, ENDMARKER, tok_name, Untokenizer, tokenize) 24 type = tok_name[type]
|
/external/python/cpython3/Lib/test/ |
H A D | test_tokenize.py | 3 STRING, ENDMARKER, ENCODING, tok_name, detect_encoding, 28 type = tok_name[type] 1325 self.assertEqual(token.tok_name[tokens[0].exact_type], 1326 token.tok_name[ENCODING]) 1328 self.assertEqual(token.tok_name[tokens[i + 1].exact_type], 1329 token.tok_name[optypes[i]]) 1330 self.assertEqual(token.tok_name[tokens[1 + num_optypes].exact_type], 1331 token.tok_name[token.ENDMARKER])
|
/external/python/cpython2/Lib/compiler/ |
H A D | transformer.py | 1523 for k, v in token.tok_name.items():
|
Completed in 610 milliseconds