Interface: InternalFunctionArgument
compiler.InternalFunctionArgument
Interface representation of an argument of a InternalFunction.
Since
0.10.0
Table of contents
Properties
Properties
identifier
• identifier: string
The identifier of the argument inside the function
This value does not affect the behaviour of the language, as named-arguments are not implemented in Kipper. This only serves the purpose of readability and allowing easier differentiation.
Since
0.6.0
Defined in
kipper/core/src/compiler/runtime-built-ins.ts:72
valueType
• valueType: KipperCompilableType
| KipperCompilableType
[]
The type of the argument inside the function
Unlike BuiltInFunction, this can also be an array of types, which means that the value type may be a union.
Example
def func(x: num, y: str) -> void {}
// x is of type 'num'
// y is of type 'str'
Defined in
kipper/core/src/compiler/runtime-built-ins.ts:83