MCPcopy
hub / github.com/python/mypy / visit_While

Method visit_While

mypy/fastparse.py:1325–1329  ·  view source on GitHub ↗
(self, n: ast3.While)

Source from the content-addressed store, hash-verified

1323
1324 # While(expr test, stmt* body, stmt* orelse)
1325 def visit_While(self, n: ast3.While) -> WhileStmt:
1326 node = WhileStmt(
1327 self.visit(n.test), self.as_required_block(n.body), self.as_block(n.orelse)
1328 )
1329 return self.set_line(node, n)
1330
1331 # If(expr test, stmt* body, stmt* orelse)
1332 def visit_If(self, n: ast3.If) -> IfStmt:

Callers

nothing calls this directly

Calls 5

visitMethod · 0.95
as_required_blockMethod · 0.95
as_blockMethod · 0.95
set_lineMethod · 0.95
WhileStmtClass · 0.90

Tested by

no test coverage detected