Skip to content

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.

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.

readonly checked: 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.


readonly document: LangiumDocument

Defined in: libs/language/src/typeqlite-labels.ts:74

The document that holds it.


readonly kind: LabelKind

Defined in: libs/language/src/typeqlite-labels.ts:68

What the position expects to name.


readonly name: string

Defined in: libs/language/src/typeqlite-labels.ts:66

The label as written.


readonly range: Range

Defined in: libs/language/src/typeqlite-labels.ts:72

Where the label is in its document.


readonly optional relation?: 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.