rune-langium / visual-editor/src / AdapterAttribute
Interface: AdapterAttribute
Defined in: packages/visual-editor/src/adapters/structure-graph-adapter.ts:116
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
astRange? | readonly | { end: number; start: number; } | - | packages/visual-editor/src/adapters/structure-graph-adapter.ts:129 |
astRange.end | public | number | - | packages/visual-editor/src/adapters/structure-graph-adapter.ts:129 |
astRange.start | public | number | - | packages/visual-editor/src/adapters/structure-graph-adapter.ts:129 |
card? | readonly | AdapterCardinality | - | packages/visual-editor/src/adapters/structure-graph-adapter.ts:128 |
name? | readonly | string | All 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 |