Projectregistry-listed
Define Function
Function Define places a function body in the source owned by its container graph.
Registry listing does not certify support for every language or host environment. Check the selected target’s diagnostics and generated output.
Overview
- Kind id
- function_implement
- Semantics
- function.implement
- Source
- CORE_NODE_REGISTRY
When to use
Select a function and overload, then edit its body graph. Binding and role options affect the selected language’s signature.
Graph to code example
A file-level Library function uses module binding and generates a plain JavaScript function or Python def without an invented class or entry.
Watch for
Constructor, destructor, async and override options depend on the target and owning class. Disabled or ineffective options do not imply generated behavior. Declare and Define remain separate nodes.
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 | function = named method. constructor / destructor = how that language writes init/teardown. Not separate kinds. · enum: function, constructor, destructor |
| isVirtual | boolean | false | - |
| isOverride | 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 | - | |
| isExported | boolean | false | - |