rune-langium / visual-editor/src / StructureFunctionNode
Interface: StructureFunctionNode
Defined in: packages/visual-editor/src/types/structure-view.ts:325
A read-only Function node in the Structure View graph (Phase C). Materialized when the user focuses a RosettaFunction from the namespace explorer.
Functions are RENDERED as a card with the function's inputs presented as stacked Data-style rows (name on top, type · cardinality beneath) and a distinct output row (→ ReturnType · card). Functions are roots only in this first cut — no nested expansion of input/output types into subtrees (deferred to a later phase), so a function node has no expansion children and renders like a simple Data node with no children column.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
annotations? | readonly | readonly string[] | Phase A — annotation display strings; see StructureDataNode.annotations. | packages/visual-editor/src/types/structure-view.ts:340 |
conditions? | readonly | readonly StructureConditionMeta[] | Phase A — condition display meta; see StructureDataNode.conditions. | packages/visual-editor/src/types/structure-view.ts:342 |
deferred? | readonly | boolean | See StructureDataNode.deferred. | packages/visual-editor/src/types/structure-view.ts:332 |
definition? | readonly | string | Phase A — type-level documentation; see StructureDataNode.definition. | packages/visual-editor/src/types/structure-view.ts:338 |
id | readonly | string | - | packages/visual-editor/src/types/structure-view.ts:326 |
inputRows | readonly | readonly StructureRow[] | Input parameters as stacked Data-style rows (reuses StructureRow). | packages/visual-editor/src/types/structure-view.ts:334 |
instanceId? | readonly | string | - | packages/visual-editor/src/types/structure-view.ts:327 |
kind | readonly | "function" | - | packages/visual-editor/src/types/structure-view.ts:328 |
name | readonly | string | - | packages/visual-editor/src/types/structure-view.ts:329 |
namespaceUri | readonly | string | - | packages/visual-editor/src/types/structure-view.ts:330 |
outputRow? | readonly | StructureRow | Output as a single Data-style row; undefined when the function has no output. | packages/visual-editor/src/types/structure-view.ts:336 |