rune-langium / visual-editor/src / StructureChoiceArm
Interface: StructureChoiceArm
Defined in: packages/visual-editor/src/types/structure-view.ts:225
A Choice arm — represents one option in a Choice. Unlike Data attributes, Choice arms have no name of their own (their identity IS their type) and no cardinality (they are alternatives, not multi-valued).
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
targetNodeId? | readonly | string | Canonical id of the referenced node, when resolvable. | packages/visual-editor/src/types/structure-view.ts:231 |
typeKind | readonly | | "Data" | "Choice" | "Enum" | "Record" | "TypeAlias" | "Unresolved" | "Builtin" | Classification of the referenced type, mirroring StructureRow.typeKind. | packages/visual-editor/src/types/structure-view.ts:229 |
typeName | readonly | string | The arm's type name as written in source (e.g., "CashPayment"). | packages/visual-editor/src/types/structure-view.ts:227 |