Skip to content

TypeQLiteDefinitionProvider

Defined in: libs/language/src/typeqlite-label-providers.ts:51

Go to definition for a label that is a plain ID (isa person). Langium answers for cross-references first; when it finds nothing, the label is resolved through TypeQLiteLabels to the definitions it names (ADR-008 D5).

Constructors

Name Description
new TypeQLiteDefinitionProvider() Created with the language’s services by TypeQLiteModule.

Methods

Name Description
getDefinition() Langium’s definitions of the position, or, when it has none, those of the label under it.

new TypeQLiteDefinitionProvider(services): TypeQLiteDefinitionProvider

Defined in: libs/language/src/typeqlite-label-providers.ts:59

Created with the language’s services by TypeQLiteModule.

TypeQLiteLabelServices

Langium’s services, with the label resolver.

TypeQLiteDefinitionProvider

DefaultDefinitionProvider.constructor

getDefinition(document, params, cancelToken?): Promise<LocationLink[] | undefined>

Defined in: libs/language/src/typeqlite-label-providers.ts:65

Langium’s definitions of the position, or, when it has none, those of the label under it.

LangiumDocument

DefinitionParams

CancellationToken

Promise<LocationLink[] | undefined>

DefaultDefinitionProvider.getDefinition

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.