MCPcopy Index your code
hub / github.com/python/cpython / string

Method string

Tools/peg_generator/pegen/parser.py:203–207  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

201
202 @memoize
203 def string(self) -> tokenize.TokenInfo | None:
204 tok = self._tokenizer.peek()
205 if tok.type == token.STRING:
206 return self._tokenizer.getnext()
207 return None
208
209 @memoize
210 def fstring_start(self) -> tokenize.TokenInfo | None:

Callers 8

metaMethod · 0.80
atomMethod · 0.80
target_atomMethod · 0.80
safe_tp_nameMethod · 0.80
subclass_from_typeMethod · 0.80
proxyvalMethod · 0.80
safe_nameMethod · 0.80
safe_tp_nameMethod · 0.80

Calls 2

getnextMethod · 0.80
peekMethod · 0.45

Tested by

no test coverage detected