Projectstable
Declare Function
Declare Function (function_define) is a Project node. Semantics: function.declare. Ports and options below are generated from the syntax registry.
Overview
- Kind id
- function_define
- Semantics
- function.declare
- 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 | Function | - |
| role | enum | function | enum: function, constructor, destructor |
| visibility | enum | public | enum: public, protected, private |
| binding | enum | instance | enum: instance, static, module |
| isAbstract | boolean | false | - |
| isVirtual | boolean | false | - |
| isOverride | boolean | false | - |
| isAsync | boolean | false | - |
| isGenerator | boolean | false | Marks the function as a generator. Python def is enough; yield in the body also makes it a generator. |
| graphTabId | string | - |