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

Method while_stmt

Tools/cases_generator/parsing.py:711–715  ·  view source on GitHub ↗
(self, while_: lx.Token)

Source from the content-addressed store, hash-verified

709 return ForStmt(for_, header, body)
710
711 def while_stmt(self, while_: lx.Token) -> WhileStmt:
712 lparen = self.require(lx.LPAREN)
713 cond = [lparen] + self.consume_to(lx.RPAREN)
714 body = self.block()
715 return WhileStmt(while_, cond, body)
716
717
718if __name__ == "__main__":

Callers 1

stmtMethod · 0.95

Calls 4

blockMethod · 0.95
WhileStmtClass · 0.85
requireMethod · 0.80
consume_toMethod · 0.80

Tested by

no test coverage detected