Skip to content

rune-langium / visual-editor/src / AdapterAttribute

Interface: AdapterAttribute ​

Defined in: packages/visual-editor/src/adapters/structure-graph-adapter.ts:116

Properties ​

PropertyModifierTypeDescriptionDefined in
astRange?readonly{ end: number; start: number; }-packages/visual-editor/src/adapters/structure-graph-adapter.ts:129
astRange.endpublicnumber-packages/visual-editor/src/adapters/structure-graph-adapter.ts:129
astRange.startpublicnumber-packages/visual-editor/src/adapters/structure-graph-adapter.ts:129
card?readonlyAdapterCardinality-packages/visual-editor/src/adapters/structure-graph-adapter.ts:128
name?readonlystringAll three core fields are optional because partial-parse state — the user has typed attrs: but the parser hasn't finished resolving the row yet — yields entries with one or more missing. The adapter substitutes sentinels (empty string name, <unresolved> typeName, 0..1 card) rather than throwing. Type widening here (vs. defensive guards in buildRow only) keeps the runtime contract honest for downstream consumers reading the type as documentation (Copilot review on PR #219).packages/visual-editor/src/adapters/structure-graph-adapter.ts:126
typeCall?readonly| string | { type?: { $refText?: string; }; }-packages/visual-editor/src/adapters/structure-graph-adapter.ts:127

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