Class: InternalFunctionArgument
compiler.InternalFunctionArgument
Interface representation of an argument of a InternalFunction.
Since
0.10.0
Since
0.11.0 Became a class instead of an interface.
Table of contents
Constructors
Properties
Constructors
constructor
• new InternalFunctionArgument(identifier
, valueType
)
Parameters
Name | Type |
---|---|
identifier |
string |
valueType |
ProcessedType |
Defined in
kipper/core/src/compiler/semantics/runtime-internals/internal-function-argument.ts:30
Properties
identifier
• Readonly
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/semantics/runtime-internals/internal-function-argument.ts:16
valueType
• Readonly
valueType: ProcessedType
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
Defined in
kipper/core/src/compiler/semantics/runtime-internals/internal-function-argument.ts:28