MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / peek

Method peek

aiscript-vm/src/vm/state.rs:1756–1759  ·  view source on GitHub ↗
(&self, distance: usize)

Source from the content-addressed store, hash-verified

1754
1755 #[inline(always)]
1756 pub(crate) fn peek(&self, distance: usize) -> &Value<'gc> {
1757 debug_assert!(self.stack_top > distance, "Stack peek out of bounds");
1758 unsafe { self.stack.get_unchecked(self.stack_top - 1 - distance) }
1759 }
1760
1761 fn pop_stack_n(&mut self, n: usize) -> Vec<Value<'gc>> {
1762 if n == 0 {

Callers 6

parseMethod · 0.45
parse_auth_fieldsFunction · 0.45
dispatch_nextMethod · 0.45
define_methodMethod · 0.45
bind_methodMethod · 0.45
invokeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected