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

Method emit_WhileStmt

Tools/cases_generator/generators_common.py:716–727  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

714 return self._emit_stmt(stmt.body, uop, storage, inst)
715
716 def emit_WhileStmt(
717 self,
718 stmt: WhileStmt,
719 uop: CodeSection,
720 storage: Storage,
721 inst: Instruction | None,
722 ) -> tuple[bool, Token | None, Storage]:
723 """ Returns (reachable?, closing '}', stack)."""
724 self.out.emit(stmt.while_)
725 for tkn in stmt.condition:
726 self.out.emit(tkn)
727 return self._emit_stmt(stmt.body, uop, storage, inst)
728
729
730 def emit_tokens(

Callers

nothing calls this directly

Calls 2

_emit_stmtMethod · 0.95
emitMethod · 0.45

Tested by

no test coverage detected