MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / get_ctx_idx

Method get_ctx_idx

crates/parser/src/visit.rs:588–592  ·  view source on GitHub ↗
(&self, depth: u32)

Source from the content-addressed store, hash-verified

586 }
587
588 fn get_ctx_idx(&self, depth: u32) -> Option<usize> {
589 let len = self.ctx_stack.len();
590 let idx = len.checked_sub(depth as usize + 1)?;
591 Some(idx)
592 }
593
594 fn emit_dropkeep(&mut self, base: StackBase, c32: u16, c64: u16, c128: u16) {
595 if base.s32 == 0 && c32 == 0 && base.s64 == 0 && c64 == 0 && base.s128 == 0 && c128 == 0 {

Callers 3

visit_br_ifMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected