createStubWithSignature

fun createStubWithSignature(functionType: A_Type, function: A_Function): A_Function

Create a function that takes arguments of the specified types, then turns around and calls the function invocation method with the given function and the passed arguments assembled into a tuple.

Return

An appropriate function with the given signature.

Parameters

functionType

The type to which the resultant function should conform.

function

The function which the new function should invoke when itself invoked.