StructMethod

class StructMethod(    val name: Identifier,     val parameters: Array<FunctionParameter>,     val retType: Type,     val body: Block)

Represents the definition of a method on a structure.

Constructors

Link copied to clipboard
fun StructMethod(    name: Identifier,     parameters: Array<FunctionParameter>,     retType: Type,     body: Block)

Properties

Link copied to clipboard
val body: Block

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

Link copied to clipboard
val name: Identifier

the name of this method.

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 method will return.