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

Method for_stmt

Tools/cases_generator/parsing.py:705–709  ·  view source on GitHub ↗
(self, for_: lx.Token)

Source from the content-addressed store, hash-verified

703 part.append(self.stmt())
704
705 def for_stmt(self, for_: lx.Token) -> ForStmt:
706 lparen = self.require(lx.LPAREN)
707 header = [lparen] + self.consume_to(lx.RPAREN)
708 body = self.block()
709 return ForStmt(for_, header, body)
710
711 def while_stmt(self, while_: lx.Token) -> WhileStmt:
712 lparen = self.require(lx.LPAREN)

Callers 1

stmtMethod · 0.95

Calls 4

blockMethod · 0.95
ForStmtClass · 0.85
requireMethod · 0.80
consume_toMethod · 0.80

Tested by

no test coverage detected