Package ast.function

Types

Link copied to clipboard
class FunctionArgument(val expression: Expression?, val default: Boolean)

Represents an argument passed to a function invocation.

Link copied to clipboard
class FunctionCall(val expression: Expression, val arguments: Array<FunctionArgument>) : Expression, Statement

Represents the invocation of a function.

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

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

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

Link copied to clipboard
class Return(val expression: Expression?) : Statement

Represents the exit from a function, optionally returning a value to the caller.