rune-langium / visual-editor/src / StructureChoiceNode
Interface: StructureChoiceNode
Defined in: packages/visual-editor/src/types/structure-view.ts:235
A Choice node in the Structure View graph.
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:248 |
conditions? | readonly | readonly StructureConditionMeta[] | Phase A — condition display meta; see StructureDataNode.conditions. Choice declarations may carry conditions in the grammar, so this is accepted symmetrically with Data even though it is usually empty. | packages/visual-editor/src/types/structure-view.ts:254 |
deferred? | readonly | boolean | See StructureDataNode.deferred. | packages/visual-editor/src/types/structure-view.ts:244 |
definition? | readonly | string | Phase A — type-level documentation; see StructureDataNode.definition. | packages/visual-editor/src/types/structure-view.ts:246 |
expansions | readonly | ReadonlyMap<string, string> | Per-arm expansions (Phase 14e/B). Keyed by the arm's typeName (since arms have no attrName — their identity IS the referenced type), value is the child INSTANCE id in StructureGraphInput.nodes. Only arms whose typeKind is Data or Choice are eligible to be expanded; terminal arms (Enum / Builtin / Unresolved) never appear here. Empty (default) for arms that have not been expanded by the user. | packages/visual-editor/src/types/structure-view.ts:265 |
id | readonly | string | Canonical node id; see StructureDataNode.id for the per-instance contract. | packages/visual-editor/src/types/structure-view.ts:237 |
instanceId? | readonly | string | Per-instance discriminator (Phase 14e); see StructureDataNode.instanceId. | packages/visual-editor/src/types/structure-view.ts:239 |
kind | readonly | "choice" | - | packages/visual-editor/src/types/structure-view.ts:240 |
name | readonly | string | - | packages/visual-editor/src/types/structure-view.ts:241 |
namespaceUri | readonly | string | - | packages/visual-editor/src/types/structure-view.ts:242 |
options | readonly | readonly StructureChoiceArm[] | - | packages/visual-editor/src/types/structure-view.ts:255 |