MCPcopy Index your code
hub / github.com/python/mypy / generate

Function generate

mypyc/irbuild/statement.py:1184–1190  ·  view source on GitHub ↗
(i: int)

Source from the content-addressed store, hash-verified

1182def transform_with_stmt(builder: IRBuilder, o: WithStmt) -> None:
1183 # Generate separate logic for each expr in it, left to right
1184 def generate(i: int) -> None:
1185 if i >= len(o.expr):
1186 builder.accept(o.body)
1187 else:
1188 transform_with(
1189 builder, o.expr[i], o.target[i], lambda: generate(i + 1), o.is_async, o.line
1190 )
1191
1192 generate(0)
1193

Callers 1

transform_with_stmtFunction · 0.85

Calls 3

lenFunction · 0.85
transform_withFunction · 0.85
acceptMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…