LabelSite
Defined in: libs/language/src/typeqlite-labels.ts:64
A position in a document where TypeQLite names a type or a role with a plain ID.
Member summary
Section titled “Member summary”Properties
| Name | Description |
|---|---|
| checked | Whether an unresolved label here is worth a warning. |
| document | The document that holds it. |
| kind | What the position expects to name. |
| name | The label as written. |
| range | Where the label is in its document. |
| relation? | For a role, the relation it belongs to, when the pattern names one. |
Properties
Section titled “Properties”checked
Section titled “checked”
readonlychecked:boolean
Defined in: libs/language/src/typeqlite-labels.ts:79
Whether an unresolved label here is worth a warning. $t label person asserts a label rather
than using one, and a role whose relation is unknown cannot be checked at all.
document
Section titled “document”
readonlydocument:LangiumDocument
Defined in: libs/language/src/typeqlite-labels.ts:74
The document that holds it.
readonlykind:LabelKind
Defined in: libs/language/src/typeqlite-labels.ts:68
What the position expects to name.
readonlyname:string
Defined in: libs/language/src/typeqlite-labels.ts:66
The label as written.
readonlyrange:Range
Defined in: libs/language/src/typeqlite-labels.ts:72
Where the label is in its document.
relation?
Section titled “relation?”
readonlyoptionalrelation?:string
Defined in: libs/language/src/typeqlite-labels.ts:70
For a role, the relation it belongs to, when the pattern names one.
TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.