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

Method is_loop

Tools/peg_generator/pegen/grammar.py:69–70  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

67 self.leader = False
68
69 def is_loop(self) -> bool:
70 return self.name.startswith("_loop")
71
72 def is_gather(self) -> bool:
73 return self.name.startswith("_gather")

Callers 5

flattenMethod · 0.95
visit_NameLeafMethod · 0.80
generateMethod · 0.80
visit_RuleMethod · 0.80
visit_RuleMethod · 0.80

Calls 1

startswithMethod · 0.45

Tested by

no test coverage detected