Lines Matching refs:tstring
327 def __call__(self, ttype, tstring, stup, etup, line):
330 ## print('ttype:', token.tok_name[ttype], 'tstring:', tstring,
332 self.__state(ttype, tstring, stup[0])
334 def __waiting(self, ttype, tstring, lineno):
340 if ttype == tokenize.STRING and is_literal_string(tstring):
341 self.__addentry(safe_eval(tstring), lineno, isdocstring=1)
348 if ttype == tokenize.NAME and tstring in ('class', 'def'):
351 if ttype == tokenize.NAME and tstring in opts.keywords:
355 maybe_fstring = ast.parse(tstring, mode='eval').body
377 'source_segment': ast.get_source_segment(tstring, call) or tstring,
387 'source_segment': ast.get_source_segment(tstring, call) or tstring,
398 'source_segment': ast.get_source_segment(tstring, call) or tstring,
406 def __suiteseen(self, ttype, tstring, lineno):
409 if tstring == ':' and self.__enclosurecount == 0:
412 elif tstring in '([{':
414 elif tstring in ')]}':
417 def __suitedocstring(self, ttype, tstring, lineno):
419 if ttype == tokenize.STRING and is_literal_string(tstring):
420 self.__addentry(safe_eval(tstring), lineno, isdocstring=1)
427 def __keywordseen(self, ttype, tstring, lineno):
428 if ttype == tokenize.OP and tstring == '(':
435 def __openseen(self, ttype, tstring, lineno):
436 if ttype == tokenize.OP and tstring == ')':
444 elif ttype == tokenize.STRING and is_literal_string(tstring):
445 self.__data.append(safe_eval(tstring))
452 'token': tstring,