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

Method flag

Tools/peg_generator/pegen/grammar_parser.py:237–245  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

235
236 @memoize
237 def flag(self) -> Optional[str]:
238 # flag: NAME
239 mark = self._mark()
240 if (
241 (name := self.name())
242 ):
243 return name . string
244 self._reset(mark)
245 return None
246
247 @memoize
248 def alts(self) -> Optional[Rhs]:

Callers 2

_loop0_1Method · 0.95
_gather_2Method · 0.95

Calls 2

nameMethod · 0.45
_resetMethod · 0.45

Tested by

no test coverage detected