Variablesstable
Declare Variable
Declare Variable (var_define) is a Variables node. Semantics: variable.define. Ports and options below are generated from the syntax registry.
Overview
- Kind id
- var_define
- Semantics
- variable.define
- Source
- CORE_NODE_REGISTRY
Detailed guidance for this kind is still being written. Ports and options below come from the syntax registry.
Ports
| Id | Dir | Type | Label |
|---|---|---|---|
| exec_in | in | execution | - |
| exec_out | out | execution | - |
Options
| Id | Type | Default | Notes |
|---|---|---|---|
| symbolId | string | - | |
| name | string | Variable | - |
| type | enum | data_string | enum: data_string, data_number, data_boolean, data_object, data_array, data_any |
| enumType | string | When set, variable type is this enum; Default is the member name only (e.g. OK) | |
| default | string | - | |
| visibility | enum | public | enum: public, protected, private |
| binding | enum | instance | enum: instance, static |
| isConst | boolean | false | - |