createStubToCallMethod

fun createStubToCallMethod(functionType: A_Type, atom: A_Atom): A_Function

Create a function that takes arguments of the specified types, then calls the A_Method for the A_Bundle of the given A_Atom with those arguments.

Return

An appropriate function.

Parameters

functionType

The type to which the resultant function should conform.

atom

The A_Atom which names the A_Method to be invoked by the new function.

Throws

If the atom has no associated bundle/method, or the function signature is inconsistent with the available method definitions.