Skip to content

TypeQLiteDocumentValidator

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

The unknown-label warning (ADR-008 D6).

It runs only where a document is built, which is the editor, so the runtime never sees it. It warns only in a workspace that defines at least one type: in TypeDB the schema lives in the database, and a query file with no schema beside it may be perfectly correct.

Constructors

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

Methods

Name Description
validateDocument() Langium’s diagnostics, and a warning for each label that names a type the workspace does not define.

new TypeQLiteDocumentValidator(services): TypeQLiteDocumentValidator

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

Created with the language’s services by TypeQLiteModule.

TypeQLiteLabelServices

Langium’s services, with the label resolver.

TypeQLiteDocumentValidator

DefaultDocumentValidator.constructor

validateDocument(document, options?, cancelToken?): Promise<Diagnostic[]>

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

Langium’s diagnostics, and a warning for each label that names a type the workspace does not define. The warnings are left out when the document has parse errors, and in a workspace that defines no type at all.

LangiumDocument

ValidationOptions

CancellationToken

Promise<Diagnostic[]>

DefaultDocumentValidator.validateDocument

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.