Skip to content

rune-langium / visual-editor/src / expansionKey

Function: expansionKey() ​

ts
function expansionKey(k): string;

Defined in: packages/visual-editor/src/types/structure-view.ts:125

Serialise an expansion key for use as a Map / Record key.

Format:

  • No instancePath (or empty): ${namespaceUri}::${typeId}::${attrName}
  • With instancePath: ${namespaceUri}::${typeId}::${attrName}::${path.join('>')}

This is the single deterministic per-instance key shape. Root-level rows (empty instancePath) serialize without a suffix; nested rows append the ancestor chain. expansionKey is the sole serializer — use it everywhere.

Parameters ​

ParameterType
kStructureExpansionKey

Returns ​

string

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