Skip to content

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 ​

PropertyModifierTypeDescriptionDefined in
annotations?readonlyreadonly string[]Phase A — annotation display strings; see StructureDataNode.annotations.packages/visual-editor/src/types/structure-view.ts:340
conditions?readonlyreadonly StructureConditionMeta[]Phase A — condition display meta; see StructureDataNode.conditions.packages/visual-editor/src/types/structure-view.ts:342
deferred?readonlybooleanSee StructureDataNode.deferred.packages/visual-editor/src/types/structure-view.ts:332
definition?readonlystringPhase A — type-level documentation; see StructureDataNode.definition.packages/visual-editor/src/types/structure-view.ts:338
idreadonlystring-packages/visual-editor/src/types/structure-view.ts:326
inputRowsreadonlyreadonly StructureRow[]Input parameters as stacked Data-style rows (reuses StructureRow).packages/visual-editor/src/types/structure-view.ts:334
instanceId?readonlystring-packages/visual-editor/src/types/structure-view.ts:327
kindreadonly"function"-packages/visual-editor/src/types/structure-view.ts:328
namereadonlystring-packages/visual-editor/src/types/structure-view.ts:329
namespaceUrireadonlystring-packages/visual-editor/src/types/structure-view.ts:330
outputRow?readonlyStructureRowOutput as a single Data-style row; undefined when the function has no output.packages/visual-editor/src/types/structure-view.ts:336

Core packages released under MIT. Studio app released under FSL-1.1-ALv2.