NssFunction

class NssFunction(    val name: Identifier,     val parameters: Array<FunctionParameter>,     val retType: Type,     val body: Block,     val native: Boolean = false) : Statement

Represents the definition of a function.

Constructors

Link copied to clipboard
fun NssFunction(    name: Identifier,     parameters: Array<FunctionParameter>,     retType: Type,     body: Block,     native: Boolean = false)

Properties

Link copied to clipboard
val body: Block

the Block that will be executed when the function is called.

Link copied to clipboard
val name: Identifier

the identifier that can be used to invoke this function.

Link copied to clipboard
val native: Boolean = false

whether the function is implemented through the native interface. If this is true, then no analysis should be performed on the body.

Link copied to clipboard
val parameters: Array<FunctionParameter>

a list of parameters that must be passed as arguments during invocation.

Link copied to clipboard
val retType: Type

the type of the value that this function will return