MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / pop

Method pop

compiler/src/modules/vm/helpers.rs:50–52  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

48 #[inline] pub(crate) fn push(&mut self, v: Val) { self.stack.push(v); }
49
50 #[inline] pub(crate) fn pop(&mut self) -> Result<Val, VmErr> {
51 self.stack.pop().ok_or(cold_runtime("stack underflow"))
52 }
53 #[inline] pub(crate) fn pop2(&mut self) -> Result<(Val, Val), VmErr> {
54 let b = self.pop()?; let a = self.pop()?; Ok((a, b))
55 }

Callers 15

putMethod · 0.45
lexFunction · 0.45
handle_newlineMethod · 0.45
close_braceMethod · 0.45
next_tokenMethod · 0.45
name_stmtMethod · 0.45
commit_blockMethod · 0.45
advanceMethod · 0.45
eatMethod · 0.45
while_stmtMethod · 0.45
for_stmt_innerMethod · 0.45
display_dMethod · 0.45

Calls 1

cold_runtimeFunction · 0.85

Tested by

no test coverage detected