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.
Extends
Section titled “Extends”Member summary
Section titled “Member summary”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. |
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TypeQLiteDocumentValidator(
services):TypeQLiteDocumentValidator
Defined in: libs/language/src/typeqlite-label-providers.ts:168
Created with the language’s services by TypeQLiteModule.
Parameters
Section titled “Parameters”services
Section titled “services”Langium’s services, with the label resolver.
Returns
Section titled “Returns”TypeQLiteDocumentValidator
Overrides
Section titled “Overrides”DefaultDocumentValidator.constructor
Methods
Section titled “Methods”validateDocument()
Section titled “validateDocument()”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.
Parameters
Section titled “Parameters”document
Section titled “document”options?
Section titled “options?”cancelToken?
Section titled “cancelToken?”CancellationToken
Returns
Section titled “Returns”Promise<Diagnostic[]>
Overrides
Section titled “Overrides”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.