Companion

object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Construct a function with the given code and room for the given number of outer variables. Do not initialize any outer variable slots.

Link copied to clipboard

Construct a function with the given code and tuple of copied variables.

Link copied to clipboard
fun createFunctionForPhrase(phrase: A_Phrase, module: A_Module, lineNumber: Int): A_Function

Convert a phrase into a zero-argument A_Function.

Link copied to clipboard
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.

Link copied to clipboard
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.

Link copied to clipboard

Construct a function with the given code and one outer variable.

Link copied to clipboard

Construct a function with the given code and two outer variables.

Link copied to clipboard

Construct a function with the given code and three outer variables.

Link copied to clipboard

Construct a function with the given code and four outer variables.

Link copied to clipboard

Construct a function with the given code and five outer variables.

Link copied to clipboard
fun newCrashFunction(messageString: String, paramTypes: A_Tuple): A_Function

Construct a bootstrap A_Function that crashes when invoked.