rune-langium / visual-editor/src / TypeRefPayload
Interface: TypeRefPayload
Defined in: packages/visual-editor/src/types/structure-view.ts:45
Drag payload emitted by NamespaceExplorer items and consumed by drop targets.
Field semantics:
typeId— canonical node id inns.Nameformat (e.g.cdm.trade.Trade). Used bysetInheritanceand other operations that reference nodes by their fully-qualified id.typeName— bare display/AST name (e.g.Trade) used in$refTextwrites, e.g.updateAttributeType. This is what the grammar stores as the unqualified cross-reference text.
Drag sources MUST set both fields.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
kind | readonly | | "Data" | "Choice" | "Annotation" | "Enum" | "BasicType" | "Record" | "TypeAlias" | "Func" | - | packages/visual-editor/src/types/structure-view.ts:52 |
namespaceUri | readonly | string | - | packages/visual-editor/src/types/structure-view.ts:47 |
rune | readonly | "type-ref" | - | packages/visual-editor/src/types/structure-view.ts:46 |
typeId | readonly | string | Canonical node id in ns.Name format. Used by setInheritance. | packages/visual-editor/src/types/structure-view.ts:49 |
typeName | readonly | string | Bare AST/display name used in $refText writes. Used by updateAttributeType. | packages/visual-editor/src/types/structure-view.ts:51 |