Skip to content

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 ​

PropertyModifierTypeDescriptionDefined in
annotations?readonlyreadonly string[]Phase A — annotation display strings; see StructureDataNode.annotations.packages/visual-editor/src/types/structure-view.ts:248
conditions?readonlyreadonly 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?readonlybooleanSee StructureDataNode.deferred.packages/visual-editor/src/types/structure-view.ts:244
definition?readonlystringPhase A — type-level documentation; see StructureDataNode.definition.packages/visual-editor/src/types/structure-view.ts:246
expansionsreadonlyReadonlyMap<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
idreadonlystringCanonical node id; see StructureDataNode.id for the per-instance contract.packages/visual-editor/src/types/structure-view.ts:237
instanceId?readonlystringPer-instance discriminator (Phase 14e); see StructureDataNode.instanceId.packages/visual-editor/src/types/structure-view.ts:239
kindreadonly"choice"-packages/visual-editor/src/types/structure-view.ts:240
namereadonlystring-packages/visual-editor/src/types/structure-view.ts:241
namespaceUrireadonlystring-packages/visual-editor/src/types/structure-view.ts:242
optionsreadonlyreadonly StructureChoiceArm[]-packages/visual-editor/src/types/structure-view.ts:255

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