FunctionParameter

class FunctionParameter(    val name: Identifier,     val type: Type,     val default: Expression?)

Represents a function parameter, as defined in the function's signature.

Constructors

Link copied to clipboard
fun FunctionParameter(    name: Identifier,     type: Type,     default: Expression?)

Properties

Link copied to clipboard
val default: Expression?

the expression to be evaluated and used as the parameter's value if FunctionArgument.default is true. This expression will be evaluated in the same context as the function's definition.

Link copied to clipboard
val name: Identifier

the name under which the parameter's value will be accessible as a constant in the function's body.

Link copied to clipboard
val type: Type

the type of this parameter. Expressions passed as arguments must evaluate to this type.