Class: BuiltInVariable
compiler.BuiltInVariable
Interface representation of a BuiltInVariable, which is available inside a Kipper program using the specified metadata.
Since
0.10.0
Table of contents
Constructors
Properties
Constructors
constructor
• new BuiltInVariable(identifier
, valueType
, local
)
Parameters
Name | Type |
---|---|
identifier |
string |
valueType |
ProcessedType |
local |
boolean |
Defined in
kipper/core/src/compiler/semantics/runtime-built-ins/built-in-variable.ts:32
Properties
identifier
• Readonly
identifier: string
The identifier of the global variable that should be available inside the program.
Since
0.10.0
Defined in
kipper/core/src/compiler/semantics/runtime-built-ins/built-in-variable.ts:13
local
• Readonly
local: boolean
If true then the variable is local to the current file. If false then the variable is global and can be accessed from any file.
This is primarily used to differentiate between local and global variables during the code generation process, since local ones will usually be initialised like any other variables, while globals will be registered on a global object.
Since
0.10.0
Defined in
kipper/core/src/compiler/semantics/runtime-built-ins/built-in-variable.ts:30
valueType
• Readonly
valueType: ProcessedType
The type of the variable.
Since
0.10.0
Defined in
kipper/core/src/compiler/semantics/runtime-built-ins/built-in-variable.ts:19