Searched refs:tok_name (Results 1 - 17 of 17) sorted by relevance

/external/python/cpython2/Lib/lib2to3/pgen2/
H A Dtoken.py70 tok_name = {} variable
73 tok_name[_value] = _name
H A Ddriver.py70 token.tok_name[type], value, prefix)
H A Dpgen.py78 assert itoken in token.tok_name, label
326 #print token.tok_name[self.type], repr(self.value)
H A Dtokenize.py158 (srow, scol, erow, ecol, tok_name[type], repr(token))
/external/python/cpython3/Lib/lib2to3/pgen2/
H A Dtoken.py72 tok_name = {} variable
75 tok_name[_value] = _name
H A Ddriver.py70 token.tok_name[type], value, prefix)
H A Dpgen.py78 assert itoken in token.tok_name, label
326 #print token.tok_name[self.type], repr(self.value)
H A Dtokenize.py158 (srow, scol, erow, ecol, tok_name[type], repr(token)))
/external/python/cpython2/Lib/
H A Dtoken.py68 tok_name = {} variable
71 tok_name[_value] = _name
H A Dtokenize.py40 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 Dtoken.py3 __all__ = ['tok_name', 'ISTERMINAL', 'ISNONTERMINAL', 'ISEOF']
74 tok_name = {value: name variable
77 __all__.extend(tok_name.values())
H A Dtokenize.py46 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 Doffset_token.py37 return token.tok_name[self._type]
H A Dsnippet.py117 return token.tok_name[self.type]
/external/python/cpython2/Lib/test/
H A Dtest_tokenize.py3 STRING, ENDMARKER, tok_name, Untokenizer, tokenize)
24 type = tok_name[type]
/external/python/cpython3/Lib/test/
H A Dtest_tokenize.py3 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 Dtransformer.py1523 for k, v in token.tok_name.items():

Completed in 610 milliseconds