MCPcopy Create free account
hub / github.com/python/mypy / transform_for_stmt

Function transform_for_stmt

mypyc/irbuild/statement.py:637–647  ·  view source on GitHub ↗
(builder: IRBuilder, s: ForStmt)

Source from the content-addressed store, hash-verified

635
636
637def transform_for_stmt(builder: IRBuilder, s: ForStmt) -> None:
638 def body() -> None:
639 builder.accept(s.body)
640
641 def else_block() -> None:
642 assert s.else_body is not None
643 builder.accept(s.else_body)
644
645 for_loop_helper(
646 builder, s.index, s.expr, body, else_block if s.else_body else None, s.is_async, s.line
647 )
648
649
650def transform_break_stmt(builder: IRBuilder, node: BreakStmt) -> None:

Callers 1

visit_for_stmtMethod · 0.90

Calls 1

for_loop_helperFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…