MCPcopy Index your code
hub / github.com/RustPython/RustPython / expect_pseudo

Method expect_pseudo

crates/compiler-core/src/bytecode/instruction.rs:1617–1620  ·  view source on GitHub ↗

Same as [`Self::pseudo`] but panics if wasn't called on [`Self::Pseudo`]. # Panics If was called on something else other than [`Self::Pseudo`].

(self)

Source from the content-addressed store, hash-verified

1615 ///
1616 /// If was called on something else other than [`Self::Pseudo`].
1617 pub const fn expect_pseudo(self) -> PseudoInstruction {
1618 self.pseudo()
1619 .expect("Expected Instruction::Pseudo, found Instruction::Real")
1620 }
1621
1622 /// Returns true if this is a block push pseudo instruction
1623 /// (SETUP_FINALLY, SETUP_CLEANUP, or SETUP_WITH).

Callers

nothing calls this directly

Calls 1

pseudoMethod · 0.80

Tested by

no test coverage detected