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

Method emit_ForStmt

Tools/cases_generator/generators_common.py:703–714  ·  view source on GitHub ↗

Returns (reachable?, closing '}', stack).

(
        self,
        stmt: ForStmt,
        uop: CodeSection,
        storage: Storage,
        inst: Instruction | None,
    )

Source from the content-addressed store, hash-verified

701 raise analysis_error(ex.args[0], tkn) from None
702
703 def emit_ForStmt(
704 self,
705 stmt: ForStmt,
706 uop: CodeSection,
707 storage: Storage,
708 inst: Instruction | None,
709 ) -> tuple[bool, Token | None, Storage]:
710 """ Returns (reachable?, closing '}', stack)."""
711 self.out.emit(stmt.for_)
712 for tkn in stmt.header:
713 self.out.emit(tkn)
714 return self._emit_stmt(stmt.body, uop, storage, inst)
715
716 def emit_WhileStmt(
717 self,

Callers

nothing calls this directly

Calls 2

_emit_stmtMethod · 0.95
emitMethod · 0.45

Tested by

no test coverage detected