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

Method call

aiscript-vm/src/vm/state.rs:1693–1704  ·  view source on GitHub ↗
(
        &mut self,
        closure: Gc<'gc, Closure<'gc>>,
        args_count: u8,
        keyword_args_count: u8,
    )

Source from the content-addressed store, hash-verified

1691 }
1692
1693 fn call(
1694 &mut self,
1695 closure: Gc<'gc, Closure<'gc>>,
1696 args_count: u8,
1697 keyword_args_count: u8,
1698 ) -> Result<(), VmError> {
1699 let function = &closure.function;
1700
1701 let final_args = self.check_args(function, args_count, keyword_args_count)?;
1702 self.call_inner(closure, args_count, keyword_args_count, final_args)?;
1703 Ok(())
1704 }
1705
1706 #[inline]
1707 fn call_inner(

Callers 4

call_functionMethod · 0.45
call_constructorMethod · 0.45
call_valueMethod · 0.45
invoke_from_classMethod · 0.45

Calls 2

check_argsMethod · 0.80
call_innerMethod · 0.80

Tested by

no test coverage detected